Documentation of 'org.encog.ml.prg.extension.BasicTemplate' Java class
BasicTemplate
org.encog.ml.prg.extension

Class BasicTemplate

    • Constructor Detail

      • BasicTemplate

        public BasicTemplate(int thePrecedence,
                             java.lang.String theSignature,
                             NodeType theType,
                             boolean isVariable,
                             int theDataSize)
        Construct a basic template object.
        Parameters:
        thePrecedence - The precedence.
        theSignature - The opcode signature.
        theType - The opcode type.
        isVariable - True, if this opcode is a variable.
        theDataSize - The data size kept for this opcode.
      • BasicTemplate

        public BasicTemplate(java.lang.String theSignature)
        Construct a function based on the provided signature.
        Parameters:
        theSignature - The signature.
    • Method Detail

      • getSignature

        public java.lang.String getSignature()
        Returns:
        the signature
      • isPossibleReturnType

        public boolean isPossibleReturnType(EncogProgramContext context,
                                            ValueType rtn)
        Determines if the specified return type is a possible return type.
        Specified by:
        isPossibleReturnType in interface ProgramExtensionTemplate
        Parameters:
        context - The program context.
        rtn - The potential return type to check.
        Returns:
        True, if the specified type is a possible return type.
      • randomize

        public void randomize(java.util.Random rnd,
                              java.util.List<ValueType> desiredTypes,
                              ProgramNode actual,
                              double minValue,
                              double maxValue)
        Randomize this actual tree node.
        Specified by:
        randomize in interface ProgramExtensionTemplate
        Parameters:
        rnd - Random number generator.
        desiredTypes - 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.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.