Class IntFire


  • public class IntFire
    extends Fire<java.lang.Integer>
    • Constructor Summary

      Constructors 
      Constructor Description
      IntFire​(int learning_rate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer predict​(java.lang.Integer value)
      predict the incoming integer using the last value
      void reset()  
      void train​(java.lang.Integer pre, java.lang.Integer val, java.lang.Integer err)
      train the learning machine with the last prediction
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IntFire

        public IntFire​(int learning_rate)
    • Method Detail

      • reset

        public void reset()
      • predict

        public java.lang.Integer predict​(java.lang.Integer value)
        Description copied from class: Fire
        predict the incoming integer using the last value
        Specified by:
        predict in class Fire<java.lang.Integer>
        Parameters:
        value - the last value
        Returns:
        the predicted value
      • train

        public void train​(java.lang.Integer pre,
                          java.lang.Integer val,
                          java.lang.Integer err)
        Description copied from class: Fire
        train the learning machine with the last prediction
        Specified by:
        train in class Fire<java.lang.Integer>
        Parameters:
        pre - last value to be predicted
        val - current value to be predicted
        err - the predictive error of current value