Class Writers.DoubleChromosome

java.lang.Object
io.jenetics.xml.Writers.DoubleChromosome
Enclosing class:
Writers

public static final class Writers.DoubleChromosome extends Object
This class contains static writer methods for DoubleChromosome objects.

Writer code

final DoubleChromosome value = DoubleChromosome.of(0.0, 1.0, 3); try (AutoCloseableXMLStreamWriter xml = XML.writer(System.out, " ")) { Writers.DoubleChromosome.writer().write(value, xml); }
XML output
 
 <double-chromosome length="3">
     <min>0.0</min>
     <max>1.0</max>
     <alleles>
         <allele>0.27251556008507416</allele>
         <allele>0.003140816229067145</allele>
         <allele>0.43947528327497376</allele>
     </alleles>
 </double-chromosome>