BernoulliDistributionFitToSample Method

Finds the Bernoulli distribution that best fits the given counts.

Definition

Namespace: Meta.Numerics.Statistics.Distributions
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static BernoulliFitResult FitToSample(
	int n0,
	int n1
)

Parameters

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

Return Value

BernoulliFitResult
The best-fit Bernoulli distribution parameters.

See Also