Interval class abstract
Abstract class representing a numerical interval.
- Implementers
Constructors
- Interval({InverseCdf? inverseCdf, String name = ''})
Properties
-
dx
→ Lazy<
num> -
Step size between discrete levels.
latefinal
- end → num
-
The end of the numerical interval start...end.
no setter
-
gridPoints
→ List<
num> -
Returns the grid points associated with the discrete interval.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- inverseCdf → InverseCdf?
-
Inverse cummulative distribution function.
final
- isContinuous → bool
-
Returns
true
if the interval is continuous.no setter - isDiscrete → bool
-
Returns
true
if the interval is discrete (has at least 2 gridpoints).no setter - isUpToDate → bool
-
Returns
true
is the cached random numbers are up-to-date.no setter - levels ↔ int
-
Returns the levels of a discrete interval.
getter/setter pair
- name → String
-
Returns the name of interval.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → num
-
Returns the size of the interval.
no setter
- start → num
-
The start of the numerical interval start...end.
no setter
Methods
-
contains(
num position) → bool -
Returns true if position is safisfying
(start <= position && position <= end)
. -
next(
) → num -
Returns the next random number sampled from
the interval
(start, end)
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
overlaps(
num left, num right) → bool -
Returns true if the interval defined by the points
left
andright
overlapsthis
. -
perturb(
num position, num deltaPosition) → num -
Returns the next random number sampled from the interval
obtained by intersecting:
(start, end)
and(position - deltaPosition, position + deltaPosition)
. -
toString(
) → String -
A string representation of this object.
override
-
updateCache(
) → void -
Marks the internal cache as stale. After calling this function
the methods next and perturb will return a new random number sampled
from the interval
start...end
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited