Package dsp has a set of digital signal processing functions that are primarily designed to support the discrete wavelet transform ("https://github.com/goccmack/dsp/dwt")
Abs returns |x|
AbsAll returns Abs(x) for every x in X
AbsInt returns |x|
Average returns Sum(x)/len(x).
DivS returns x/s where x is a vector and s a scalar.
DownSample returns x downsampled by n Function panics if len(x) is not an integer multiple of n.
DownSampleAll returns DownSample(x, len(x)/min(len(xs))) for all x in xs
FindMax returns the value and index of the first element of x equal to the maximum value in x.
FindMax* returns the value and index of the first element of x equal to the maximum value in x.
FindMin returns the value and index of the first element of x equal to the minimum value in x.
Float32ToFloat64 returns a copy of x with type float64
LoadFloats reads a text file containing one float per line.
Log2 returns the integer log base 2 of n. E.g.: log2(12) ~ 3.6. Log2 returns 3
LowpassFilter returns x filtered by alpha
LowpassFilterAll returns LowpassFilter(x) for all x in xs.
Max returns the maximum value of the elements of x
MaxInt returns the maximum value of the elements of x
MovAvg returns the moving average for each x[i], given by sum(x[i-w:i+w])/(2w)
Multiplex returns on vector with the element of vs interleaved
Normalise returns x/max(x)
Normalise returns x/max(x) for all x in xs
Pow2 returns 2^x. The function panics if x < 0
Range returns an interger range 0:1:n-1
ReadWavFile returns the demultiplexed channels of a wav file, and the sample rate in Hz.
RemoveAvgZ returns x[i] = x[i]-sum(x)/len(x) or 0 if x[i]-sum(x)/len(x) < 0
RemoveAvgAllZ removes the average of all vectors x in xs. The minimum value of any x[i] is 0.
Smooth smoothts x: x[i] = sum(x[i-wdw:i+wdw])/(2*wdw)
Sub returns x - y. The function panics if len(x) != len(y).
Sum returns the sum of the elements of the vector x
SumVectors returns the sum of the vectors in X. The function panics if all vectors don't have the same length
ToInt returns y * math.MaxInt64. The range of x is [-1.0,1.0]. The function panics if bitsPerSample is not one of 8,16,32.
WriteAllDataFile writes each xs[i] in xs to a test file `fname_i.txt`
WriteDataFile writes x to a text file `fname.txt`
WriteIntDataFile writes x to a text file `fname.txt`
WriteIntMatrixDataFile writes an integer matrix to a text file `fname.csv`
Xcorr returns the cross correlation of x with y for maxDelay.
|dbscan||Package dbscan implements the DBSCAN clustering algorithm (https://en.wikipedia.org/wiki/DBSCAN)|
|dwt||Package DWT has functions supporting the Discrete Wavelet Transform.|
|peaks||Package peaks finds the maxima in a vector.|
|ppeaks||Package ppeaks detects the peaks in a time series by means of persistent homology: https://www.sthu.org/blog/13-perstopology-peakdetection/index.html.|