Class MRModelRanged

    • Constructor Detail

      • MRModelRanged

        public MRModelRanged​(double rangeSize,
                             double initialState)
      • MRModelRanged

        public MRModelRanged​(double rangeSize)
    • Method Detail

      • update

        public void update​(LocalDateTime time,
                           double px)
        Description copied from interface: MRModel
        Updates the model with the current price.
        Specified by:
        update in interface MRModel
        Parameters:
        time - the update time
        px - the current price
      • position

        public double position()
        Description copied from interface: MRModel
        Gets the current target position computed by this model.
        Specified by:
        position in interface MRModel
        Returns:
        the target position computed by the model