Click or drag to resize

BernoulliDistributionFitToSample Method

Finds the Bernoulli distribution that best fits the given counts.

Namespace:  Meta.Numerics.Statistics.Distributions
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
public static BernoulliFitResult FitToSample(
	int n0,
	int n1
)

Parameters

n0
Type: SystemInt32
The count of zeros (failure outcomes), which must be non-negative.
n1
Type: SystemInt32
The count of ones (success outcomes), which must be non-negative.

Return Value

Type: BernoulliFitResult
The best-fit Bernoulli distribution parameters.
See Also