fosanalysis
A framework to evaluate distributed fiber optic sensor data
Loading...
Searching...
No Matches
fosanalysis.utils.interpolation Namespace Reference

Contains functionality for interpolating data. More...

Functions

np.array scipy_interpolate1d (np.array x, np.array y, np.array x_new, str method, **kwargs)
 Interpolate one-dimensional data.
 

Detailed Description

Contains functionality for interpolating data.

Author
Bertram Richter
Date
2023

Function Documentation

◆ scipy_interpolate1d()

np.array fosanalysis.utils.interpolation.scipy_interpolate1d ( np.array x,
np.array y,
np.array x_new,
str method,
** kwargs )

Interpolate one-dimensional data.

Parameters
xOriginal abcissa data.
yOriginal ordinate data.
x_newAbcissa data for the new data points. The interpolation function is evaluated at those points.
methodName of the interpolation function to use. The interpolation function expects two parameters (x and y) and returns a callable. The returned callable should expect only a single parameter (the x_new). According to scipy.interpolate, the following options are available (consult the scipy documentation for details):
  • "interp1d" (legacy)
  • "BarycentricInterpolator"
  • "KroghInterpolator"
  • "PchipInterpolator"
  • "Akima1DInterpolator"
  • "CubicSpline"
  • "make_interp_spline"
  • "make_smoothing_spline"
  • "UnivariateSpline"
  • "InterpolatedUnivariateSpline"
**kwargsAdditionals keyword arguments. Will be passed to the interpolation function.

Definition at line 11 of file interpolation.py.