DataMap

class DataMap(val arraySize: Int, map: MutableMap<String, DoubleArray> = mutableMapOf()) : MutableMap<String, DoubleArray> (source)

A DataMap represents named arrays that have the same size. By construction, the map must have arrays of the same length.

Parameters

arraySize

the size of the arrays to be added to the map. The array must have at least one element.

map

an optional map. If empty, then added arrays must have length arraySize. If not empty, then its arrays must have size arraySize.

Constructors

Link copied to clipboard
constructor(arraySize: Int, map: MutableMap<String, DoubleArray> = mutableMapOf())

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun put(key: String, value: DoubleArray): DoubleArray?