NASA Logo
Ocean Color Science Software

ocssw V2022
interp Namespace Reference

Classes

class  Interp
 
class  Interpolator
 
class  RegularGridInterpolator2D
 
class  TimeInterpolator
 

Typedefs

typedef double(* interpolation_method2D) (double *x, double *y, size_t n, size_t ix, size_t iy, double *lut, double x0, double y0)
 

Functions

double bilinear2D (double *x, double *y, size_t n, size_t ix, size_t iy, double *lut, double x0, double y0)
 
template<typename T >
size_t search (T *arr, size_t s, size_t e, T val, size_t *i_s, size_t *i_e)
 
template<typename T , typename U , typename... Args, size_t K = sizeof...(Args)>
Interp< T, U, Kinterp (T *lut, std::vector< U * > &grid, Args &&...dims)
 

Variables

constexpr double bad_float = BAD_FLT
 
const std::map< std::string, interpolation_method2Dmethods = {{"bilinear", &bilinear2D}}
 

Typedef Documentation

◆ interpolation_method2D

typedef double(* interpolation_method2D) (double *x, double *y, size_t n, size_t ix, size_t iy, double *lut, double x0, double y0)

Definition at line 33 of file Interpolation.hpp.

Function Documentation

◆ bilinear2D()

double interp::bilinear2D ( double *  x,
double *  y,
size_t  n,
size_t  ix,
size_t  iy,
double *  lut,
double  x0,
double  y0 
)

◆ interp()

Interp<T, U, K> interp::interp ( T *  lut,
std::vector< U * > &  grid,
Args &&...  dims 
)

Definition at line 278 of file Interpolation.hpp.

◆ search()

size_t interp::search ( T *  arr,
size_t  s,
size_t  e,
val,
size_t *  i_s,
size_t *  i_e 
)

Definition at line 130 of file Interpolation.hpp.

Variable Documentation

◆ bad_float

constexpr double bad_float = BAD_FLT
constexpr

Definition at line 39 of file Interpolation.hpp.

◆ methods

const std::map<std::string, interpolation_method2D> methods = {{"bilinear", &bilinear2D}}

Definition at line 42 of file Interpolation.hpp.