OceanDirect  1.31.0
OceanDirect C++/C API
oceandirect::api::OceanProcess Class Reference

Static Public Member Functions

static double EvaluatePolynomial (const double x, const std::vector< double > &polyCoeff)
 
static int FindNearest (const std::vector< double > &xaxis, double wl)
 

Member Function Documentation

◆ EvaluatePolynomial()

static double oceandirect::api::OceanProcess::EvaluatePolynomial ( const double  x,
const std::vector< double > &  polyCoeff 
)
static

Evaluate the polynomial with specified coefficients at the point x. The coefficients must be in ascending order i.e. the intercept is the first element and the highest order coefficient last.

◆ FindNearest()

static int oceandirect::api::OceanProcess::FindNearest ( const std::vector< double > &  xaxis,
double  wl 
)
static

Find the nearest element to a specified value contained wholly within the specified array of values (sorted in ascending order) i.e. xaxis[first] <= wl <= xaxis[last]. If the criterion is met, return the index of the found value, otherwise return -1.


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