Constructor
new DataSet(width, height, data)
Creates an instance of DataSet. Checks data is right size, throws an error if not.
Parameters:
Name | Type | Description |
---|---|---|
width | number | The integer width of the array |
height | number | The integer height of the array |
data | Array | The array of numbers of length width * height |
- Source
Methods
(static) emptyDataSet(width, height, Type) → {DataSet}
Factory method returning an empty dataset of given width, height, dataType
Parameters:
Name | Type | Description |
---|---|---|
width | number | The integer width of the array |
height | number | The integer height of the array |
Type | Object | Array (default) or one of the typed array types |
- Source
Returns:
The resulting DataSet with no values assigned
- Type:
- DataSet