LinearDiscriminantAnalysis.PredictProbabilitiesCore Method

Definition

Namespace: Extreme.Statistics.Multivariate
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

PredictProbabilitiesCore(Matrix<T>, Matrix<Double>, Boolean) Predicts the probabilities of each class based on the specified values of the features.
PredictProbabilitiesCore(Vector<Double>, Vector<Double>, Boolean) Predicts the probabilities of each class based on the specified values of the features.

PredictProbabilitiesCore(Vector<Double>, Vector<Double>, Boolean)

Predicts the probabilities of each class based on the specified values of the features.
C#
protected override Vector<double> PredictProbabilitiesCore(
	Vector<double> features,
	Vector<double> probabilities,
	bool modelFeaturesOnly
)

Parameters

features  Vector<Double>
A vector containing the values for the independent variables.
probabilities  Vector<Double>
The vector that is to hold the result. May be null.
modelFeaturesOnly  Boolean
Specifies whether features includes only features that appear in the fitted model.

Return Value

Vector<Double>
The probabilities that the observation in features belongs to each class.

Exceptions

ArgumentNullExceptionfeatures is null.
DimensionMismatchException

The length of features does not match the required number of values.

See Also