Click or drag to resize
Accord.NET (logo)

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
)
Request Example View Source

Parameters

pi
Type: SystemDouble
pdf
Type: Accord.Statistics.DistributionsIDistributionTObservation
observations
Type: TObservation
weights
Type: SystemDouble
weightSum
Type: SystemDouble

Return Value

Type: Double
See Also