@Test(expectedExceptions = IllegalArgumentException.class) public void ofAmbiguousGenes1() { DoubleChromosome.of( DoubleGene.of(1, 2), DoubleGene.of(3, 4), DoubleGene.of(5, 6) ); }
public static DoubleChromosome of(final DoubleGene... genes) { checkGeneRange(Stream.of(genes).map(DoubleGene::range)); return new DoubleChromosome(ISeq.of(genes), IntRange.of(genes.length)); }
DoubleChromosome extends AbstractBoundedChromosome<Double, DoubleGene> implements
		NumericChromosome<Double, DoubleGene>,
		Serializable { public static DoubleChromosome of(final DoubleGene... genes) { checkGeneRange(Stream.of(genes).map(DoubleGene::range)); return new DoubleChromosome(ISeq.of(genes), IntRange.of(genes.length)); } }
DoubleChromosome extends AbstractBoundedChromosome<Double, DoubleGene> implements
		NumericChromosome<Double, DoubleGene>,
		Serializable { public static DoubleChromosome of(final DoubleGene... genes) { checkGeneRange(Stream.of(genes).map(DoubleGene::range)); return new DoubleChromosome(ISeq.of(genes), IntRange.of(genes.length)); } protected  DoubleChromosome(
		final ISeq<DoubleGene> genes,
		final IntRange lengthRange
	); }
DoubleChromosome extends AbstractBoundedChromosome<Double, DoubleGene> implements
		NumericChromosome<Double, DoubleGene>,
		Serializable { public static DoubleChromosome of(final DoubleGene... genes) { checkGeneRange(Stream.of(genes).map(DoubleGene::range)); return new DoubleChromosome(ISeq.of(genes), IntRange.of(genes.length)); } protected  DoubleChromosome(
		final ISeq<DoubleGene> genes,
		final IntRange lengthRange
	); @Override DoubleChromosome newInstance(final ISeq<DoubleGene> genes); @Override DoubleChromosome newInstance(); DoubleChromosome map(final Function<? super double[], double[]> f); DoubleStream doubleStream(); double[] toArray(final double[] array); double[] toArray(); static DoubleChromosome of(final DoubleGene... genes); static DoubleChromosome of(final Iterable<DoubleGene> genes); static DoubleChromosome of(
		final double min,
		final double max,
		final IntRange lengthRange
	); static DoubleChromosome of(
		final double min,
		final double max,
		final int length
	); static DoubleChromosome of(
		final DoubleRange range,
		final IntRange lengthRange
	); static DoubleChromosome of(final DoubleRange range, final int length); static DoubleChromosome of(final double min, final double max); static DoubleChromosome of(final DoubleRange range); }
DoubleChromosome extends AbstractBoundedChromosome<Double, DoubleGene> implements
		NumericChromosome<Double, DoubleGene>,
		Serializable { public static DoubleChromosome of(final DoubleGene... genes) { checkGeneRange(Stream.of(genes).map(DoubleGene::range)); return new DoubleChromosome(ISeq.of(genes), IntRange.of(genes.length)); } protected  DoubleChromosome(
		final ISeq<DoubleGene> genes,
		final IntRange lengthRange
	); @Override DoubleChromosome newInstance(final ISeq<DoubleGene> genes); @Override DoubleChromosome newInstance(); DoubleChromosome map(final Function<? super double[], double[]> f); DoubleStream doubleStream(); double[] toArray(final double[] array); double[] toArray(); static DoubleChromosome of(final DoubleGene... genes); static DoubleChromosome of(final Iterable<DoubleGene> genes); static DoubleChromosome of(
		final double min,
		final double max,
		final IntRange lengthRange
	); static DoubleChromosome of(
		final double min,
		final double max,
		final int length
	); static DoubleChromosome of(
		final DoubleRange range,
		final IntRange lengthRange
	); static DoubleChromosome of(final DoubleRange range, final int length); static DoubleChromosome of(final double min, final double max); static DoubleChromosome of(final DoubleRange range);  }