Click or drag to resize
Accord.NET (logo)

JointDistributionFit Method (Int32, Double, GeneralDiscreteOptions)

Fits the underlying distribution to a given set of observations.

Namespace:  Accord.Statistics.Distributions.Multivariate
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public void Fit(
	int[][] observations,
	double[] weights,
	GeneralDiscreteOptions options
)
Request Example View Source

Parameters

observations
Type: SystemInt32
The array of observations to fit the model against. The array elements can be either of type double (for univariate data) or type double[] (for multivariate data).
weights
Type: SystemDouble
The weight vector containing the weight for each of the samples.
options
Type: Accord.Statistics.Distributions.FittingGeneralDiscreteOptions
Optional arguments which may be used during fitting, such as regularization constants and additional parameters.

Implements

IFittableTObservations, TOptionsFit(TObservations, Double, TOptions)
Exceptions
ExceptionCondition
ArgumentExceptionThis method does not accept fitting options.
DimensionMismatchExceptionweights;The weight vector should have the same size as the observations
See Also