@Test public void testProb() { assertEquals(0.45, mixture.prob(VectorUtils.of(1.)), 1e-4); }
@Override public double prob(Vector x) { return likelihood(x).sum(); }
DistributionMixture implements Distribution { @Override public double prob(Vector x) { return likelihood(x).sum(); } }
DistributionMixture implements Distribution { @Override public double prob(Vector x) { return likelihood(x).sum(); } DistributionMixture(Vector componentProbs, List<C> distributions); }
DistributionMixture implements Distribution { @Override public double prob(Vector x) { return likelihood(x).sum(); } DistributionMixture(Vector componentProbs, List<C> distributions); @Override double prob(Vector x); Vector likelihood(Vector x); int countOfComponents(); Vector componentsProbs(); List<C> distributions(); @Override int dimension(); }
DistributionMixture implements Distribution { @Override public double prob(Vector x) { return likelihood(x).sum(); } DistributionMixture(Vector componentProbs, List<C> distributions); @Override double prob(Vector x); Vector likelihood(Vector x); int countOfComponents(); Vector componentsProbs(); List<C> distributions(); @Override int dimension();  }