Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

golsav.h File Reference

Golay-Savitzky data and first derivative smoothing. More...

Go to the source code of this file.

Functions

int gol_sav (const double *Data, int Len, int Formula, int Cyc, double *Sm, double *Smder)
 gol_sav(Data, Len, Formula, Cyc, Sm, Smder): smooths the Len-long array Data Cyc times using the Golay-Savitzky formula. More...


Detailed Description

Golay-Savitzky data and first derivative smoothing.

Definition in file golsav.h.


Function Documentation

int gol_sav ( const double * Data,
int Len,
int Formula,
int Cyc,
double * Sm,
double * Smder )
 

gol_sav(Data, Len, Formula, Cyc, Sm, Smder): smooths the Len-long array Data Cyc times using the Golay-Savitzky formula.

Formula is 5,7,9 or 11 (the number of G-S points): Formula<5 is rounded to 5, Formula>11 down to 11, the numbers 6, 8, 10 will be rounded up. If Sm!=NULL, then the smoothed points will be put into it. If Smder!=NULL, then the smoothed derivatives will be put into it. It is an error if both are NULL at the same time. Return value: the number of smoothing cycles performed.


Generated at Wed Aug 21 09:33:29 2002 for The Razorback C Library: Statistics by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001