FixedInterval class

A fixed numerical interval defined by the start point start and the end point end.

Inheritance
Implementers

Constructors

FixedInterval(num start, num end, {InverseCdf? inverseCdf, String name = ''})
Returns an instance of FixedInterval.
factory
FixedInterval.of(FixedInterval interval)
Constructs a copy of interval.
factory

Properties

dx → Lazy<num>
Step size between discrete levels.
latefinalinherited
end num
End point of the numerical interval.
final
gridPoints List<num>
Returns the grid points associated with the discrete interval.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
inverseCdf InverseCdf?
Inverse cummulative distribution function.
finalinherited
isContinuous bool
Returns true if the interval is continuous.
no setterinherited
isDiscrete bool
Returns true if the interval is discrete (has at least 2 gridpoints).
no setterinherited
isUpToDate bool
Returns true is the cached random numbers are up-to-date.
no setterinherited
levels int
Returns the levels of a discrete interval.
getter/setter pairinherited
name String
Returns the name of interval.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size num
Returns the size of the interval.
latefinal
start num
Start point of the numerical interval.
final

Methods

contains(num position) bool
Returns true if position is safisfying (start <= position && position <= end).
inherited
next() num
Returns the next random number sampled from the interval (start, end).
inherited
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 and right overlaps this.
inherited
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).
inherited
toString() String
A string representation of this object.
inherited
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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited