scalation.modeling.SumSqQueue
The SumQueue
class retains the last q elements as well as the running total in sum and number of elements in size_, making it efficient to compute moving averages.
Value parameters
q
the number of elements to retain in the queue
Attributes
Graph
Reset zoom Hide graph Show graph
Supertypes
class Object
trait Matchable
class Any
Members list
Enqueue the next element y in the queue, removing the first element when the queue is full.
Enqueue the next element y in the queue, removing the first element when the queue is full.
Value parameters
y
the next element to place in the queue
Attributes
Return the mean of the elements in the queue.
Return the mean of the elements in the queue.
Attributes
Return the size (number of elements) in the queue.
Return the size (number of elements) in the queue.
Attributes
Return the variance of the elements in the queue.
Return the variance of the elements in the queue.
Attributes