|
OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
#include <stdlib.h>#include <stdio.h>#include <math.h>#include <string.h>#include "Algorithms/bet/BetError.h"#include "Algorithms/bet/math/savgol.h"
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) |
| #define FMIN | ( | a, | |
| b | |||
| ) |
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, | |
| b | |||
| ) | tempr=(a);(a)=(b);(b)=tempr |
Definition at line 244 of file savgol.cpp.
Referenced by four1(), ParticleCashedLayout< T, Dim, Mesh >::update(), and ParticleInteractLayout< T, Dim, Mesh >::update().
| #define TINY 1.0e-20; |
Definition at line 126 of file savgol.cpp.
| 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().

| void four1 | ( | double | data[], |
| int | nn, | ||
| int | isign | ||
| ) |
Definition at line 253 of file savgol.cpp.
References Hypervolume::n, sin(), and SWAP.

| int* ivector | ( | long | n | ) |
Definition at line 40 of file savgol.cpp.
References writeBetError().
Referenced by savgol().

| 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().

| 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().

1.8.5