gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
DeBoor Class Reference

#include <DeBoor.H>

Collaboration diagram for DeBoor:
[legend]

Public Member Functions

 DeBoor ()
 
virtual ~DeBoor ()
 
void csaps (float *x, float *y, float *dy, int n, float s)
 
float operator[] (int i)
 

Private Member Functions

void createMatrices (int n)
 
float **& createMatrix (int k)
 
void deleteMatrices ()
 Delete memory. More...
 
void deleteMatrix (float **m)
 

Private Attributes

float breakp [5]
 break for the cubic smoothing spline pp-representation More...
 
float coef [4][4]
 coef for the cubic smoothing spline pp-representation More...
 
int l
 Number of poly. pieces making up the cubic smoothing spline pp-rep. More...
 
float ** v
 work array More...
 
float ** a
 results array More...
 
int N
 The number of samples int he work and results array. More...
 
vector< float > resultCSAPS
 The result of csaps. More...
 

Detailed Description

DeBoor's spline implementation : http://pages.cs.wisc.edu/~deboor

Definition at line 26 of file DeBoor.H.

Constructor & Destructor Documentation

◆ DeBoor()

DeBoor::DeBoor ( )

Definition at line 30 of file DeBoor.C.

Here is the call graph for this function:

◆ ~DeBoor()

DeBoor::~DeBoor ( )
virtual

Definition at line 77 of file DeBoor.C.

Member Function Documentation

◆ createMatrices()

void DeBoor::createMatrices ( int  n)
private

Create the matrices v and a, setting N to n

Parameters
nThe number of rows to create in v and a, on exit N=n

Definition at line 101 of file DeBoor.C.

◆ createMatrix()

float **& DeBoor::createMatrix ( int  k)
private

Create a matrix containing N rows

Parameters
kThe number of columns
Returns
The created matrix

Definition at line 82 of file DeBoor.C.

◆ csaps()

void DeBoor::csaps ( float *  x,
float *  y,
float *  dy,
int  n,
float  s 
)

Cubic smoothing spline.

Parameters
xThe ordinates
yThe co-ordinates
dyThe uncertainty estimate >0
nThe number of samples
sThe smoothing parameter

Definition at line 124 of file DeBoor.C.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteMatrices()

void DeBoor::deleteMatrices ( )
private

Delete memory.

Definition at line 71 of file DeBoor.C.

◆ deleteMatrix()

void DeBoor::deleteMatrix ( float **  m)
private

Delete a matrix

Parameters
mThe matrix of pointers to delete

Definition at line 51 of file DeBoor.C.

◆ operator[]()

float DeBoor::operator[] ( int  i)

Definition at line 133 of file DeBoor.C.

Member Data Documentation

◆ a

float** DeBoor::a
private

results array

Definition at line 32 of file DeBoor.H.

◆ breakp

float DeBoor::breakp[5]
private

break for the cubic smoothing spline pp-representation

Definition at line 27 of file DeBoor.H.

◆ coef

float DeBoor::coef[4][4]
private

coef for the cubic smoothing spline pp-representation

Definition at line 28 of file DeBoor.H.

◆ l

int DeBoor::l
private

Number of poly. pieces making up the cubic smoothing spline pp-rep.

Definition at line 29 of file DeBoor.H.

◆ N

int DeBoor::N
private

The number of samples int he work and results array.

Definition at line 33 of file DeBoor.H.

◆ resultCSAPS

vector<float> DeBoor::resultCSAPS
private

The result of csaps.

Definition at line 56 of file DeBoor.H.

◆ v

float** DeBoor::v
private

work array

Definition at line 31 of file DeBoor.H.


The documentation for this class was generated from the following files:
gtkIOStream: DeBoor Class Reference
GTK+ IOStream  Beta