Class LongFire


  • public class LongFire
    extends Fire<Long>
    • Constructor Detail

      • LongFire

        public LongFire​(int learning_rate)
    • Method Detail

      • reset

        public void reset()
      • predict

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

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