## Types in MathNet.Numerics.Interpolation

Type LinearSpline

Namespace MathNet.Numerics.Interpolation

Interfaces IInterpolation

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

### 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

#### LinearSplineInterpolate(IEnumerable<double> x, IEnumerable<double> y)

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

#### LinearSplineInterpolateInplace(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.

#### LinearSplineInterpolateSorted(Double[] x, Double[] y)

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

### Public Methods

#### doubleDifferentiate(double t)

Differentiate at point t.
##### Parameters
###### `double` t

Point t to interpolate at.

##### Return
###### `double`

Interpolated first derivative at point t.

#### doubleDifferentiate2(double t)

Differentiate twice at point t.
##### Parameters
###### `double` t

Point t to interpolate at.

##### Return
###### `double`

Interpolated second derivative at point t.

#### doubleIntegrate(double t)

Indefinite integral at point t.
##### Parameters
###### `double` t

Point t to integrate at.

#### doubleIntegrate(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].

#### doubleInterpolate(double t)

Interpolate at point t.
##### Parameters
###### `double` t

Point t to interpolate at.

##### Return
###### `double`

Interpolated value x(t).