@Test public void zeros() { final BitChromosome c = BitChromosome.of(1000, 0.5); final int zeros = (int)c.zeros().count(); assertEquals(zeros, c.length() - c.bitCount()); assertTrue(c.zeros().noneMatch(c::booleanValue)); }
public IntStream zeros() { return IntStream.range(0, length()) .filter(index -> !Bits.get(_genes, index)); }
BitChromosome extends Number implements
		Chromosome<BitGene>,
		Comparable<BitChromosome>,
		Serializable { public IntStream zeros() { return IntStream.range(0, length()) .filter(index -> !Bits.get(_genes, index)); } }
BitChromosome extends Number implements
		Chromosome<BitGene>,
		Comparable<BitChromosome>,
		Serializable { public IntStream zeros() { return IntStream.range(0, length()) .filter(index -> !Bits.get(_genes, index)); } private  BitChromosome(final byte[] bits, final int length, final double p);  BitChromosome(final byte[] bits, final int start, final int end);  BitChromosome(final byte[] bits); private  BitChromosome(final byte[] bits, final int length); }
BitChromosome extends Number implements
		Chromosome<BitGene>,
		Comparable<BitChromosome>,
		Serializable { public IntStream zeros() { return IntStream.range(0, length()) .filter(index -> !Bits.get(_genes, index)); } private  BitChromosome(final byte[] bits, final int length, final double p);  BitChromosome(final byte[] bits, final int start, final int end);  BitChromosome(final byte[] bits); private  BitChromosome(final byte[] bits, final int length); double oneProbability(); @Override BitGene gene(); boolean booleanValue(); @Override BitGene get(final int index); @Override int length(); boolean booleanValue(final int index); int bitCount(); ListIterator<BitGene> listIterator(); @Override int intValue(); @Override long longValue(); @Override float floatValue(); @Override double doubleValue(); @Override boolean isValid(); BigInteger toBigInteger(); int toByteArray(final byte[] bytes); byte[] toByteArray(); BitSet toBitSet(); IntStream ones(); IntStream zeros(); @Override BitChromosome newInstance(final ISeq<BitGene> genes); @Override BitChromosome newInstance(); BitChromosome map(final Function<? super BitSet, ? extends BitSet> f); String toCanonicalString(); @Override int compareTo(final BitChromosome that); BitChromosome invert(); static BitChromosome of(final int length, final double p); static BitChromosome of(final int length); static BitChromosome of(final BitSet bits, final int length); static BitChromosome of(
		final BitSet bits,
		final int length,
		final double p
	); @Deprecated(since = "6.1", forRemoval = true) static BitChromosome of(final BitSet bits); static BitChromosome of(final BigInteger value); static BitChromosome of(final BigInteger value, final double p); static BitChromosome of(final CharSequence value); static BitChromosome of(final CharSequence value, final double p); static BitChromosome of(
		final CharSequence value,
		final int length,
		final double p
	); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString(); }
BitChromosome extends Number implements
		Chromosome<BitGene>,
		Comparable<BitChromosome>,
		Serializable { public IntStream zeros() { return IntStream.range(0, length()) .filter(index -> !Bits.get(_genes, index)); } private  BitChromosome(final byte[] bits, final int length, final double p);  BitChromosome(final byte[] bits, final int start, final int end);  BitChromosome(final byte[] bits); private  BitChromosome(final byte[] bits, final int length); double oneProbability(); @Override BitGene gene(); boolean booleanValue(); @Override BitGene get(final int index); @Override int length(); boolean booleanValue(final int index); int bitCount(); ListIterator<BitGene> listIterator(); @Override int intValue(); @Override long longValue(); @Override float floatValue(); @Override double doubleValue(); @Override boolean isValid(); BigInteger toBigInteger(); int toByteArray(final byte[] bytes); byte[] toByteArray(); BitSet toBitSet(); IntStream ones(); IntStream zeros(); @Override BitChromosome newInstance(final ISeq<BitGene> genes); @Override BitChromosome newInstance(); BitChromosome map(final Function<? super BitSet, ? extends BitSet> f); String toCanonicalString(); @Override int compareTo(final BitChromosome that); BitChromosome invert(); static BitChromosome of(final int length, final double p); static BitChromosome of(final int length); static BitChromosome of(final BitSet bits, final int length); static BitChromosome of(
		final BitSet bits,
		final int length,
		final double p
	); @Deprecated(since = "6.1", forRemoval = true) static BitChromosome of(final BitSet bits); static BitChromosome of(final BigInteger value); static BitChromosome of(final BigInteger value, final double p); static BitChromosome of(final CharSequence value); static BitChromosome of(final CharSequence value, final double p); static BitChromosome of(
		final CharSequence value,
		final int length,
		final double p
	); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString();  }