Click or drag to resize

Univariate.MaximumLikelihoodFit Method

Finds the parameters that make an arbitrary, parameterized distribution best fit the sample.

Namespace:  Meta.Numerics.Statistics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
public static DistributionFitResult<ContinuousDistribution> MaximumLikelihoodFit(
	this IReadOnlyList<double> sample,
	Func<IReadOnlyDictionary<string, double>, ContinuousDistribution> factory,
	IReadOnlyDictionary<string, double> start
)

Parameters

sample
Type: System.Collections.Generic.IReadOnlyList<Double>
The sample.
factory
Type: System.Func<IReadOnlyDictionary<String, Double>, ContinuousDistribution>
A delegate that creates a distribution given its parameters.
start
Type: System.Collections.Generic.IReadOnlyDictionary<String, Double>
An initial guess at the parameter values.

Return Value

Type: DistributionFitResult<ContinuousDistribution>
The best fit parameters.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IReadOnlyList<Double>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also