|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectGeneGrammar<Double>
ScientificGrammar
public class ScientificGrammar
| Constructor Summary | |
|---|---|
ScientificGrammar(List<Character> terminals,
Character linkingFunction)
|
|
| Method Summary | |
|---|---|
String |
decode(Gene gene)
explain the given gene in a human readable form |
int |
getMaximumArity()
get the maximum arity among the operators of this grammar |
List<Character> |
getOperators()
return the operators that are valid for this grammar |
protected Double |
link(List<Double> geneValues)
Link the separate gene values in the Individual and assign a representative value to them. |
protected GEPRootNode<Double> |
parse(String sequence)
parse the given sequence and return the root of the AST. |
protected double |
percentError(Double calculated,
Double expected)
compare the Individual's value for a fitness case to the expected value of the fitness case and express the difference as (positive double) percent error in estimation. |
| Methods inherited from class GeneGrammar |
|---|
evaluate, getAlphabet, getLinkingFunction, getTerminals, isOperator, isTerminal, useOn |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScientificGrammar(List<Character> terminals,
Character linkingFunction)
terminals - linkingFunction - | Method Detail |
|---|
public String decode(Gene gene)
GeneGrammar
decode in class GeneGrammar<Double>public int getMaximumArity()
GeneGrammar
getMaximumArity in class GeneGrammar<Double>public List<Character> getOperators()
GeneGrammar
getOperators in class GeneGrammar<Double>
protected GEPRootNode<Double> parse(String sequence)
throws AmibaException
GeneGrammar
parse in class GeneGrammar<Double>AmibaExceptionprotected Double link(List<Double> geneValues)
GeneGrammar
link in class GeneGrammar<Double>
protected double percentError(Double calculated,
Double expected)
GeneGrammar
percentError in class GeneGrammar<Double>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||