Description
Fits a specified distribution type (e.g. Normal, Lognorm) to an input data set and returns a BDKResult object, which contains all the information about the fit. The method of fitting is usually the Maximum Likelihood Method, although in some cases this method is modified.
Syntax
object.Fit(distType as BDKDistributionType)
Arguments
distType (Required BDKDistributionType) – the type of distribution (e.g. Normal, Lognorm) to fit.
Return Value
(BDKResult) – a result object with all the fit information. If the distribution type can not be successfully fit to the data set, an error may be raised.
Example
'Fit a Normal distribution to the input and return a 'result object:
Dim fitResult as BDKResult
Set fitResult = InputDataObj.Fit(BDKDistTypeNORMAL)