Computes the frequency of genes based on chromosomes. It really returns getFrequiences using the $new variable, adding gene names, and filtering for cutoff.
# S3 method for BigBang
geneFrequency(o,
filter="none",
subset=TRUE,
gene.names=TRUE,
cutoff=-1,
value=c("frequency", "indexes", "ranks"),
...)The BigBang object can save information about solutions that did not reach the goalFitness. filter=="solutions" ensures that only chromosomes that reach the goalFitness are considered. fitlter=="none" take all chromosomes. filter=="nosolutions" consider only no-solutions (for comparative purposes).
Second level of filter. subset can be a vector specifying which filtered chromosomes are used. It can be a logical vector or a numeric vector (indexes in order given by $bestChromosomes in BigBang object variable). If it is a numeric vector length one, a positive value means take those top chromosomes sorted by fitness, a negative value take those at bottom.
TRUE for naming the result with the stored $geneNames in oject BigBang. Other character vector to name-specific.
Only genes whose frequency is greather than cutoff are repored.
The result. "frequency","indexes","ranks"
A table when value=="frequency", otherwise, a vector.
Goldberg, David E. 1989 Genetic Algorithms in Search, Optimization and Machine Learning. Addison-Wesley Pub. Co. ISBN: 0201157675
For more information see BigBang.
# NOT RUN {
#bb is a BigBang object
geneFrequency(bb)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab