Classes | Macros | Functions
Mathematical algorithms

Detailed Description

Classes

class  gnsstk::AllanDeviation
 Compute the overlapping Allan variance of the phase data provided. More...
 
class  gnsstk::BivarStats< T >
 
class  gnsstk::ConstVectorBase< T, BaseClass >
 
class  gnsstk::CubicSpline< T >
 Cubic spline interpolation. More...
 
class  gnsstk::MatrixRowSlice< T >
 
class  gnsstk::PolyFit< T >
 
class  gnsstk::PowerSum
 
class  gnsstk::RACRotation
 
class  gnsstk::SVD< T >
 
class  gnsstk::Triple
 
class  gnsstk::VectorSlice< T >
 

Macros

#define VecBaseNewUnaryOperator(func)
 

Functions

 gnsstk::Matrix< T >::Matrix ()
 default constructor More...
 
template<class T >
gnsstk::median (const Vector< T > &v)
 Compute the median of a gnsstk::Vector. More...
 
 gnsstk::NEW_EXCEPTION_CLASS (ExpressionException, Exception)
 
 gnsstk::NEW_EXCEPTION_CLASS (MatrixException, Exception)
 Thrown when there are problems with the matrix operations. More...
 
template<class T , class BaseClass1 , class BaseClass2 >
Matrix< T > gnsstk::operator&& (const ConstMatrixBase< T, BaseClass1 > &l, const ConstMatrixBase< T, BaseClass2 > &r)
 
template<class T , class E >
std::ostream & gnsstk::operator<< (std::ostream &s, const ConstMatrixBase< T, E > &a)
 Output operator for ConstMatrixBase classes. More...
 
template<class T , class E >
std::ostream & gnsstk::operator<< (std::ostream &s, const ConstVectorBase< T, E > &a)
 
template<typename T >
int gnsstk::Qsort_compare (const T &a, const T &b)
 
template<class T >
gnsstk::SimpleLagrangeInterpolation (const std::vector< T > &X, const std::vector< T > &Y, const T x)
 

Macro Definition Documentation

◆ VecBaseNewUnaryOperator

#define VecBaseNewUnaryOperator (   func)
Value:
\
template <class T, class BaseClass> \
gnsstk::Vector<T> func(const gnsstk::ConstVectorBase<T, BaseClass>& x) \
{ \
BaseClass toReturn(x.size()); \
size_t i; for (i=0; i < x.size(); i++) toReturn[i] = func(x[i]); \
return toReturn; \
}

Definition at line 55 of file VectorOperators.hpp.

Function Documentation

◆ Matrix()

template<class T >
gnsstk::Matrix< T >::Matrix

default constructor

Definition at line 54 of file MatrixImplementation.hpp.

◆ median()

template<class T >
T gnsstk::median ( const Vector< T > &  v)
inline

Compute the median of a gnsstk::Vector.

Definition at line 59 of file Stats.hpp.

◆ NEW_EXCEPTION_CLASS() [1/2]

gnsstk::NEW_EXCEPTION_CLASS ( ExpressionException  ,
Exception   
)

This class provides the ability to resolve general mathematical expressions at run time. The goal is to allow the end user the ability to specify arbitrary observation transformations.

The expression is input as a string in the constructor of the class. The expression is first broken up into tokens. Those tokens are prioritized according to operator precedence and the number of parentheses surrounding them. This list of prioritized combinations is then converted into a 'classic" binary expression tree. All this happens during construction, hidden to the user.

The design of the expression node classes is based on material by David Eck and Scotty Orr found at

http://math.hws.edu/orr/s04/cpsc225/btrees/index.html

After the expression is instantiated, it can be evaluated. If the expression contains variables, those must be set using the set operation for the expression to successfully evaluate.

◆ NEW_EXCEPTION_CLASS() [2/2]

gnsstk::NEW_EXCEPTION_CLASS ( MatrixException  ,
Exception   
)

Thrown when there are problems with the matrix operations.

◆ operator&&()

template<class T , class BaseClass1 , class BaseClass2 >
Matrix<T> gnsstk::operator&& ( const ConstMatrixBase< T, BaseClass1 > &  l,
const ConstMatrixBase< T, BaseClass2 > &  r 
)
inline

Returns the top to bottom concatenation of Matrices l and r only if they have the same number of columns.

Exceptions
MatrixException

Definition at line 62 of file MatrixOperators.hpp.

◆ operator<<() [1/2]

template<class T , class E >
std::ostream& gnsstk::operator<< ( std::ostream &  s,
const ConstMatrixBase< T, E > &  a 
)

Output operator for ConstMatrixBase classes.

Definition at line 58 of file MatrixBaseOperators.hpp.

◆ operator<<() [2/2]

template<class T , class E >
std::ostream& gnsstk::operator<< ( std::ostream &  s,
const ConstVectorBase< T, E > &  a 
)

Output operator for ConstVectorBase objects

Definition at line 69 of file VectorBaseOperators.hpp.

◆ Qsort_compare()

template<typename T >
int gnsstk::Qsort_compare ( const T &  a,
const T &  b 
)

Comparison function for sorting. Default comparision function int comp(T a, T b) returns 1 if a > b, -1 if a < b, and 0 if a==b. A user defined comparison function may be passed as a calling argument to the sort routines.

Parameters
aand b objects of type T to be compared
Returns
1 if a > b, -1 if a < b, or 0 if a==b.

Definition at line 86 of file RobustStats.hpp.

◆ SimpleLagrangeInterpolation()

template<class T >
T gnsstk::SimpleLagrangeInterpolation ( const std::vector< T > &  X,
const std::vector< T > &  Y,
const x 
)

This is a straightforward version of Lagrange Interpolation. Y must have size at least as large as X, and X.size() must be >= 2; x should lie within the range of X.

Exceptions
Exception

Definition at line 66 of file MiscMath.hpp.

gnsstk::ConstVectorBase
Definition: VectorBase.hpp:105


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:43