SineInterpolation

public sealed class SineInterpolation : IInterpolation
Pure sine interpolation between a set of consecutive segments.

Constructors

SineInterpolation

#
public SineInterpolation(double[] x, double[] y)
Create a new sine interpolator.
x (double[])X values of crests.
y (double[])Y values of crests.

Properties

SupportsDifferentiation

#
public bool SupportsDifferentiation { get; }
Gets a value indicating whether the algorithm supports differentiation (interpolated derivative).

SupportsIntegration

#
public bool SupportsIntegration { get; }
Gets a value indicating whether the algorithm supports integration (interpolated quadrature).

Methods

Differentiate

#
public double Differentiate(double t)
Differentiate at point t.
t (double)Point t to interpolate at.
Interpolated first derivative at point t.

Differentiate2

#
public double Differentiate2(double t)
Differentiate twice at point t.
t (double)Point t to interpolate at.
Interpolated second derivative at point t.

Integrate

#
public double Integrate(double a, double b)
Definite integral between points a and b.
a (double)Input bound of the integration interval [a,b].
b (double)Right bound of the integration interval [a,b].

Integrate

#
public double Integrate(double t)
Indefinite integral at point t.
t (double)Point t to integrate at.

Interpolate

#
public double Interpolate(double t)
Interpolate at point t.
t (double)Point t to interpolate at.
Interpolated value x(t).