Class VelocityTerm

    • Field Detail

      • term

        protected final Term term
      • random

        protected final Random random
      • W

        protected final Var W
      • C1

        protected final Var C1
      • C2

        protected final Var C2
      • r1

        protected final Var r1
      • r2

        protected final Var r2
    • Constructor Detail

      • VelocityTerm

        public VelocityTerm​(Rand random)
        Constructs a VelocityTerm.
        Parameters:
        random - the random number generator
    • Method Detail

      • calculate

        public double calculate​(double... values)
        Description copied from interface: Term
        Calculates the result of this Term.
        Specified by:
        calculate in interface Term
        Parameters:
        values - the values
        Returns:
        the result
      • randomize

        public void randomize()
        Randomizes the constants of the term.