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
)
Public Shared Function FitToSample (
n0 As Integer,
n1 As Integer
) As BernoulliFitResult
public:
static BernoulliFitResult^ FitToSample(
int n0,
int n1
)
static member FitToSample :
n0 : int *
n1 : int -> BernoulliFitResult
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:
BernoulliFitResultThe best-fit Bernoulli distribution parameters.
See Also