|
ToolsFitNewTDistribution, TObservations, TOptions Method (TDistribution, TObservations, TOptions, Double)
|
Creates a new distribution that has been fit to a given set of observations.
Namespace:
Accord.Statistics
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public static TDistribution FitNew<TDistribution, TObservations, TOptions>(
this TDistribution distribution,
TObservations[] observations,
TOptions options,
double[] weights = null
)
where TDistribution : Object, IFittable<TObservations, TOptions>, ICloneable
where TOptions : class, IFittingOptions
<ExtensionAttribute>
Public Shared Function FitNew(Of TDistribution As {Object, IFittable(Of TObservations, TOptions), ICloneable}, TObservations, TOptions As {Class, IFittingOptions}) (
distribution As TDistribution,
observations As TObservations(),
options As TOptions,
Optional weights As Double() = Nothing
) As TDistribution
Request Example
View SourceParameters
- distribution
- Type: TDistribution
The distribution whose parameters should be fitted to the samples. - observations
- Type: TObservations
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). - options
- Type: TOptions
Optional arguments which may be used during fitting, such
as regularization constants and additional parameters. - weights (Optional)
- Type: SystemDouble
The weight vector containing the weight for each of the samples.
Type Parameters
- TDistribution
- TObservations
- TOptions
Return Value
Type:
TDistributionUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also