Skip to content

Commit

Permalink
Converted all convolve functions to fastConvolve in applicable places
Browse files Browse the repository at this point in the history
  • Loading branch information
psambit9791 committed Oct 27, 2024
1 parent b454e08 commit 1a4bdda
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public double[] filter(double[] signal) {

// Estimating the local mean
Convolution c1 = new Convolution(signal, cons);
localMean = c1.convolve("same");
localMean = c1.fastConvolve("same");
localMean = MathArrays.scale((1.0/this.windowSize), localMean);

// Estimating the local variance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* <h2>Detrend</h2>
* The Detrend class implements different methods to remove trends in a signal and is based on
* numpy <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.convolve.html">detrend()</a> function
* scipy <a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.detrend.html">detrend()</a> function
* but extends to additionally provide polynomial detrending.
*
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public ContinuousWavelet(double[] signal, int[] widths) {
*/
private Complex[] ricker_cwt(double[] data, double[] wavelet) {
Convolution c = new Convolution(data, wavelet);
return UtilMethods.matToComplex(c.convolve("same"));
return UtilMethods.matToComplex(c.fastConvolve("same"));
}

/**
Expand Down

0 comments on commit 1a4bdda

Please sign in to comment.