Click or drag to resize
Accord.NET (logo)

EmpiricalDistributionFit Method (Double, Int32, EmpiricalOptions)

Fits the underlying distribution to a given set of observations.

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

Parameters

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