|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Partition | +--Chromosome
Chromosome
Field Summary | |
static int |
CROSS_AM_X_2RAND_CLASS
|
static int |
CROSS_AM_X_BEST_CLASS
|
static int |
CROSS_AM_X_BEST_WORST
|
static int |
CROSS_RAND
|
static int |
CROSS_X_2RAND_CLASS
|
protected int |
crossoverType
|
static int |
DISTRIB_NONE
|
static int |
DISTRIB_RAND
|
static int |
DISTRIB_TO_EVEN
|
protected int |
distributionType
|
static int |
MUT_MOVE_ELEM
|
static int |
MUT_RAND
|
static int |
MUT_SWAP_ELEM
|
protected int |
mutationType
|
Fields inherited from class Partition |
CF_DIV, CF_POW, CF_PROD, CF_SYM_DIFF, cfIsValid, classCard, classCode, classFitness, classFitnessType, fitness, maxNoClasses, size, v |
Method Summary | |
static void |
computeFitnessValue(Chromosome chrom1,
java.util.Hashtable[] intersectMap,
Partition[] db,
int N,
Chromosome chrom2,
int entropyMeasure,
int fitnessMeasure,
double[] weightDBTarget,
double[] weightTargetDB,
double[] weight)
compute fitness value of chromosome chrom2 based on
the fitness value of chromosome chrom1 and on the
intersection between chrom1 and the collection of
N partitions in db |
static void |
computeFitnessValues(Chromosome[] c1,
int N1,
Partition[] c2,
int N2,
int entropyMeasure,
int fitnessMeasure,
double[] weightDBTarget,
double[] weightTargetDB,
double[] weight)
computes the fitness of the chromosome and the fitness of the classes for chromosomes in the collection c1
relative to the partitions in the collection c2 ;
N1 is the size of the collection c1 ;
N2 represents the number of partitions in
c2 |
static void |
computeFitnessValues(Chromosome chrom1,
java.util.Hashtable[] intersectMap,
Partition[] db,
int N,
Chromosome[] c1,
int N1,
int entropyMeasure,
int fitnessMeasure,
double[] weightDBTarget,
double[] weightTargetDB,
double[] weight)
computes fitness value of chromosomes in collection c1 based on the fitness value of chromosome
chrom1 and on the intersection between
chrom1 and the collection of N
partitions in db |
void |
crossover(Chromosome c,
java.util.Random rand)
performs the crossover between this chromosome and the one received as argument according to crossoverType |
int |
getCrossoverType()
|
int |
getDistributionType()
|
int |
getMutationType()
|
static void |
main(java.lang.String[] args)
|
void |
mutate(java.util.Random rand)
performes the mutation according to mutation type |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int crossoverType
protected int mutationType
protected int distributionType
public static final int CROSS_RAND
public static final int CROSS_X_2RAND_CLASS
public static final int CROSS_AM_X_BEST_CLASS
public static final int CROSS_AM_X_BEST_WORST
public static final int CROSS_AM_X_2RAND_CLASS
public static final int MUT_RAND
public static final int MUT_MOVE_ELEM
public static final int MUT_SWAP_ELEM
public static final int DISTRIB_NONE
public static final int DISTRIB_RAND
public static final int DISTRIB_TO_EVEN
Method Detail |
public int getCrossoverType()
public int getMutationType()
public int getDistributionType()
public static void computeFitnessValues(Chromosome[] c1, int N1, Partition[] c2, int N2, int entropyMeasure, int fitnessMeasure, double[] weightDBTarget, double[] weightTargetDB, double[] weight)
c1
relative to the partitions in the collection c2
;
N1
is the size of the collection c1
;
N2
represents the number of partitions in
c2
public static void computeFitnessValues(Chromosome chrom1, java.util.Hashtable[] intersectMap, Partition[] db, int N, Chromosome[] c1, int N1, int entropyMeasure, int fitnessMeasure, double[] weightDBTarget, double[] weightTargetDB, double[] weight)
c1
based on the fitness value of chromosome
chrom1
and on the intersection between
chrom1
and the collection of N
partitions in db
public static void computeFitnessValue(Chromosome chrom1, java.util.Hashtable[] intersectMap, Partition[] db, int N, Chromosome chrom2, int entropyMeasure, int fitnessMeasure, double[] weightDBTarget, double[] weightTargetDB, double[] weight)
chrom2
based on
the fitness value of chromosome chrom1
and on the
intersection between chrom1
and the collection of
N
partitions in db
public void crossover(Chromosome c, java.util.Random rand)
public void mutate(java.util.Random rand)
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |