org.vizzini.ai.geneticprogramming.function
Class GreaterThanDouble
java.lang.Object
org.vizzini.util.tree.AbstractTreeNode
org.vizzini.ai.geneticprogramming.AbstractNode
org.vizzini.ai.geneticprogramming.function.AbstractFunction
org.vizzini.ai.geneticprogramming.function.AbstractComparisonFunction
org.vizzini.ai.geneticprogramming.function.GreaterThan
org.vizzini.ai.geneticprogramming.function.GreaterThanDouble
- All Implemented Interfaces:
- Cloneable, IFunction, INode, ITreeNode, IVisitable
public class GreaterThanDouble
- extends GreaterThan
Provides a greater than function for genetic programming. This function is a
numerically valued logical function whose range consists of +1.0 for TRUE and
-1.0 for FALSE. Instances of this class are suitable for combining in
mathematical expressions.
- Since:
- v0.3
- Version:
- v0.3
- Author:
- Jeffrey M. Thompson
Methods inherited from class org.vizzini.util.tree.AbstractTreeNode |
acceptBreadthFirst, acceptDepthFirst, breadthFirstIterator, children, clone, depthFirstIterator, dotDesc, fillCollectionBreadthFirst, fillCollectionChildren, fillCollectionDepthFirst, getBreadthFirstList, getChildAt, getChildCount, getChildren, getDepth, getDepthFirstList, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLevel, getNextSibling, getNodeCount, getParent, getPath, getRoot, getTreeNodeCollectionClass, getUserObject, insert, isChildAllowed, isLeaf, isRoot, remove, remove, removeAllChildren, removeFromParent, setChildAllowed, setChildren, setParent, setTreeNodeCollectionClass, setUserObject |
Methods inherited from interface org.vizzini.util.tree.ITreeNode |
breadthFirstIterator, children, clone, depthFirstIterator, getBreadthFirstList, getChildAt, getChildCount, getDepth, getDepthFirstList, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLevel, getNextSibling, getNodeCount, getParent, getPath, getRoot, getUserObject, insert, isChildAllowed, isLeaf, isRoot, remove, remove, removeAllChildren, removeFromParent, setChildAllowed, setParent, setUserObject |
GreaterThanDouble
public GreaterThanDouble()
evaluate
public Object evaluate(IContext context)
- Evaluate this function. Returns +1.0 for TRUE and -1.0 for FALSE.
- Specified by:
evaluate
in interface INode
- Overrides:
evaluate
in class GreaterThan
- Parameters:
context
- Context in which to evaluate.- Since:
- v0.3
getReturnType
public Class getReturnType()
- Return the type of the return value.
- Specified by:
getReturnType
in interface INode
- Overrides:
getReturnType
in class AbstractComparisonFunction
- Since:
- v0.3
Copyright © 2007 Vizzini.org. All Rights Reserved.
|
2007.12.25.03.00.02 |