DataMap

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

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
Link copied to clipboard
Link copied to clipboard
open override val keys: MutableSet<String>
Link copied to clipboard
open override val size: Int
Link copied to clipboard

Functions

Link copied to clipboard

Computes the box plot summaries for the data within the map

Link copied to clipboard
open override fun clear()
Link copied to clipboard
open fun compute(p0: String, p1: BiFunction<in String, in DoubleArray?, out DoubleArray?>): DoubleArray?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Computes the confidence intervals for the data in the map

Link copied to clipboard
open override fun containsKey(key: String): Boolean
Link copied to clipboard
open override fun containsValue(value: DoubleArray): Boolean
Link copied to clipboard
open fun forEach(p0: BiConsumer<in String, in DoubleArray>)
Link copied to clipboard
open operator override fun get(key: String): DoubleArray?
Link copied to clipboard
open fun getOrDefault(key: String, defaultValue: DoubleArray): DoubleArray
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard

The map of arrays is considered rectangular if all arrays in the map have the same number of elements (same size).

Link copied to clipboard

The size of the array that has maximum size. If empty the array size is 0.

Link copied to clipboard
Link copied to clipboard

The size of the array that has the minimum size. If empty the array size is 0.

Link copied to clipboard
open override fun put(key: String, value: DoubleArray): DoubleArray?
Link copied to clipboard
open override fun putAll(from: Map<out String, DoubleArray>)
Link copied to clipboard
Link copied to clipboard
open override fun remove(key: String): DoubleArray?
open fun remove(key: String, value: DoubleArray): Boolean
Link copied to clipboard
open fun replace(p0: String, p1: DoubleArray): DoubleArray?
open fun replace(p0: String, p1: DoubleArray, p2: DoubleArray): Boolean
Link copied to clipboard
Link copied to clipboard

Computes the statistical summaries for the data within the map

Link copied to clipboard

Converts the data map to a 2-D array. The values of the map are extracted

Link copied to clipboard
fun Map<String, DoubleArray>.toDataFrame(): AnyFrame

Converts the data stored in each array to columns within a DataFrame, with the column names as the key from the map and the columns holding the data. Each array must have the same size.

Link copied to clipboard
Link copied to clipboard

Converts the inner DoubleArray to List

Link copied to clipboard
fun Map<String, DoubleArray>.toObservationData(tableName: String = "tblObservations", context: String? = null, subject: String? = null): List<ObservationDataDb>

Converts the data map to a long format view of the observations.