Interpolation.Logit Linear Curve Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0
Overload List
| Logit | Creates a piecewise linear interpolating curve with logit transformation on the y-axis. |
| Logit | Creates a piecewise linear interpolating curve with logit transformation on the y-axis. |
LogitLinearCurve(Double[], Double[])
Creates a piecewise linear interpolating curve with logit transformation on the y-axis.
public static PiecewiseInterpolatingCurve LogitLinearCurve(
double[] xValues,
double[] yValues
)Parameters
- xValues Double[]
- The x-coordinates of the data points. Must be strictly increasing.
- yValues Double[]
- The y-coordinates of the data points. Must be in the range (0, 1).
Return Value
PiecewiseInterpolatingCurveA PiecewiseInterpolatingCurve that interpolates linearly in logit(y) space.
Remarks
This method creates a curve that is linear in logit space, where logit(y) = log(y/(1-y)). This is useful for probability data and sigmoid-like relationships.
Exceptions
| Argument | xValues or yValues is null. |
| Dimension | The lengths of xValues and yValues do not match. |
| Argument | yValues contains values outside the range (0, 1), or xValues is not strictly increasing. |
LogitLinearCurve(ReadOnlySpan<Double>, ReadOnlySpan<Double>)
Creates a piecewise linear interpolating curve with logit transformation on the y-axis.
public static PiecewiseInterpolatingCurve LogitLinearCurve(
ReadOnlySpan<double> xValues,
ReadOnlySpan<double> yValues
)Parameters
- xValues ReadOnlySpan<Double>
- The x-coordinates of the data points. Must be strictly increasing.
- yValues ReadOnlySpan<Double>
- The y-coordinates of the data points. Must be in the range (0, 1).
Return Value
PiecewiseInterpolatingCurveA PiecewiseInterpolatingCurve that interpolates linearly in logit(y) space.
Remarks
This method creates a curve that is linear in logit space, where logit(y) = log(y/(1-y)). This is useful for probability data and sigmoid-like relationships.
Exceptions
| Dimension | The lengths of xValues and yValues do not match. |
| Argument | yValues contains values outside the range (0, 1), or xValues is not strictly increasing. |