General Purpose Geodetic Library
SgCubicSpline Class Reference

#include <SgCubicSpline.h>

Public Member Functions

 SgCubicSpline (int numOfRecords, int dimension)
 
 ~SgCubicSpline ()
 
int numOfRecords () const
 
int dimension () const
 
bool isOk () const
 
SgVectorargument ()
 
SgMatrixtable ()
 
void prepare4Spline ()
 
double spline (double arg, int nColumn, double &r)
 

Static Public Member Functions

static const QString className ()
 

Private Member Functions

void solveSpline (int)
 
double h (int i) const
 

Private Attributes

int dimension_
 
int numOfRecords_
 
SgVector argument_
 
SgMatrix table_
 
SgMatrix coeffs_
 
bool isOk_
 

Detailed Description

SgCubicSpline. ====================================================================================================

Definition at line 46 of file SgCubicSpline.h.

Constructor & Destructor Documentation

◆ SgCubicSpline()

SgCubicSpline::SgCubicSpline ( int  numOfRecords,
int  dimension 
)
inline

A constructor. Creates a default object.

Definition at line 134 of file SgCubicSpline.h.

References dimension(), dimension_, isOk_, numOfRecords(), and numOfRecords_.

◆ ~SgCubicSpline()

SgCubicSpline::~SgCubicSpline ( )
inline

A destructor. Frees allocated memory.

Definition at line 147 of file SgCubicSpline.h.

Member Function Documentation

◆ argument()

SgVector & SgCubicSpline::argument ( )
inline

Definition at line 183 of file SgCubicSpline.h.

References argument_.

Referenced by SgVlbiSession::prepare4ErpInterpolation(), and NsTestDialog::testPlot().

◆ className()

const QString SgCubicSpline::className ( )
static

Returns name of the class (for debug output).

Definition at line 37 of file SgCubicSpline.cpp.

Referenced by prepare4Spline().

◆ dimension()

int SgCubicSpline::dimension ( ) const
inline

Returns dimension of the splined table.

Definition at line 158 of file SgCubicSpline.h.

References dimension_.

Referenced by SgCubicSpline().

◆ h()

double SgCubicSpline::h ( int  i) const
inlineprivate

Definition at line 113 of file SgCubicSpline.h.

References argument_, and SgVector::getElement().

Referenced by solveSpline(), and spline().

◆ isOk()

bool SgCubicSpline::isOk ( ) const
inline

Definition at line 174 of file SgCubicSpline.h.

References isOk_.

Referenced by SgVlbiSession::collectAPriories(), and SgVlbiSession::prepare4ErpInterpolation().

◆ numOfRecords()

int SgCubicSpline::numOfRecords ( ) const
inline

Returns a number of records in the table.

Definition at line 166 of file SgCubicSpline.h.

References numOfRecords_.

Referenced by SgCubicSpline().

◆ prepare4Spline()

◆ solveSpline()

void SgCubicSpline::solveSpline ( int  nCol)
private

Definition at line 74 of file SgCubicSpline.cpp.

References coeffs_, SgVector::getElement(), SgMatrix::getElement(), h(), numOfRecords_, and table_.

Referenced by prepare4Spline().

◆ spline()

double SgCubicSpline::spline ( double  arg,
int  nColumn,
double &  r 
)

◆ table()

SgMatrix & SgCubicSpline::table ( )
inline

Definition at line 191 of file SgCubicSpline.h.

References table_.

Referenced by SgVlbiSession::prepare4ErpInterpolation(), and NsTestDialog::testPlot().

Member Data Documentation

◆ argument_

SgVector SgCubicSpline::argument_
private

Definition at line 106 of file SgCubicSpline.h.

Referenced by argument(), h(), prepare4Spline(), and spline().

◆ coeffs_

SgMatrix SgCubicSpline::coeffs_
private

Definition at line 108 of file SgCubicSpline.h.

Referenced by solveSpline(), and spline().

◆ dimension_

int SgCubicSpline::dimension_
private

Definition at line 104 of file SgCubicSpline.h.

Referenced by SgCubicSpline(), dimension(), and prepare4Spline().

◆ isOk_

bool SgCubicSpline::isOk_
private

Definition at line 109 of file SgCubicSpline.h.

Referenced by SgCubicSpline(), isOk(), prepare4Spline(), and spline().

◆ numOfRecords_

int SgCubicSpline::numOfRecords_
private

Definition at line 105 of file SgCubicSpline.h.

Referenced by SgCubicSpline(), numOfRecords(), prepare4Spline(), solveSpline(), and spline().

◆ table_

SgMatrix SgCubicSpline::table_
private

Definition at line 107 of file SgCubicSpline.h.

Referenced by solveSpline(), spline(), and table().


The documentation for this class was generated from the following files: