ParametricInterval class

A numerical interval defined by the parametric start point function startFunc and the end point endFunc.

Inheritance

Constructors

ParametricInterval(ParametricPoint startFunc, ParametricPoint endFunc, {InverseCdf? inverseCdf, String name = ''})
Constructs a parametric interval defined by the parametric start point function startFunc and the end point function endFunc.
ParametricInterval.of(ParametricInterval interval)
Constructs a copy of interval.

Properties

dx → Lazy<num>
Step size between discrete levels.
latefinalinherited
end num
The end of the numerical interval start...end.
no setteroverride
endFunc ParametricPoint
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.
no setterinherited
start num
The start of the numerical interval start...end.
no setteroverride
startFunc ParametricPoint
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.
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.
override

Operators

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