Click or drag to resize
Accord.NET (logo)

IFittableTObservations, TOptionsFit Method (TObservations, Double, TOptions)

Fits the underlying distribution to a given set of observations.

Namespace:  Accord.Statistics.Distributions
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
void Fit(
	TObservations[] observations,
	double[] weights = null,
	TOptions options = null
)
Request Example View Source

Parameters

observations
Type: TObservations
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 (Optional)
Type: SystemDouble
The weight vector containing the weight for each of the samples.
options (Optional)
Type: TOptions
Optional arguments which may be used during fitting, such as regularization constants and additional parameters.
See Also