spark.timeseries

IdleEnergyArrayDetector

class IdleEnergyArrayDetector extends RunDetector[Double]

Detect periods of activity from a data file of scala.Arrays of scala.Doubles, where each scala.Array consists of time, current, and voltage values.

Detection of activity is based on the average power (in mW) being above a given threshold idle_thresh. The average is calculated over a period of windowLength Arrays.

Linear Supertypes
RunDetector[Double], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. IdleEnergyArrayDetector
  2. RunDetector
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IdleEnergyArrayDetector (idle_thresh: Double, windowLength: Int)

    idle_thresh

    The power threshold above which values are considered activity.

    windowLength

    The number of Arrays that averages are calculated over, and compared to idle_thresh.

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  9. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  12. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  13. def inRun (): Boolean

    Returns whether we are in a run.

    Returns whether we are in a run.

    returns

    true when sum / q.size >= idle_thresh and q.size >= windowLength.

    Definition Classes
    IdleEnergyArrayDetectorRunDetector
  14. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  15. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  16. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  17. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  18. def prepend (): Queue[Array[Double]]

    Returns the internal queue.

    Returns the internal queue.

    returns

    a Queue of data items that are part of the beginning of the current run.

    Definition Classes
    IdleEnergyArrayDetectorRunDetector
  19. var q : Queue[Array[Double]]

  20. def ready (): Boolean

    Returns true when values from spark.timeseries.TimeSeriesSpark.IdleArrayDetector.inRun() can be trusted.

    Returns true when values from spark.timeseries.TimeSeriesSpark.IdleArrayDetector.inRun() can be trusted.

    returns

    true when readyDelay == 0 and q.size >= windowLength

    Definition Classes
    IdleEnergyArrayDetectorRunDetector
  21. var readyDelay : Int

  22. def reset (): Unit

    Resets the internal queue and sum, along with readyDelay.

    Resets the internal queue and sum, along with readyDelay.

    Definition Classes
    IdleEnergyArrayDetectorRunDetector
  23. def splitChanged (): Unit

    Call to inform the detector of proceeding to a new split.

    Call to inform the detector of proceeding to a new split.

    Sets readyDelay to windowLength so that windowLength samples are put into the queue before ready() returns true again. This is to ensure that a run in the beginning of a next split will be detected.

    Definition Classes
    IdleEnergyArrayDetectorRunDetector
  24. var sum : Double

  25. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  26. def toString (): String

    Definition Classes
    AnyRef → Any
  27. def update (sample: Array[Double]): Unit

    Appends sample to the internal queue and updates sum.

    Appends sample to the internal queue and updates sum.

    Also dequeues the first element if the queue if the queue is full, and decreases readyDelay by one if it is greater than zero.

    Definition Classes
    IdleEnergyArrayDetectorRunDetector
  28. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  29. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  30. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from RunDetector[Double]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any