Expand description
A re-write of GSL's Interpolation in Rust.
§1D Interpolation Types
- Linear
- Cubic
- CubicPeriodic
- Akima
- AkimaPeriodic
- Steffen
- DynInterpType - Dynamic Interpolation Type
§2D Interpolation Types
§Higher level Interface
§Implemented GSL features
-
1D Interpolation
-
Instantiation [
gsl_interp_alloc(),gsl_interp_init(),gsl_interp_free()] -
1D Interpolation types [
gsl_interp_type]-
Linear [
gsl_interp_linear] -
Polynomial [
gsl_interp_polynomial] 1 -
Cubic [
gsl_interp_cspline] -
Cubic Periodic [
gsl_interp_cspline_periodic] only works for 3 points at the moment; the general case is missing a cyclically tridiagonal matrix solver, which is currently not implemented byndarray_linalg. -
Akima [
gsl_interp_akima], could use some better testing -
Akima Periodic [
gsl_interp_akima_periodic] -
Steffen [
gsl_interp_steffen]
-
Linear [
-
Evaluation 2
-
f(x) evaluation [
gsl_interp_eval()] -
f’(x) evaluation [
gsl_interp_eval_deriv()] -
f’’(x) evaluation [
gsl_interp_eval_deriv2()] -
Numerical Integral [
gsl_interp_integ()]
-
f(x) evaluation [
-
Utility functions
-
Name [
gsl_interp_name()] -
Minimum number of points [
gsl_interp_min_size()andgsl_interp_type_min_size()]
-
Name [
- Higher level Interface (Splines)
-
Instantiation [
-
2D Interpolation
-
Instantiation [
gsl_interp2d_alloc(),gsl_interp2d_init(),gsl_interp2d_free()] -
2D Interpolation Grids [
gsl_interp2d_set,gsl_interp2d_get(),gsl_interp2d_idx] -
2D Interpolation types [
gsl_interp2d_type]-
Bilinear [
gsl_interp2d_bilinear] -
Bicubic [
gsl_interp2d_bicubic]
-
Bilinear [
-
Utility functions
-
Name [
gsl_interp2d_name()] -
Minimum number of points [
gsl_interp2d_min_size()andgsl_interp2d_type_min_size()]
-
Name [
-
Evaluation 2
-
f(x, y) evaluation [
gsl_interp2d_eval()] -
f(x, y) extrapolated evaluation [
gsl_interp2d_eval_extrap()] -
fx(x, y) evaluation [
gsl_interp2d_eval_deriv_x()] -
fy(x, y) evaluation [
gsl_interp2d_eval_deriv_y()] -
fxx(x, y) evaluation [
gsl_interp2d_eval_deriv_xx()] -
fyy(x, y) evaluation [
gsl_interp2d_eval_deriv_yy()] -
fxy(x, y) evaluation [
gsl_interp2d_eval_deriv_xy()]
-
f(x, y) evaluation [
- Higher level Interface (Splines)
-
Instantiation [
-
Acceleration
-
Instantiation [
gsl_interp_accel_alloc(),gsl_interp_accel_reset(),gsl_interp_accel_free()] -
Lookup [
gsl_interp_bsearch(),gsl_interp_accel_find()]
-
Instantiation [
Structs§
- Accelerator
- Index Look-up Acceration
- Akima
- Akima Interpolation type.
- Akima
Interp - Akima Interpolator.
- Akima
Periodic - Akima Periodic Interpolation type.
- Akima
Periodic Interp - Akima Interpolator.
- Bicubic
- Bicubic Interpolation
- Bicubic
Interp - Bicubic Interpolator.
- Bilinear
- Bilinear Interpolation type.
- Bilinear
Interp - Bilinear Interpolator.
- Cache
- Cache holding values retrieved from the
zaarray. - Cubic
- Cubic Interpolation type.
- Cubic
Interp - Cubic Interpolator.
- Cubic
Periodic - Cubic Periodic Interpolation type.
- Cubic
Periodic Interp - Cubic Periodic interpolator.
- Domain
Error - Returned when the supplied value is outside the range of the supplied xdata or ydata.
- DynInterp2d
Type - Representation of a 2d Interpolation Type that is not known in compile-time.
- DynInterp
Type - Representation of an Interpolation Type that is not known in compile-time.
- Linear
- Linear Interpolation type.
- Linear
Interp - Linear Interpolator.
- Spline
- 1D Higher level interface.
- Spline2d
- 2D Higher level interface.
- Steffen
- Steffen Interpolation type.
- Steffen
Interp - Steffen Interpolator.
Enums§
- Interpolation
Error - The error type for Interpolator creation and data checking.
Traits§
- Interp2d
Type - Representation of a 2D Interpolation Type.
- Interp
Type - Representation of an Interpolation Type.
- Interpolation
- Defines the required evaluation methods.
- Interpolation2d
- Defines the required evaluation methods.
- Num
- Trait for supported data types.
Functions§
- make_
interp2d_ type - Creates a
DynInterp2dTypeoftyptype. - make_
interp_ type - Creates a
DynInterpTypeoftyptype. - make_
spline - Creates a
DynSplineoftyptype. - make_
spline2d - Creates a
DynSpline2doftyptype. - z_get
- Returns the value
zof grid point (i,j) of the arrayzatoz. - z_idx
- Returns the index corresponding to the grid point (
i,j). The index is given byj*len(x) + i - z_set
- Sets the value
zof grid point (i,j) of the arrayzatoz.
Type Aliases§
- DynInterpolation
- 1D Interpolator with runtime-determined Interpolation Type.
- DynInterpolation2d
- 2D Interpolator with runtime-determined Interpolation Type.
- DynSpline
- 2D Spline with runtime-determined Interpolation Type.
- DynSpline2d
- 2D Spline with runtime-determined Interpolation Type.