Namespaces

Types in MathNet.Numerics.Interpolation

Type LinearSpline

Namespace MathNet.Numerics.Interpolation

Interfaces IInterpolation

Piece-wise Linear Interpolation.
Supports both differentiation and integration.

Constructors

Static Functions

Methods

Public Constructors

LinearSpline(Double[] x, Double[] c0, Double[] c1)

Parameters
Double[] x

Sample points (N+1), sorted ascending

Double[] c0

Sample values (N or N+1) at the corresponding points; intercept, zero order coefficients

Double[] c1

Slopes (N) at the sample points (first order coefficients): N

Public Static Functions

LinearSpline Interpolate(IEnumerable<double> x, IEnumerable<double> y)

Create a linear spline interpolation from an unsorted set of (x,y) value pairs.

LinearSpline InterpolateInplace(Double[] x, Double[] y)

Create a linear spline interpolation from an unsorted set of (x,y) value pairs. WARNING: Works in-place and can thus causes the data array to be reordered.

LinearSpline InterpolateSorted(Double[] x, Double[] y)

Create a linear spline interpolation from a set of (x,y) value pairs, sorted ascendingly by x.

Public Methods

double Differentiate(double t)

Differentiate at point t.
Parameters
double t

Point t to interpolate at.

Return
double

Interpolated first derivative at point t.

double Differentiate2(double t)

Differentiate twice at point t.
Parameters
double t

Point t to interpolate at.

Return
double

Interpolated second derivative at point t.

bool Equals(object obj)

int GetHashCode()

Type GetType()

double Integrate(double t)

Indefinite integral at point t.
Parameters
double t

Point t to integrate at.

double Integrate(double a, double b)

Definite integral between points a and b.
Parameters
double a

Left bound of the integration interval [a,b].

double b

Right bound of the integration interval [a,b].

double Interpolate(double t)

Interpolate at point t.
Parameters
double t

Point t to interpolate at.

Return
double

Interpolated value x(t).

string ToString()