Canoe
Comprehensive Atmosphere N' Ocean Engine
interpolation.h
Go to the documentation of this file.
1 #ifndef SRC_CLIMATH_INTERPOLATION_H_
2 #define SRC_CLIMATH_INTERPOLATION_H_
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 #include <stddef.h>
8 
9 struct float_triplet;
10 
11 int locate(double const *xx, double x, int n);
12 void interpn(double *val, double const *coor, double const *data,
13  double const *axis, size_t const *len, int ndim, int nval);
14 double interp1(double x, double const *data, double const *axis, size_t len);
15 
16 void spline(int n, struct float_triplet *table, double y1_bot, double y1_top);
17 int find_place_in_table(int n, struct float_triplet *table, double x,
18  double *dx, int il);
19 double splint(double xx, struct float_triplet *table, double dx);
20 
21 void interpnf(double *val, double const *coor, double const *data,
22  double const *axis, size_t const *len, int ndim);
23 
24 #ifdef __cplusplus
25 } /* extern "C" */
26 #endif
27 
28 #endif // SRC_CLIMATH_INTERPOLATION_H_
int find_place_in_table(int n, struct float_triplet *table, double x, double *dx, int il)
double interp1(double x, double const *data, double const *axis, size_t len)
Definition: interpn.c:61
double splint(double xx, struct float_triplet *table, double dx)
Definition: spline.c:152
int locate(double const *xx, double x, int n)
Definition: locate.c:7
void interpn(double *val, double const *coor, double const *data, double const *axis, size_t const *len, int ndim, int nval)
Definition: interpn.c:12
void interpnf(double *val, double const *coor, double const *data, double const *axis, size_t const *len, int ndim)
Definition: interpnf.c:13
void spline(int n, struct float_triplet *table, double y1_bot, double y1_top)
Definition: spline.c:21
double x
Definition: core.h:11