|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlio.population.bitchain.SetAnalysis
public class SetAnalysis
This class provides statistical information from a set of BitChain individuals. In order to do that, it extracts the references to the elements inside each one and works with the arrays of integer, allowing the access to each position independently.
Constructor Summary | |
---|---|
SetAnalysis(Individual[] individuals)
Constructor Builds a set analizer by extracting the references to the elements inside each BitChain 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 BitChain in the array as parameter. |
|
SetAnalysis(int[][] samples)
|
|
SetAnalysis(Population pop)
Constructor Builds a set analizer by extracting the references to the elements inside each BitChain 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 BitChain in the populaton passed as parameter. |
Method Summary | |
---|---|
double |
getCondEntropy(int X,
int Y)
Computes conditional entropy for X given Y |
double |
getCondEntropy(int X,
int[] listY)
Computes conditional entropy for X given Y |
double |
getCondMutualInformation(int X,
int[] listY,
int[] listZ)
Computes conditional mutual information value for X and listY given listZ |
int |
getCount(int[] vars,
int[] values)
|
int |
getCount(int varX,
int varY,
int valX,
int valY)
|
double |
getEntropy(int X)
Computes entropy for X |
double |
getEntropy(int[] vars)
|
double |
getEntropyB2(int[] vars)
|
int |
getIndSize()
Getter for property indSize. |
double[] |
getMarginalFrequencies()
|
double |
getMutualInformation(int X,
int Y)
Computes mutual information value for X and listY |
double |
getMutualInformation(int X,
int[] listY)
Computes mutual information value for X and listY |
int |
getSize()
Getter for property size. |
static void |
main(java.lang.String[] args)
|
void |
setIndSize(int indSize)
Setter for property indSize. |
void |
setSize(int size)
Setter for property 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 processed.numIndividuals
- number of individuals that will be encapsulated.public SetAnalysis(int[][] samples)
Method Detail |
---|
public double getEntropy(int X)
X
- varialbes's position in the individual
public double getEntropy(int[] vars)
public double getEntropyB2(int[] vars)
public double getCondEntropy(int X, int Y)
X
- variable's position in the individualY
- variable's position in the individual
public double getCondEntropy(int X, int[] listY)
X
- variable's position in the individuallistY
- variables' position in the individual
public int getCount(int[] vars, int[] values)
vars
- position for the required variablesvalues
- values for this variables
public int getCount(int varX, int varY, int valX, int valY)
varX
- position for variable XvarY
- position for variable YvalX
- variable X valuevalY
- variable Y value
public double[] getMarginalFrequencies()
public double getMutualInformation(int X, int[] listY)
X
- variable's position in the individuallistY
- variables' position in the individual
public double getMutualInformation(int X, int Y)
X
- variable's position in the individualY
- variable's position in the individual
public double getCondMutualInformation(int X, int[] listY, int[] listZ)
X
- variable's position in the individuallistY
- variables' position in the individuallistZ
- conditioning variables' position in the individual
public static void main(java.lang.String[] args)
public int getSize()
public void setSize(int size)
size
- New value of property size.public int getIndSize()
public void setIndSize(int indSize)
indSize
- New value of property indSize.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |