Class LinearSpline
Very simple 1-D linear spline class which implements IFunction. Assumes knots at regular positions - given by a start and increment. The vector of knot values defines how many knots.
Implements
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Distributions
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public class LinearSpline : IFunction
Properties
KnotIncrem
Knot position increment
Declaration
public double KnotIncrem { get; set; }
Property Value
Type | Description |
---|---|
Double |
KnotStart
Knot start position
Declaration
public double KnotStart { get; set; }
Property Value
Type | Description |
---|---|
Double |
YPoints
Y points
Declaration
public Vector YPoints { get; set; }
Property Value
Type | Description |
---|---|
Vector |
Methods
Evaluate(Vector)
Evaluate the linear spline at a given point. Only 1-D input spaces are supported - so only the first element of X is considered
Declaration
public double Evaluate(Vector X)
Parameters
Type | Name | Description |
---|---|---|
Vector | X |
Returns
Type | Description |
---|---|
Double |