@Test public void testGetMarginalDistribution() { PBILSpecies instance = new PBILSpecies(); instance.setup(state, BASE); final double[] expected_4vals = new double[] { 0.25, 0.25, 0.25, 0.25 }; final double[] expected_5vals = new double[] { 0.2, 0.2, 0.2, 0.2, 0.2 }; assertArrayEquals(expected_5vals, instance.getMarginalDistribution(0), 0.00001); assertArrayEquals(expected_5vals, instance.getMarginalDistribution(1), 0.00001); assertArrayEquals(expected_4vals, instance.getMarginalDistribution(2), 0.00001); }
public double[] getMarginalDistribution(final int gene) { assert(gene >= 0); assert(gene < distributions.size()); return Arrays.copyOf(distributions.get(gene), distributions.get(gene).length); }
PBILSpecies extends IntegerVectorSpecies { public double[] getMarginalDistribution(final int gene) { assert(gene >= 0); assert(gene < distributions.size()); return Arrays.copyOf(distributions.get(gene), distributions.get(gene).length); } }
PBILSpecies extends IntegerVectorSpecies { public double[] getMarginalDistribution(final int gene) { assert(gene >= 0); assert(gene < distributions.size()); return Arrays.copyOf(distributions.get(gene), distributions.get(gene).length); }  }
PBILSpecies extends IntegerVectorSpecies { public double[] getMarginalDistribution(final int gene) { assert(gene >= 0); assert(gene < distributions.size()); return Arrays.copyOf(distributions.get(gene), distributions.get(gene).length); }  double[] getMarginalDistribution(final int gene); void setup(final EvolutionState state, final Parameter base); Object clone(); Individual newIndividual(final EvolutionState state, int thread); void updateDistribution(final EvolutionState state, final Subpopulation subpop); }
PBILSpecies extends IntegerVectorSpecies { public double[] getMarginalDistribution(final int gene) { assert(gene >= 0); assert(gene < distributions.size()); return Arrays.copyOf(distributions.get(gene), distributions.get(gene).length); }  double[] getMarginalDistribution(final int gene); void setup(final EvolutionState state, final Parameter base); Object clone(); Individual newIndividual(final EvolutionState state, int thread); void updateDistribution(final EvolutionState state, final Subpopulation subpop); static final String P_PBIL_SPECIES; static final String P_ALPHA; static final String P_B; public double alpha; public int b; }