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: 3.1.0.0 (3.1.0.0)
Syntax
public static FitResult FitToSample(
	Sample sample
)

Parameters

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

Return Value

Type: FitResult
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