MiscMath.hpp File Reference


Detailed Description

Miscellaneous mathematical algorithms.

Definition in file MiscMath.hpp.

#include <vector>
#include "MathBase.hpp"

Include dependency graph for MiscMath.hpp:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  gpstk

Defines

#define swapValues(x, y)

Functions

template<class T>
LagrangeInterpolation (const std::vector< T > &X, const std::vector< T > &Y, const T &x, T &err)
 Perform Lagrange interpolation on the data (X[i],Y[i]), i=1,N (N=X.size()), returning the value of Y(x).
template<class T>
void LagrangeInterpolation (const std::vector< T > &X, const std::vector< T > &Y, const T &x, T &y, T &dydx)
 Perform Lagrange interpolation on the data (X[i],Y[i]), i=1,N (N=X.size()), returning the value of Y(x) and dY(x)/dX.
template<class T>
LagrangeInterpolating2ndDerivative (const std::vector< T > &pos, const std::vector< T > &val, T desiredPos)
 Returns the second derivative of Lagrange interpolation.
template<class T>
RSS (T aa, T bb, T cc)
 Perform the root sum square of aa, bb and cc.
template<class T>
RSS (T aa, T bb)
 Perform the root sum square of aa, bb.
template<class T>
RSS (T aa, T bb, T cc, T dd)
 Perform the root sum square of aa, bb, cc and dd.


Define Documentation

#define swapValues x,
 ) 
 

Value:

{ T temporalStorage; \
   temporalStorage = x; x = y; y = temporalStorage; }

Referenced by gpstk::RSS().


Generated on Thu Mar 11 03:30:59 2010 for GPS ToolKit Software Library by  doxygen 1.3.9.1