/// <summary> /// Computes the log-likelihood of the distribution /// for a given set of observations. /// </summary> /// public double LogLikelihood(double[] observations) { return(ExpectationMaximization <double> .LogLikelihood(coefficients, cache, observations)); }
/// <summary> /// Computes the log-likelihood of the distribution /// for a given set of observations. /// </summary> /// public double LogLikelihood(double[][] observations, double[] weights) { return(ExpectationMaximization <double[]> .LogLikelihood(coefficients, cache, observations, weights, weights.Sum())); }