|
IDistributionFit Method (Array, Int32, IFittingOptions)
|
Fits the underlying distribution to a given set of observations.
Namespace:
Accord.Statistics.Distributions
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax void Fit(
Array observations,
int[] weights,
IFittingOptions options
)
Sub Fit (
observations As Array,
weights As Integer(),
options As IFittingOptions
)
Request Example
View SourceParameters
- observations
- Type: SystemArray
The array of observations to fit the model against. The array
elements can be either of type double (for univariate data) or
type double[] (for multivariate data).
- weights
- Type: SystemInt32
The weight vector containing the weight for each of the samples. - options
- Type: Accord.Statistics.Distributions.FittingIFittingOptions
Optional arguments which may be used during fitting, such
as regularization constants and additional parameters.
Remarks
Although both double[] and double[][] arrays are supported,
providing a double[] for a multivariate distribution or a
double[][] for a univariate distribution may have a negative
impact in performance.
See Also