コード例 #1
0
 /// <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));
 }
コード例 #2
0
 /// <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()));
 }