Class TimeBoundedJump
Defined in File time_bounded_jump.hpp
Inheritance Relationships
Base Type
public otyca::ScheduledJump
(Class ScheduledJump)
Derived Type
public otyca::TimeBoundedBimodalGaussian
(Class TimeBoundedBimodalGaussian)
Class Documentation
-
class TimeBoundedJump : public otyca::ScheduledJump
Represents a jump that can occur within a bounded time interval.
This class models a scheduled jump event where the jump is expected to occur within a time window defined by a lower bound (
tau_lo
) and an upper bound (tau_hi
). The probability of the jump occurring by timet
increases linearly betweentau_lo
andtau_hi
.Subclassed by otyca::TimeBoundedBimodalGaussian
Public Functions
-
inline TimeBoundedJump()
Default constructor initializing bounds to 0.
-
inline TimeBoundedJump(double tau_lo, double tau_hi)
Constructor with specified lower and upper bounds for jump time.
Note
It is assumed that
tau_hi > tau_lo
, but this is not enforced.- Parameters:
tau_lo – Lower bound of the jump time.
tau_hi – Upper bound of the jump time.
-
inline virtual double effective_time() const override
Returns the start of the jump interval.
- Returns:
The lower bound (
tau_lo
) of the jump time.
-
inline virtual double effective_time_end() const override
Returns the end of the jump interval.
- Returns:
The upper bound (
tau_hi
) of the jump time.
-
inline double get_tau_lo() const
Gets the lower bound of the jump interval.
- Returns:
The value of
_tau_lo
.
-
inline void set_tau_lo(double tau)
Sets the lower bound of the jump interval.
- Parameters:
tau – New value for
_tau_lo
.
-
inline double get_tau_hi() const
Gets the upper bound of the jump interval.
- Returns:
The value of
_tau_hi
.
-
inline void set_tau_hi(double tau)
Sets the upper bound of the jump interval.
- Parameters:
tau – New value for
_tau_hi
.
-
inline virtual bool before_or_at(double t) const
Checks if the jump interval ends before or at the given time.
- Parameters:
t – The time to compare against.
- Returns:
True if
tau_hi <= t
, false otherwise.
-
inline virtual bool after(double t) const
Checks if the jump interval starts after the given time.
- Parameters:
t – The time to compare against.
- Returns:
True if
tau_lo > t
, false otherwise.
-
inline double jump_probability(double t) const
Computes the probability that the jump has occurred by time
t
.The probability increases linearly between
tau_lo
andtau_hi
.- Parameters:
t – The time at which to evaluate the jump probability.
- Returns:
The jump probability, or NaN if
tau_hi <= tau_lo
.
-
inline TimeBoundedJump()