StatisticalRun

class StatisticalRun<T>(theStartingIndex: Int, theEndingIndex: Int, theStartingObj: T, theEndingObj: T)

A statistical run is a sequence of objects that are determined equal based on a comparator. A single item is a run of length 1. A set of items that are all the same are considered a single run. The set (0, 1, 1, 1, 0) has 3 runs.

Parameters

the type of object associated with the statistical run

Constructors

Link copied to clipboard
constructor(theStartingIndex: Int, theEndingIndex: Int, theStartingObj: T, theEndingObj: T)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val length: Int
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String