visual3d:documentation:pipeline:signal_commands:gcvspl
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:signal_commands:gcvspl [2024/07/03 17:43] – created sgranger | visual3d:documentation:pipeline:signal_commands:gcvspl [2024/10/24 15:15] (current) – wikisysop | ||
---|---|---|---|
Line 3: | Line 3: | ||
GCVSPL was implemented based on the following article: | GCVSPL was implemented based on the following article: | ||
- | \\ | ||
**H.J. Woltring** (1986), A FORTRAN package for generalized, | **H.J. Woltring** (1986), A FORTRAN package for generalized, | ||
- | \\ | ||
The command is used like all other filter commands in Visual3D. | The command is used like all other filter commands in Visual3D. | ||
For example, to filter all TARGET signals in the ACTIVE FILES. | For example, to filter all TARGET signals in the ACTIVE FILES. | ||
- | **GCVSPL** | + | < |
+ | GCVSPL | ||
/ | / | ||
! / | ! / | ||
Line 25: | Line 24: | ||
! /MAX_GAP=0 | ! /MAX_GAP=0 | ||
! / | ! / | ||
- | **;** | + | ; |
- | {{GCVSPLdlg.jpg}} | + | </ |
+ | |||
+ | {{:GCVSPLdlg.jpg}} | ||
==== Num_Spline_Order ==== | ==== Num_Spline_Order ==== | ||
+ | < | ||
1 = linear | 1 = linear | ||
2 = cubic | 2 = cubic | ||
3 = quintic | 3 = quintic | ||
4 = heptic splines. | 4 = heptic splines. | ||
+ | </ | ||
==== Error_Variance ==== | ==== Error_Variance ==== | ||
+ | < | ||
0 = an interpolating spline is calculated. | 0 = an interpolating spline is calculated. | ||
<0 & Optimization Mode= 2 the smoothing parameter is determined by minimizing the Generalized Cross-Validation function | <0 & Optimization Mode= 2 the smoothing parameter is determined by minimizing the Generalized Cross-Validation function | ||
>0 & Optimization Mode= 1 the smoothing parameter is specified by the variance | >0 & Optimization Mode= 1 the smoothing parameter is specified by the variance | ||
- | >0 & Optimization Mode= 3 the smoothing parameter is determined so as to minimize an estimate of the true mean squared error, which depends on the variance. | + | >0 & Optimization Mode= 3 the smoothing parameter is determined so as to minimize an estimate of the true mean squared error, |
+ | | ||
Woltring' | Woltring' | ||
+ | </ | ||
The default value of the error variance is 0.01 | The default value of the error variance is 0.01 | ||
Line 51: | Line 55: | ||
The relationship between the variance and the cutoff frequency was declared here: | The relationship between the variance and the cutoff frequency was declared here: | ||
- | [[[http:// | + | [[http:// |
[[http:// | [[http:// | ||
- | \\ | ||
- | |||
+ | < | ||
First account for a pass butterworth filter (e.g. a fourth order butterworth filter) | First account for a pass butterworth filter (e.g. a fourth order butterworth filter) | ||
Modified_cut_off_freq= cut_off_freq / 0.802 | Modified_cut_off_freq= cut_off_freq / 0.802 | ||
Variance = sampling_freq/ | Variance = sampling_freq/ | ||
+ | </ | ||
=== Cutoff Frequency Test === | === Cutoff Frequency Test === | ||
- | Create a SIN wave | + | Create a SIN wave\\ |
- | Filter the SIN wave with a cutoff frequency equal to the SIN wave frequency | + | Filter the SIN wave with a cutoff frequency equal to the SIN wave frequency\\ |
- | The resulting signal should have a magnitude (1/sqrt(2)) times the original magnitude. | + | The resulting signal should have a magnitude (1/sqrt(2)) times the original magnitude.\\ |
And should yield the same result as a LOWPASS filter with a 12 Hz cutoff | And should yield the same result as a LOWPASS filter with a 12 Hz cutoff | ||
+ | |||
An example test script in Visual3D | An example test script in Visual3D | ||
+ | < | ||
! create a 12 Hz SIN wave at the ANALOG frequency of the file opened in the Visual3D workspace. | ! create a 12 Hz SIN wave at the ANALOG frequency of the file opened in the Visual3D workspace. | ||
- | **Set_Pipeline_Parameter_From_Expression** | + | Set_Pipeline_Parameter_From_Expression |
/ | / | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | **Set_Pipeline_Parameter_From_Expression** | + | |
+ | Set_Pipeline_Parameter_From_Expression | ||
/ | / | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | **Evaluate_Expression** | + | |
+ | Evaluate_Expression | ||
/ | / | ||
! / | ! / | ||
Line 86: | Line 94: | ||
/ | / | ||
! / | ! / | ||
- | **;** | + | ; |
- | **GCVSPL** | + | |
+ | GCVSPL | ||
/ | / | ||
/ | / | ||
Line 101: | Line 110: | ||
! /MAX_GAP=0 | ! /MAX_GAP=0 | ||
! / | ! / | ||
- | **;** | + | ; |
- | **Lowpass_Filter** | + | |
+ | Lowpass_Filter | ||
/ | / | ||
/ | / | ||
Line 114: | Line 124: | ||
/ | / | ||
! / | ! / | ||
- | **;** | + | ; |
+ | </ | ||
==== ISB Information ==== | ==== ISB Information ==== | ||
The ISB website contains the following information on the algorithm | The ISB website contains the following information on the algorithm | ||
- | \\ | ||
For large datasets (N >> 0) and negligible boundary artefacts, the behaviour of a natural spline approximates that of a periodic spline. For the latter case, the frequency characteristic in the equidistantly sampled, uniformly weighted case is that of a double, phase-symmetric Butterworth filter, with transfer function H(w) = [1 + (w/ | For large datasets (N >> 0) and negligible boundary artefacts, the behaviour of a natural spline approximates that of a periodic spline. For the latter case, the frequency characteristic in the equidistantly sampled, uniformly weighted case is that of a double, phase-symmetric Butterworth filter, with transfer function H(w) = [1 + (w/ | ||
- | \\ | ||
It has been found empirically, | It has been found empirically, | ||
visual3d/documentation/pipeline/signal_commands/gcvspl.1720028625.txt.gz · Last modified: 2024/07/03 17:43 by sgranger