|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlio.population.contchain.SetAnalysis
public class SetAnalysis
This class deals with a population considering that elements are chains of real values. It allows performing some operations such as getting statistics of different variables, etc.
Constructor Summary | |
---|---|
SetAnalysis(double[][] samples)
|
|
SetAnalysis(Individual[] individuals)
Constructor Builds a set analizer by extracting the references to the elements inside each ContChain in the array passed as parameter. |
|
SetAnalysis(Individual[] individuals,
int pNumIndividuals)
Constructor Builds a set analizer by extracting the references to the elements inside each ContChain in the array as parameter. |
|
SetAnalysis(Population pop)
Constructor Builds a set analizer by extracting the references to the elements inside each ContChain in the populaton passed as parameter. |
|
SetAnalysis(Population pop,
int pNumIndividuals)
Constructor Builds a set analizer by extracting the references to the elements inside each ContChain in the populaton passed as parameter. |
Method Summary | |
---|---|
int |
getIndSize()
|
double |
getMean(int variable)
Get the mean value of some variable. |
double[][] |
getMeansAndVariances()
Gets means and variances of all variables. |
int |
getSize()
|
double |
getVariance(double mean,
int variable)
Get the variance of some variable given the mean. |
double |
getVariance(int variable)
Get the variance of some variable. |
void |
setIndSize(int indSize)
|
void |
setSize(int size)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SetAnalysis(Individual[] individuals)
individuals
- Array of individuals that will be processed.public SetAnalysis(Individual[] individuals, int pNumIndividuals)
individuals
- Array of individuals that will be processed.numIndividuals
- number of selected;public SetAnalysis(Population pop)
pop
- Population that will be processed.public SetAnalysis(Population pop, int pNumIndividuals)
pop
- Population that will be encapsulated by the
BitChainPopulation.numIndividuals
- number of individuals that will be encapsulated.public SetAnalysis(double[][] samples)
Method Detail |
---|
public double getMean(int variable)
variable
- Number of variable whose mean is wanted to know.
public double getVariance(int variable)
variable
- Number of variable whose mean is wanted to know.
public double getVariance(double mean, int variable)
mean
- Mean value for this variable in the N best individuals.variable
- Number of variable whose mean is wanted to know.
public double[][] getMeansAndVariances()
public int getIndSize()
public void setIndSize(int indSize)
public int getSize()
public void setSize(int size)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |