LTPDA Toolbox™ | contents | ![]() ![]() |
spikecleaning detects and corrects possible spikes in analysis objects %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: SPIKECLEANING detects spikes in the temperature data and replaces them by artificial values depending on the method chosen ('random', 'mean', 'previous', 'linear', 'spline'). The first three methods consider extrapolation techniques linear and spline apply interpolations to the data. Spikes are defined as singular samples or groups of samples with an (absolute) value higher than kspike times the standard deviation of the high-pass filtered (IIR filter) input AO.x CALL: b = spikecleaning(a1, a2, ..., an, pl) INPUTS: aN - a list of analysis objects pl - parameter list OUTPUTS: b - a list of analysis objects with "spike values" removed and corrected Parameters Description %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Method Details | |
---|---|
Access | public |
Defining Class | ao |
Sealed | 0 |
Static | 0 |
Sets for this method … |
---|
Default |
Default |
|||
---|---|---|---|
no description | |||
Key | Default Value | Options | Description |
spikecleaning | |||
KSPIKE | 3.2999999999999998 | none | High values imply no correction of relative low amplitude spikes. |
FC | 0.025000000000000001 | none | Frequency cut-off of the IIR filter. |
ORDER | 2 | none | The order of the IIR filter. |
RIPPLE | 0.5 | none | Specify the pass/stop-band ripple for bandpass/bandreject filters |
METHOD | 'random' |
|
The method used to replace the spike value. Random and mean follow extrapolation methods while spline and linear follow interpolateion methods. |
NUMPREVPOINTS | 4 | none | Number of previous points to delete and interpolate. |
NUMFOLLPOINTS | 5 | none | Number of following points to delete and interpolate. |
INTERPOINTS | 10 | none | Length of the segments at both sides of the spike that are going to be used when interpolating. |
DIFFSPIKES | 6 | none | Minimum distance in samples between spikes to consider them different spikes. |
TIMES | 1 | none | Number of times to clean the spikes recursively. |
REMOVEDDSTEMPERATUREOFFSET | 0 |
|
Remove DDS temperature offset after scale change tranitory |
OFFSETTHRESHOLD | 0.001 | none | Offset threshold when removing the DDS temperature offset after scale change (only if selected). |
RAND_STREAM | [] | none | Internal MATLAB state of the pseudorandom number generator. You can set the state with a structure which should contain all properties of the MATLAB class RandStream |
Example |
---|
plist('KSPIKE', [3.2999999999999998], 'FC', [0.025000000000000001], 'ORDER', [2], 'RIPPLE', [0.5], 'METHOD', 'random', 'NUMPREVPOINTS', [4], 'NUMFOLLPOINTS', [5], 'INTERPOINTS', [10], 'DIFFSPIKES', [6], 'TIMES', [1], 'REMOVEDDSTEMPERATUREOFFSET', [0], 'OFFSETTHRESHOLD', [0.001], 'RAND_STREAM', [[]]) |
Some information of the method ao/spikecleaning are listed below: | |
---|---|
Class name | ao |
Method name | spikecleaning |
Category | Signal Processing |
Package name | ltpda |
VCS Version | 967b0eec0dece803a81af8ef54ad2f8c784b20b2 |
Min input args | 1 |
Max input args | -1 |
Min output args | 1 |
Max output args | -1 |
Can be used as modifier | 0 |
Supported numeric types | {'double'} |
![]() |
Method: ao/spectrogram | Method: ao/split | ![]() |
©LTP Team