Stat

Configuration

Configuration is given as a JSON file. We show each field below:

window_size

Number of values to store. (Integer)

  • Range: 1 <= window_size
Example:
{
  "window_size": 128
}

Data Structures

None.

Methods

service stat
bool push(0: string key, 1: double value)

Adds value val to the attribute key.

double sum(0: string key)

Returns the sum of values in the attribute key.

double stddev(0: string key)

Returns the standard deviation of values in the attribute key.

double max(0: string key)

Returns the maximum value of values in the attribute key.

double min(0: string key)

Returns the minimum value of values in the attribute key.

double entropy(0: string key)

Returns the entropy of values in the attribute key.

double moment(0: string key, 1: int degree, 2: double center)

Returns the degree-th moment about center of values in the attribute key.