@Test public void testLikelihoodSingleComponent() throws Exception { double[] y = NODEL_ISIZES; double l = scorer.likelihood(y, new double[] {Math.log(1)}, new double[] {100}, 15); assertEquals(-29.2070, l, 0.0001); }
@Test public void testLikelihood() throws Exception { double[] y = NODEL_ISIZES; double l = scorer.likelihood( y, new double[] {Math.log(.5), Math.log(.5)}, new double[] {100, 1100}, 15); assertEquals(-29.90017, l, 0.0001); }