|
ExpectationMaximizationTObservationLogLikelihood Method (Double, IDistributionTObservation, TObservation, Double, Double)
|
Computes the log-likelihood of the distribution
for a given set of observations.
Namespace:
Accord.Statistics.Distributions.Fitting
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public static double LogLikelihood(
double[] pi,
IDistribution<TObservation>[] pdf,
TObservation[] observations,
double[] weights,
double weightSum
)
Public Shared Function LogLikelihood (
pi As Double(),
pdf As IDistribution(Of TObservation)(),
observations As TObservation(),
weights As Double(),
weightSum As Double
) As Double
Request Example
View SourceParameters
- pi
- Type: SystemDouble
- pdf
- Type: Accord.Statistics.DistributionsIDistributionTObservation
- observations
- Type: TObservation
- weights
- Type: SystemDouble
- weightSum
- Type: SystemDouble
Return Value
Type:
DoubleSee Also