@Test(dataProvider = "individualParams") public void individuals(final int size, final int order) { for (int i = 0; i < size; ++i) { final int[] ind = Recombinator.individuals(i, size, order, _random); checkDistinctness(ind); } }
static int[] individuals( final int index, final int size, final int order, final Random random ) { final int[] ind = subset(size, order, random); int i = 0; while (ind[i] < index && i < ind.length - 1) { ++i; } ind[i] = index; return ind; }
Recombinator extends AbstractAlterer<G, C> { static int[] individuals( final int index, final int size, final int order, final Random random ) { final int[] ind = subset(size, order, random); int i = 0; while (ind[i] < index && i < ind.length - 1) { ++i; } ind[i] = index; return ind; } }
Recombinator extends AbstractAlterer<G, C> { static int[] individuals( final int index, final int size, final int order, final Random random ) { final int[] ind = subset(size, order, random); int i = 0; while (ind[i] < index && i < ind.length - 1) { ++i; } ind[i] = index; return ind; } protected  Recombinator(final double probability, final int order); }
Recombinator extends AbstractAlterer<G, C> { static int[] individuals( final int index, final int size, final int order, final Random random ) { final int[] ind = subset(size, order, random); int i = 0; while (ind[i] < index && i < ind.length - 1) { ++i; } ind[i] = index; return ind; } protected  Recombinator(final double probability, final int order); int order(); @Override final AltererResult<G, C> alter(
		final Seq<Phenotype<G, C>> population,
		final long generation
	); }
Recombinator extends AbstractAlterer<G, C> { static int[] individuals( final int index, final int size, final int order, final Random random ) { final int[] ind = subset(size, order, random); int i = 0; while (ind[i] < index && i < ind.length - 1) { ++i; } ind[i] = index; return ind; } protected  Recombinator(final double probability, final int order); int order(); @Override final AltererResult<G, C> alter(
		final Seq<Phenotype<G, C>> population,
		final long generation
	);  }