File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,13 @@ public void TrimDC()
3737 // not to use the first few frequency bins.The first frequency bin that yields unbiased spectral estimates
3838 // depends on the window function used.The bin is given by the effective half-width of the window
3939 // transfer function.
40- int trimmedStartEndBins = 0 ;
41- public void TrimStartEnd ( int bins )
40+ int trimmedStartBins = 0 ;
41+ public void TrimStart ( int bins )
4242 {
43- if ( trimmedStartEndBins != 0 )
44- throw new Exception ( $ "TrimStartEnd already called with bins: { trimmedStartEndBins } ") ;
45- trimmedStartEndBins = bins ;
46- Frequencies = Frequencies . Slice ( bins , Frequencies . Length - ( bins * 2 ) ) ;
47- Values = Values . Slice ( bins , Values . Length - ( bins * 2 ) ) ;
43+ if ( trimmedStartBins != 0 )
44+ throw new Exception ( $ "TrimStart already called with bins: { trimmedStartBins } ") ;
45+ trimmedStartBins = bins ;
46+ Frequencies = Frequencies . Slice ( bins , Frequencies . Length - bins ) ;
47+ Values = Values . Slice ( bins , Values . Length - bins ) ;
4848 }
4949}
You can’t perform that action at this time.
0 commit comments