-
Notifications
You must be signed in to change notification settings - Fork 692
Breeze Signal Processing
needs import breeze.signal._
(features are new in v. 0.6)
| Operation | Breeze | Numpy | Matlab |
| ---- | ---- | ---- | ---- | ---- | ---- |
| Convolve | convolve( denseVector )
| |
|
| Correlate | correlate( denseVector )
| |
|
these Breeze functions will use fft convolution by default for floating point DenseMatrixes and DenseVectors. For Int and Long DV/DMs, you can specify fft convolution by specifying the optional argument optMethod = OptMethod.FFT
| Operation | Breeze | Numpy | Matlab |
| ---- | ---- | ---- | ---- | ---- | ---- |
| 1D Fourier transform | fourierTr( denseVector )
| fft( a )
| fft( a )
|
| 1D Inverse Fourier transform | iFourierTr( denseVector )
| ifft( a )
| ifft( a )
|
| 2D Fourier Transform | fourierTr( denseMatrix )
| fft2( a )
| fft2( a )
|
| 2D Inverse Fourier Transform | iFourierTr( denseMatrix )
| ifft2( a )
| ifft2( a )
|
| Operation | Breeze | Numpy | Matlab |
| ---- | ---- | ---- | ---- | ---- | ---- |
| Fourier frequencies | fourierFreq( n, dt = (timestep) )
or fourierFreq( n, fs = (sample freq) )
| fftfreq(n, dt)
| --- |
| Fourier shift | fourierShift( denseVector )
| fftshift( a )
| fftshift( a )
|
| (inverse) | iFourierShift( denseVector )
| ifftshift( a )
| ifftshift( a )
|
| Operation | Breeze | Numpy | Matlab |
| ---- | ---- | ---- | ---- | ---- | ---- |
| Filter | filter( denseVector, denseVector )
| |
|
| (Bandpass) | filterBP( denseVector, (omega0, omega1), taps = 512 )
| |
|
| (Bandstop) | filterBS( denseVector, (omega0, omega1), taps = 512 )
| |
|
| (Lowpass) | filterLP( denseVector, omega, taps = 512 )
| |
|
| (Highpass) | filterHP( denseVector, omega, taps = 512 )
| |
|
Breeze is a numerical processing library for Scala. http://www.scalanlp.org