public static BetaFitResult FitToSample(
IReadOnlyList<double> sample
)
Public Shared Function FitToSample (
sample As IReadOnlyList(Of Double)
) As BetaFitResult
public:
static BetaFitResult^ FitToSample(
IReadOnlyList<double>^ sample
)
static member FitToSample :
sample : IReadOnlyList<float> -> BetaFitResult
The returned fit parameters are the α (Alpha) and β (Beta) parameters, in that order. These are the same parameters, in the same order, that are required by the BetaDistribution(Double, Double) constructor to specify a new Beta distribution.
ArgumentNullException | sample is null. |
InsufficientDataException | sample contains fewer than three values. |
ArgumentOutOfRangeException | Not all the entries in sample lie between zero and one. |