T
- extendes Chromosome
public static final class Population.Statistics.Group<T extends Chromosome> extends StatisticsLogger.LoggableStatistics implements java.lang.Iterable<Individual<T>>
Modifier and Type | Method and Description |
---|---|
Individual<T> |
get(int i)
Return a specific
Individual that belong to group |
double[][] |
getAllScores()
Returns scores of all individuals
|
double[] |
getMax()
Returns the maximum score
|
double[] |
getMean()
Returns the mean of scores
|
double[] |
getMin()
Returns the minimum score
|
int |
getNumOfIndividuals()
Return the number of individuals that belong to group
|
Population.Pareto |
getPareto()
Return
Population.Pareto of this group |
double[] |
getStDev()
Returns the stardard deviation of scores
|
Population.Statistics |
groupOf()
Returns
Population.Statistics of group |
boolean |
isCollectable()
Says if the group collects individuals
|
java.util.Iterator<Individual<T>> |
iterator()
Returns the list of individuals that belong to group
|
void |
setCollectable(boolean flag)
Sets if the group must collect individuals
|
int |
size()
Returns the number of individuals in gruop
|
getFigures, getValue
public Population.Statistics groupOf()
Population.Statistics
of grouppublic int size()
public void setCollectable(boolean flag)
flag
- true
if the group must collect individuals. false
otherwisepublic boolean isCollectable()
true
if the group collects individuals. false
otherwisepublic double[] getMean()
public double[] getStDev()
public double[] getMin()
public double[] getMax()
public int getNumOfIndividuals()
public java.util.Iterator<Individual<T>> iterator()
iterator
in interface java.lang.Iterable<Individual<T extends Chromosome>>
public final Individual<T> get(int i)
Individual
that belong to groupi
- index of individual positioni
or null
if gruop is not collectablepublic double[][] getAllScores()
public Population.Pareto getPareto()
Population.Pareto
of this group