VERB_code_2.3
Maths::Interpolation::Linear Class Reference

Linear interpolation of two arrays. More...

#include <linear.h>

Public Member Functions

 Linear (int n, double *x, double *y)
 
 ~Linear ()
 
double getValue (double x)
 

Public Attributes

int size
 size of matrix
 

Detailed Description

Linear interpolation of two arrays.

Definition at line 16 of file linear.h.

Constructor & Destructor Documentation

Maths::Interpolation::Linear::Linear ( int  n,
double *  x,
double *  y 
)
inline

Linear interpolation constructor

Parameters
n- length of arrays
*x- pointer to start of array x
*y- pointer to start of array y

Definition at line 25 of file linear.h.

Maths::Interpolation::Linear::~Linear ( )
inline

Linear interpolation destructor free memory of m_x and m_y

Definition at line 39 of file linear.h.

Member Function Documentation

double Maths::Interpolation::Linear::getValue ( double  x)
inline

Obtains the value from interpolating the two arrays nearest to x

Parameters
x- value for which to interpolate at

Definition at line 47 of file linear.h.


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