Constructor
new Codec(argmap)
Creates a codec by consuming an iterable of data points.
Parameters:
Name | Type | Description |
---|---|---|
argmap |
An object that contains the properties |
Methods
decode(encodedValues)
Decodes a data point.
Parameters:
Name | Type | Description |
---|---|---|
encodedValues |
An encoded data point as an array of numbers between 0.0 and 1.0. |
Returns:
The decoded data point as an object of string properties.
encode(datapoint)
Encodes a data point.
Parameters:
Name | Type | Description |
---|---|---|
datapoint |
A data point as an object of string properties. |
Returns:
The encoded data point as an array of numbers between 0.0 and 1.0.
json()
The JSON representation of the codec.
Returns:
The JSON representation of the codec.