Click or drag to resize

ExponentialDistributionFitToSample Method

Computes the exponential distribution that best fits the given sample.

Namespace:  Meta.Numerics.Statistics.Distributions
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
public static ExponentialFitResult FitToSample(
	Sample sample
)

Parameters

sample
Type: Meta.Numerics.StatisticsSample
The sample to fit.

Return Value

Type: ExponentialFitResult
The best fit parameter.
Exceptions
ExceptionCondition
ArgumentNullExceptionsample is null.
InsufficientDataExceptionsample contains fewer than two values.
InvalidOperationExceptionsample contains non-positive values.
Remarks

The returned fit parameter is μ (the Mean). This is the same parameter that is required by the ExponentialDistribution(Double) constructor to specify a new exponential distribution.

See Also