Numbers
A profile of piece-wise constant numbers.
Unlike Real, this is not able to vary linearly. Instead, it can contain either a homogeneous (and strictly-typed) collection of any numeric type (i.e. Numbers<Integer>
(Java) or Numbers<Int>
(Kotlin)), or a heterogeneous collection of all numeric types (i.e. Numbers<Number>
).
Unfortunately Kotlin/Java is not smart enough to keep the type information during binary operations. So the sum of two Numbers<Double>
objects will become Numbers<Number>
, although no precision will be lost.
See also
Constructors
Functions
(DOC) Caches the timeline for all available time.
Caches the result of collecting this timeline, to be reused for future collect requests if possible.
(DOC) Uses a NullBinaryOperation as a predicate to highlight edges between segments.
(DOC) Removes objects whose duration is outside a given valid interval.
(DOC) Removes objects whose duration is shorter than a given duration.
(DOC) Removes objects whose duration is longer than a given duration.
(DOC) Performs a local binary operation that produces profiles, and flattens it into a profile of the same type as this.
(DOC) Performs a local binary operation that produces profiles, and flattens it, with special treatment of gaps.
(DOC) A simpler version of flatMap2Values for operations that don't change the timeline type.
(DOC) Performs a local binary operation that produces profiles, and flattens it.
(DOC) A simpler version of flatMapValues for operations that don't change the timeline type.
(DOC) Maps segments into a collection of nested timelines and flattens them into their original intervals.
Returns a Booleans that is true when this is greater than or equal to a constant number.
(DOC) Highlights intervals where the value is equal to a specific value.
Returns a Booleans that is true when this is less than or equal to a constant number.
(DOC) Performs a local binary operation between two profiles where the result is the same type as this profile.
(DOC) Performs a local binary operation between two profiles, with special treatment of gaps.
(DOC) A simplified version of map2Values for operations that don't change the timeline type.
(DOC) Performs a local binary operation between two segment-valued timelines.
(DOC) Locally transforms the values of a profile without changing the intervals or profile type.
(DOC) Locally transforms the values of a profile without changing the intervals.
(DOC) UNSAFE! Maps each object to a nested timeline and flattens all the timelines into one.
(DOC) UNSAFE! Maps each timeline object to another object, of potentially a different type, at potentially a different time.
Performs a generalized binary operation between this and another timeline.
(DOC) UNSAFE! Maps the interval of each object, leaving the rest of the object unchanged.
(DOC) UNSAFE! A simpler version of unsafeOperate for operations that don't change the timeline type.
(DOC) UNSAFE! The basic, most general operation method. All operations eventually delegate here.