class TSEntryFitter[T] extends AnyRef
This encapsulates the logic of fitting TSEntries one after another. It is used in TimeSeriesBuilders to take care of trimming, compressing and checking the sanity of consecutive entries.
- Alphabetic
- By Inheritance
- TSEntryFitter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new TSEntryFitter(compress: Boolean)
- compress
Whether consecutive entries of equal value should be compressed into one or not.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAndFitLast(elem: TSEntry[T]): Option[TSEntry[T]]
Adds the next timeseries entry.
Adds the next timeseries entry. The previously added entry will be trimmed if it overlaps with the next entry. If the next entry has the same value as the previous one, they are compressed into one entry and nothing (None) is returend. Otherwise, the previous entry is trimmed and returned (Some(prev)).
- elem
the next TSEntry of the series
- returns
the trimmed and compressed previous entry or None
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clear(): Unit
Clears/resets all state of the fitter.
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isDomainContinuous: Boolean
- returns
whether all added entries so far were either contiguous or overlapping. I.e. there were no holes in the domain of definition of the entries seen so far.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lastEntry: Option[TSEntry[T]]
- returns
the last entry that was added to the fitter. This entry can still change if more entries are added (it might be compressed/trimmed).
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()