Description
Fits all distributions that are compatible with the input data object and returns an array of BDKResult object, sorted based on the fit statistic you specify. The method of fitting is usually the Maximum Likelihood Method, although in some cases this method is modified.
Syntax
object.FitAll(sortBy As BDKFitStatistic, resultArray() As BDKResult)
Arguments
sortBy (Required BDKFitStatisitc) – the fit statistic which to sort the resultArray. The possible fit statistics are:
BDKChiSqStatistic – for continuous or discrete sample data.
BDKKSStatistic – for continuous sample data.
BDKADStatistic – for continuous sample data.
BDKRMSError – for density or cumulative data.
resultArray (Required Array of BDKResult objects) – this array receives an array of BDKResult objects, one object for each successful fit to the data. The array is sorted in order of decreasing goodness-of-fit, based on the fit statistic specified in the sortBy parameter. Invalid fits are not returned in this array.
Return Value
(Integer) – the number of valid fits returned in the resultArray argument.
Example
Dim numValidFits as Integer
Dim results() as BDKResult
numValidFits = inputObj.FitAll(BDKChiSqStatistic, results())