OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Macros | Functions
savgol.cpp File Reference
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include "Algorithms/bet/BetError.h"
#include "Algorithms/bet/math/savgol.h"
Include dependency graph for savgol.cpp:

Go to the source code of this file.

Macros

#define FMIN(a, b)
 
#define TINY   1.0e-20;
 
#define SWAP(a, b)   tempr=(a);(a)=(b);(b)=tempr
 
#define SQR(a)   (a == 0.0 ? 0.0 : a*a)
 

Functions

int * ivector (long n)
 
void savgol (double c[], int np, int nl, int nr, int ld, int m)
 
void four1 (double data[], int nn, int isign)
 
void convlv (double data[], int n, double respns[], int m, int isign, double ans[])
 
void sgSmooth (double *c, int n, int nl, int nr, int ld, int m)
 

Macro Definition Documentation

#define FMIN (   a,
 
)
Value:
(minarg1=(a),minarg2=(b),(minarg1) < (minarg2) ?\
(minarg1) : (minarg2))

Definition at line 92 of file savgol.cpp.

Referenced by savgol().

#define SQR (   a)    (a == 0.0 ? 0.0 : a*a)

Definition at line 390 of file savgol.cpp.

Referenced by convlv().

#define SWAP (   a,
 
)    tempr=(a);(a)=(b);(b)=tempr
#define TINY   1.0e-20;

Definition at line 126 of file savgol.cpp.

Function Documentation

void convlv ( double  data[],
int  n,
double  respns[],
int  m,
int  isign,
double  ans[] 
)

Definition at line 406 of file savgol.cpp.

References SQR, and writeBetError().

Referenced by SavitzkyGolayFilter::apply(), SavitzkyGolayFilter::calc_derivative(), and sgSmooth().

Here is the call graph for this function:

void four1 ( double  data[],
int  nn,
int  isign 
)

Definition at line 253 of file savgol.cpp.

References Hypervolume::n, sin(), and SWAP.

Here is the call graph for this function:

int* ivector ( long  n)

Definition at line 40 of file savgol.cpp.

References writeBetError().

Referenced by savgol().

Here is the call graph for this function:

void savgol ( double  c[],
int  np,
int  nl,
int  nr,
int  ld,
int  m 
)

Definition at line 206 of file savgol.cpp.

References FMIN, ivector(), nr, pow(), sum(), and writeBetError().

Referenced by SavitzkyGolayFilter::SavitzkyGolayFilter(), and sgSmooth().

Here is the call graph for this function:

void sgSmooth ( double *  c,
int  n,
int  nl,
int  nr,
int  ld,
int  m 
)

Definition at line 457 of file savgol.cpp.

References convlv(), log(), pow(), and savgol().

Referenced by EnvelopeBunch::calcI().

Here is the call graph for this function: