Package-level declarations

Types

Link copied to clipboard
abstract class AbstractBiMap<K : Any, V : Any> : MutableBiMap<K, V>
Link copied to clipboard
abstract class AbstractTable<R : Any, C : Any, V : Any> : MutableTable<R, C, V>

Abstract implementation of the MutableTable interface.

Link copied to clipboard
interface BiMap<K : Any, V : Any> : Map<K, V>
Link copied to clipboard
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.

Link copied to clipboard
class HashBasedTable<R : Any, C : Any, V : Any> : AbstractTable<R, C, V>

Implementation of Table using hash tables.

Link copied to clipboard
class HashBiMap<K : Any, V : Any>(capacity: Int = 16) : AbstractBiMap<K, V>
Link copied to clipboard
object KSLMaps
Link copied to clipboard
interface MutableBiMap<K : Any, V : Any> : BiMap<K, V> , MutableMap<K, V>
Link copied to clipboard
interface MutableTable<R : Any, C : Any, V : Any> : Table<R, C, V>

A mutable table that maps a pair of keys (row key, column key) to a value.

Link copied to clipboard
data class ObservationDataDb(var id: Int = obsCounter++, var context: String? = null, var subject: String? = null, var response: String = "", var obsNum: Int = -1, var obsValue: Double = Double.NaN) : DbTableData
Link copied to clipboard
object Sets
Link copied to clipboard
interface Table<R : Any, C : Any, V : Any>

A table that maps a pair of keys (row key, column key) to a value. Each unique pair of non-null keys maps to a single non-null value.

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Converts the observation data to a data frame

Link copied to clipboard

Computes the box plot summaries for the data within the map

Link copied to clipboard

Computes the confidence intervals for the data in the map

Link copied to clipboard
fun <K> MutableMap<K, Int>.decrement(key: K): Int

Decrements the element by 1. If the element does not exist in the map, it is added to the map with a value of 1

Link copied to clipboard
fun <K> MutableMap<K, Int>.increment(key: K): Int

Increments the element by 1. If the element does not exist in the map, it is added to the map with a value of 1

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
fun main()

This file provides examples of how to use the Table implementation. It can be run as a standalone program to verify the functionality.

Link copied to clipboard

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

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
infix fun Int.pow(power: Int): Int
infix fun Number.pow(power: Number): Double
Link copied to clipboard
fun <T> Collection<T>.powerset(): Set<Set<T>>
Link copied to clipboard
fun <K, V : Comparable<V>> Map<K, V>.sortMapByValue(): Map<K, V>
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
Link copied to clipboard
fun <T : Any> toMap(obj: T): Map<String, Any?>

Can be used to convert an object of a data class to a map. https://www.baeldung.com/kotlin/data-class-to-map

Link copied to clipboard

Converts the inner DoubleArray to List

Can be used to convert an object of a data class to a map. https://www.baeldung.com/kotlin/data-class-to-map

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.