Packages

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
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Samples
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. abstract type P
    Attributes
    protected

Abstract Value Members

  1. abstract val data: TreeMap[Instant, Eval[P]]
    Attributes
    protected
  2. abstract val k: (Instant, P) => Eval[A]
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ++(other: Samples[A]): Samples[A]

    Concatenate another Samples using Map semantics (i.e., in case of conflct the Samples on the RHS wins).

  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def bracket(i: Instant): Bracket[A]

    Split the samples at i, yielding a Bracket containing the matching sample, if any, and the samples immediately before and after i, if any.

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def get(i: Instant): Option[Eval[A]]

    The value at i, if any.

  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. def interval: Option[Bounded[Instant]]

    The Bounded[Instant] covered by the samples.

  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def iterator: Iterator[(Instant, A)]

    Iterator for samples, which are computed dynamically while the iterator is traversed.

  16. def lookup(i: Instant): Lookup[A]

    Split the samples at i, yielding a Lookup containing the matching sample, if any, and all samples before and after i.

  17. def map[B](f: (A) => B): Samples[B]

    Construct a new Samples with samples of type B.

    Construct a new Samples with samples of type B. f is evaluated lazily.

  18. def mapEval[B](f: (A) => Eval[B]): Samples[B]

    Construct a new Samples with samples of type B.

  19. def mapEvalWithKeys[B](f: (Instant, A) => Eval[B]): Samples[B]

    Construct a new Samples with samples of type B, allowing inspection of the associated key.

  20. def mapWithKeys[B](f: (Instant, A) => B): Samples[B]

    Construct a new Samples with samples of type B, allowing inspection of the associated key.

    Construct a new Samples with samples of type B, allowing inspection of the associated key. f is evaluated lazily.

  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. 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).

  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. def valueAt[R](i: Instant)(implicit rounder: SampleRounder[R, A]): Option[A]

    Compute the value at i, using round strategy R.

  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped