Companion

object Companion

Properties

Link copied to clipboard
const val MAX_BATCH_MULTIPLE: Int = 2

the default multiplier that determines the maximum number of batches

Link copied to clipboard
const val MIN_NUM_BATCHES: Int = 20

the default minimum number of batches

Link copied to clipboard
const val MIN_NUM_OBS_PER_BATCH: Int = 16

the default minimum number of observations per batch

Functions

Link copied to clipboard
fun batchMeans(matrix: Array<DoubleArray>, numBatches: Int): Array<DoubleArray>

Each array in the matrix is batched into the supplied number of batches

fun batchMeans(data: DoubleArray, numBatches: Int): DoubleArray

Takes an array of length, n, and computes k batch means where each batch mean is the average of batchSize (b) elements such that b = Math.FloorDiv(n, k). If the number of batches, k, does not divide evenly into n, then n - (k*b) observations are not processed at the end of the array.

fun batchMeans(data: Map<String, DoubleArray>, numBatches: Int): Map<String, DoubleArray>

Each array in the data map is batched into the supplied number of batches. The map must be rectangular. That is all arrays are of the same size

Link copied to clipboard