SimpleRegressionModel.Predict Method

Definition

Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.2.0

Overload List

Predict(Double) Predicts the value of the dependent variable based on the specified value of the independent variable.
Predict(IDataFrame, ModelInputFormat) Predicts the value of the output corresponding to the specified features.
Predict(Matrix<T>, ModelInputFormat) Predicts the value of the output corresponding to the specified features.
Predict(Vector<T>, ModelInputFormat) Predicts the value of the output corresponding to the specified features.

Predict(Double)

Predicts the value of the dependent variable based on the specified value of the independent variable.
C#
public double Predict(
	double value
)

Parameters

value  Double
The values for the independent variable.

Return Value

Double
The value of the dependent variable predicted by the regression.

Remarks

This method is available when the model is fitted or deployed. It throws an InvalidOperationException if the model is empty.

Exceptions

InvalidOperationException Thrown if the model is empty.

See Also