BernoulliDistributionFitToSample Method
Finds the Bernoulli distribution that best fits the given counts.
Namespace: Meta.Numerics.Statistics.DistributionsAssembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
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
- 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.
BernoulliFitResultThe best-fit Bernoulli distribution parameters.