Series
Direct Subclass:
Base class for a series of events.
A series is compact representation for a list of events, with some additional meta data on top of that.
Static Method Summary
Static Public Methods | ||
public static |
equal(series1: *, series2: *): * |
|
public static |
is(series1: *, series2: *): * |
Constructor Summary
Public Constructor | ||
public |
constructor(arg1: *, arg2: *, arg3: *, arg4: *) A Series is constructed by either: |
Method Summary
Public Methods | ||
public |
Returns the number of rows in the series. |
|
public |
avg(column: *): * |
|
public |
Return the list of columns |
|
public |
Returns the number of rows in the series. |
|
public |
max(column: *): * |
|
public |
mean(column: *): * |
|
public |
medium(column: *): * |
|
public |
meta(key: *): * Return the meta data associated with the Series. |
|
public |
min(column: *): * |
|
public |
Returns the same of the series |
|
public |
Returns the number of rows in the series. |
|
public |
stdev(column: *): * |
|
public |
sum(column: *): * |
|
public |
Returns a JSON representation, the same format as accepted by the |
|
public |
Return a string representation of the Series. |
Static Public Methods
public static equal(series1: *, series2: *): * source
Params:
Name | Type | Attribute | Description |
series1 | * | ||
series2 | * |
Return:
* |
public static is(series1: *, series2: *): * source
Params:
Name | Type | Attribute | Description |
series1 | * | ||
series2 | * |
Return:
* |
Public Constructors
public constructor(arg1: *, arg2: *, arg3: *, arg4: *) source
A Series is constructed by either:
1) passing in another series (copy constructor) 2) passing in three arguments: name - the name of the series columns - an array containing the title of each data column data - an array containing the data of each column Note: data may be either: a) An Immutable.List of Immutable.Map data objects b) An array of objects
Internally a Series is List of Maps. Each item in the list is one data map, and is stored as an Immutable Map, where the keys are the column names and the value is the data for that column at that index.
This enables efficient extraction of Events, since the internal data of the Event can be simply a reference to the Immutable Map in this Series, combined with the time, Timerange or Index.
Params:
Name | Type | Attribute | Description |
arg1 | * | ||
arg2 | * | ||
arg3 | * | ||
arg4 | * |
Public Methods
public at(i: *): number source
Returns the number of rows in the series.
Params:
Name | Type | Attribute | Description |
i | * |
public meta(key: *): * source
Return the meta data associated with the Series. To use, supply the key and the get back the value matching that key.
Params:
Name | Type | Attribute | Description |
key | * |
Return:
* |