trait Samples[A] extends AnyRef
A set of samples, keyed by Instant. Samples are lazy and must be forced by the user, and
mapping operations are also applied lazily.
- Self Type
- Samples[A]
- Source
- Samples.scala
- Alphabetic
- By Inheritance
- Samples
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract type P
- Attributes
- protected
Abstract Value Members
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def ++(other: Samples[A]): Samples[A]
Concatenate another
SamplesusingMapsemantics (i.e., in case of conflct theSampleson the RHS wins). - final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bracket(i: Instant): Bracket[A]
Split the samples at
i, yielding aBracketcontaining the matching sample, if any, and the samples immediately before and afteri, if any. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def get(i: Instant): Option[Eval[A]]
The value at
i, if any. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def interval: Option[Bounded[Instant]]
The
Bounded[Instant]covered by the samples. - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def iterator: Iterator[(Instant, A)]
Iterator for samples, which are computed dynamically while the iterator is traversed.
- def lookup(i: Instant): Lookup[A]
Split the samples at
i, yielding aLookupcontaining the matching sample, if any, and all samples before and afteri. - def map[B](f: (A) => B): Samples[B]
Construct a new
Sampleswith samples of typeB.Construct a new
Sampleswith samples of typeB.fis evaluated lazily. - def mapEval[B](f: (A) => Eval[B]): Samples[B]
Construct a new
Sampleswith samples of typeB. - def mapEvalWithKeys[B](f: (Instant, A) => Eval[B]): Samples[B]
Construct a new
Sampleswith samples of typeB, allowing inspection of the associated key. - def mapWithKeys[B](f: (Instant, A) => B): Samples[B]
Construct a new
Sampleswith samples of typeB, allowing inspection of the associated key.Construct a new
Sampleswith samples of typeB, allowing inspection of the associated key.fis evaluated lazily. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- lazy val toMap: TreeMap[Instant, Eval[A]]
Sample data, as a map.
Sample data, as a map. Accessing this field has an initial cost of duplicating the underlying structure and applying any mapped fuctions to the value cells (which remain unforced).
- def toString(): String
- Definition Classes
- AnyRef → Any
- def valueAt[R](i: Instant)(implicit rounder: SampleRounder[R, A]): Option[A]
Compute the value at
i, using round strategyR. - final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])