new SeriesClassification()
Creates a series classification object using the constructor from emscripten
Properties:
Name | Type | Description |
---|---|---|
Module.SeriesClassificationCpp |
function | constructor from emscripten |
- Source:
Methods
addSeries(newSeries) → {Number}
Adds a series to the array examples
Parameters:
Name | Type | Description |
---|---|---|
newSeries |
Object | An array of arrays |
- Source:
Returns:
- index of the example series that best matches the input
- Type
- Number
getCosts(inputSeriesopt) → {Array}
Returns an array of costs to match the input series to each example series. A lower cost is a closer match
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
inputSeries |
Array |
<optional> |
An array of arrays to be evaluated. (Optional) |
- Source:
Returns:
- Type
- Array
process(inputSeries) → {Number}
Deprecated! Use run()
Parameters:
Name | Type | Description |
---|---|---|
inputSeries |
- Source:
Returns:
- Type
- Number
reset() → {Boolean}
Returns the model set to its initial configuration.
- Source:
Returns:
true indicates successful initialization
- Type
- Boolean
run(inputSeries) → {Number}
Evaluates an input series and returns the index of the closet example
Parameters:
Name | Type | Description |
---|---|---|
inputSeries |
Object | an array of arrays |
- Source:
Returns:
The index of the closest matching series
- Type
- Number
train(newSeriesSet) → {Boolean}
Resets the model, and adds a set of series to be evaluated
Parameters:
Name | Type | Description |
---|---|---|
newSeriesSet |
Object | a set of arrays of arrays |
- Source:
Returns:
True indicates successful training.
- Type
- Boolean