Class KagiModel


  • public class KagiModel
    extends Object
    Maintains the states of a KAGI model.
    • Constructor Detail

      • KagiModel

        public KagiModel​(double H)
    • Method Detail

      • update

        public boolean update​(double z)
        Parameters:
        z -
        Returns:
        true if the state changes sign
      • H

        public double H()
      • state

        public int state()
        UP trend is -ve; DOWN trend is +ve.
        Returns:
        -1 if a min is found (UP trend); +1 is a max is found (DOWN trend)
      • minZ

        public double minZ()
      • maxZ

        public double maxZ()