Class Estimation.FactorEstimation

    • Constructor Detail

      • FactorEstimation

        FactorEstimation()
        Constructor.
    • Method Detail

      • estimate

        public NeighborTriplet estimate​(LaneBasedGTU perceivingGtu,
                                        LaneBasedGTU perceivedGtu,
                                        Length distance,
                                        boolean downstream,
                                        Time when)
                                 throws org.opentrafficsim.base.parameters.ParameterException
        Estimate headway, speed and acceleration.
        Specified by:
        estimate in interface Estimation
        Parameters:
        perceivingGtu - LaneBasedGTU; perceiving GTU
        perceivedGtu - LaneBasedGTU; perceived GTU
        distance - Length; actual headway at 'now' (i.e. not at 'when' if there is a reaction time)
        downstream - boolean; downstream (or upstream) neighbor
        when - Time; moment of perception, reaction time included
        Returns:
        NeighborTriplet; perceived headway, speed and acceleration
        Throws:
        org.opentrafficsim.base.parameters.ParameterException - on invalid parameter value or if parameter is not available
      • overEstimation

        abstract boolean overEstimation()
        Returns whether this is over-estimation.
        Returns:
        boolean; whether this is over-estimation