Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline uni  
#1 Posted : 22 November 2021 01:47:14(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,324
Man
Russian Federation

Was thanked: 1157 time(s) in 668 post(s)
DSP Library

SMath Studio compatibility Platform SMath Viewer compatibility mono compatibility Extension page Sources Examples


Functions list:


DSPL-2.0 — opensource cross-platform digital signal processing algorithm library, written in C language.
Distributed under LGPL v3 license. This allows to use this library in all applications with dynamic linking.

Source codes are available on GitHub.

DSPL-2.0 includes follow algorithms sets:

  • Digital spectral analysis, discrete and fast Fourier transform algorithms.
  • Analog and digital IIR filters design and analysis.
  • Digital FIR filters design and analysis.
  • Windows function collection includes 15 different parametric and nonparametric window functions.
  • Digital Hilbert transform algorithms.
  • Mathematical sections includes trigonometric, hyperbolic, elliptic functions of real and complex variables.
  • Pseudorandom numbers generation algorithms.
  • Statistic functions.
  • Linar algebra algorithms (BLAS and LAPACK packages are used under the hood of the DSPL-2.0 library).
  • Digital resampling algorithms.

Examples:

dspl_filter_iir.sm dspl_fir_linphase.sm dspl_iir.sm dspl_window.sm

dspl_filter_iir.pdf (156kb) downloaded 21 time(s).
dspl_fir_linphase.pdf (247kb) downloaded 18 time(s).
dspl_iir.pdf (234kb) downloaded 10 time(s).
dspl_window.pdf (857kb) downloaded 16 time(s).

Click to enlarge

Links:

1. DSPL-2.0 — free DSP algorithm library .

Edited by user 12 December 2021 22:38:42(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 02/12/2021(UTC)
Offline johnspark  
#2 Posted : 27 November 2021 12:48:56(UTC)
johnspark


Rank: Advanced Member

Groups: Registered
Joined: 26/09/2021(UTC)
Posts: 66
Australia
Location: Adelaide

Was thanked: 5 time(s) in 3 post(s)
Originally Posted by: uni Go to Quoted Post
DSP Library

SMath Studio compatibility Platform SMath Viewer compatibility mono compatibility Extension page Sources


DSPL-2.0 — opensource cross-platform digital signal processing algorithm library, written in C language.
...

thank you uni, very worthwhile Good

Edited by moderator 28 November 2021 06:43:46(UTC)  | Reason: Not specified

Offline Jean Giraud  
#3 Posted : 28 November 2021 23:35:07(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,138
Canada

Was thanked: 896 time(s) in 724 post(s)
Spline2 is as named by the Originators.
It is a statistical spline based on Durbin-Watson test
to determine optimal number of knots and their spacing.
For this particular example, linfitCheby smooths/fits as well.
Robert LSQ works as well, knots from trial/error.
Cheers ... Jean.

HadCRUt4 for Viacheslav.bmp (1,276kb) downloaded 13 time(s).
Offline johnspark  
#4 Posted : 30 November 2021 14:08:33(UTC)
johnspark


Rank: Advanced Member

Groups: Registered
Joined: 26/09/2021(UTC)
Posts: 66
Australia
Location: Adelaide

Was thanked: 5 time(s) in 3 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Spline2 is as named by the Originators.
It is a statistical spline based on Durbin-Watson test
to determine optimal number of knots and their spacing.
For this particular example, linfitCheby smooths/fits as well.
Robert LSQ works as well, knots from trial/error.
Cheers ... Jean.

HadCRUt4 for Viacheslav.bmp (1,276kb) downloaded 13 time(s).


Splines have their place Jean, but I also have future need for hamming window filters and DFT filters, etc. I have worked with $20,000+ protection relays that have very high quality DFT filters to find faults in HV networks ASAP, to reduce damage to people first and equipment second. That is where the c code comes into its own. If i get into power quality values, this work by uni will be indispensable. I think Mathcad used to have an expensive add on for this feature. Uni has kindly provided it for free. That is why I love this Smath forum so much.

Warming up in Adelaide ready for summer starting tomorrow
Offline Jean Giraud  
#5 Posted : 01 December 2021 01:46:21(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,138
Canada

Was thanked: 896 time(s) in 724 post(s)
Originally Posted by: johnspark Go to Quoted Post
I have worked with $20,000 protection relays that have very high quality DFT filters to find faults in HV networks ASAP

Once you have the push down sized samples from the grid,
filtered for whatever filter means wrt the grid ...
Smath plugins have fft at hyper accuracy [sanity checked Mathematica, MCD]
From there, compare the spectrum-in vs model spectrum.
Cheers ... Jean.

Fourier fft, ifft Sanity DEMO.sm (16kb) downloaded 11 time(s).

Offline uni  
#6 Posted : 01 December 2021 03:29:17(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,324
Man
Russian Federation

Was thanked: 1157 time(s) in 668 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Smath plugins have fft at hyper accuracy [sanity checked Mathematica, MCD]

Jean, this thread is intended to discuss only functions from DSP Library and no others. All other discussions should be contained in separate threads. If you want to attach a comparison document, then it must contain functions from DSP Library.

This topic should only contain technical (reference) information on how to use the extension. Other extensions have their own sections.

Edited by user 01 December 2021 03:36:29(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
Offline uni  
#7 Posted : 03 December 2021 10:11:34(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,324
Man
Russian Federation

Was thanked: 1157 time(s) in 668 post(s)
Adding some functions. The server is still not available for building.

Click to enlarge

dspl_window.pdf (1,130kb) downloaded 8 time(s).

Edited by user 10 December 2021 13:50:52(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
Offline uni  
#8 Posted : 06 December 2021 15:26:12(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,324
Man
Russian Federation

Was thanked: 1157 time(s) in 668 post(s)
SMath Studio compatibility

Plugin updated.

Changes:

- many function added;
- refactored.

I will add examples of their use a little later.
Russia ☭ forever
Viacheslav N. Mezentsev
Offline uni  
#9 Posted : 08 December 2021 10:13:33(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,324
Man
Russian Federation

Was thanked: 1157 time(s) in 668 post(s)
Examples:

dspl_filter_iir.sm dspl_fir_linphase.sm dspl_iir.sm dspl_window.sm

dspl_filter_iir.pdf (156kb) downloaded 21 time(s).
dspl_fir_linphase.pdf (247kb) downloaded 18 time(s).
dspl_iir.pdf (234kb) downloaded 10 time(s).
dspl_window.pdf (857kb) downloaded 16 time(s).

Edited by user 12 December 2021 22:36:12(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
Offline uni  
#10 Posted : 16 December 2021 20:25:48(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,324
Man
Russian Federation

Was thanked: 1157 time(s) in 668 post(s)
SMath Studio compatibility

Plugin updated.

Changes:

- OpenBLAS library replaced with CLAPACK;
- totally refactored.
Russia ☭ forever
Viacheslav N. Mezentsev
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.