org.encog.ml.prg.extension
public interface ProgramExtensionTemplate extends Serializable
Modifier and Type | Field and Description |
---|---|
static int |
NO_PREC
Defines a very low precidence.
|
Modifier and Type | Method and Description |
---|---|
ExpressionValue |
evaluate(ProgramNode actual)
Evaluate the specified actual program node, using this opcode template.
|
int |
getChildNodeCount() |
int |
getDataSize() |
String |
getName() |
NodeType |
getNodeType() |
List<ParamTemplate> |
getParams() |
int |
getPrecedence() |
ParamTemplate |
getReturnValue() |
boolean |
isPossibleReturnType(EncogProgramContext context,
ValueType rtn)
Determines if the specified return type is a possible return type.
|
boolean |
isVariable() |
void |
randomize(Random rnd,
List<ValueType> desiredType,
ProgramNode actual,
double minValue,
double maxValue)
Randomize this actual tree node.
|
static final int NO_PREC
ExpressionValue evaluate(ProgramNode actual)
actual
- The tree node in the actual program.int getChildNodeCount()
int getDataSize()
String getName()
NodeType getNodeType()
List<ParamTemplate> getParams()
int getPrecedence()
ParamTemplate getReturnValue()
boolean isPossibleReturnType(EncogProgramContext context, ValueType rtn)
context
- The program context.rtn
- The potential return type to check.boolean isVariable()
void randomize(Random rnd, List<ValueType> desiredType, ProgramNode actual, double minValue, double maxValue)
rnd
- Random number generator.desiredType
- The desired type of the randomization, if allowed.actual
- The actual program node to randomize.minValue
- The minimum value to use for randomization.maxValue
- The maximum value to use for randomization.Copyright © 2014. All Rights Reserved.