IntegerFrequencyIfc

Properties

Link copied to clipboard
abstract val closedRange: ClosedRange<Int>

Returns a closed range over the observed integer values

Link copied to clipboard
abstract val frequencies: IntArray

Returns an array of size numberOfCells containing the frequencies for each value observed. The 0th element is the frequency for the value stored at element 0 of the array returned by the values property

Link copied to clipboard
abstract val lowerLimit: Int

The lower limit that defines values that will not be observed, but counted as underflow.

Link copied to clipboard
abstract val max: Int

The largest integer observed

Link copied to clipboard
abstract val min: Int

The smallest integer observed

Link copied to clipboard
abstract val numberOfValues: Int

Returns the number of cells tabulated This is also the total number of different integers observed

Link copied to clipboard
abstract val overFlowCount: Int

The number of observations that fell past the last bin's upper limit

Link copied to clipboard
abstract val proportions: DoubleArray

Returns an array of size numberOfCells containing the proportion by value. The 0th element is the proportion for the value stored at element 0 of the array returned by the values property, etc.

Link copied to clipboard
abstract val range: Int

The range of integer values observed (max - min)

Link copied to clipboard
abstract val totalCount: Double

The total count associated with the values The total number of values observed

Link copied to clipboard
abstract val underFlowCount: Int

The number of observations that fell below the first bin's lower limit

Link copied to clipboard
abstract val upperLimit: Int

The upper limit that defines values that will not be observed, but counted as overflow.

Link copied to clipboard

Returns Map holding the values and cumulative proportions as arrays with keys "values" and "cumulativeProportions"

Link copied to clipboard

Returns Map holding the values and frequencies as arrays with keys "values" and "frequencies"

Link copied to clipboard

Returns Map holding the values and proportions as arrays with keys "values" and "proportions"

Link copied to clipboard
abstract val values: IntArray

Returns an array of size numberOfCells containing the observed values increasing by value. The 0th element of the array contains the smallest value observed, 1st element the next bigger value, etc.

Functions

Link copied to clipboard
abstract fun assignCellLabels(labels: Map<Int, String>)

Assigns a string label to each observed integer value. If the integer values in the labels map is not one of the observed values then no assignment occurs and the default label is used. This should be done after collection because cells are created during the collection process.

Link copied to clipboard

Returns a copy of the cells in a list ordered by the value of each cell, 0th element is cell with the smallest value (integer) observed, etc

Link copied to clipboard

Returns a sorted list containing the cells

Link copied to clipboard

Returns a copy of the cells in a list ordered by the count of each cell, 0th element is cell with the largest count, etc

Link copied to clipboard
Link copied to clipboard
abstract fun cumulativeFrequency(i: Int): Double

Returns the cumulative frequency up to an including i

Link copied to clipboard
abstract fun cumulativeProportion(i: Int): Double

Returns the cumulative proportion up to an including i

Link copied to clipboard
abstract fun freqTabulation(): String

Text output for the frequency without the summary statistics.

Link copied to clipboard
abstract fun frequencies(x: IntArray): DoubleArray

Interprets the elements of x[] as values and returns an array representing the frequency for each value

Link copied to clipboard
abstract fun frequency(x: Int): Double

Returns the current frequency for the provided integer

Link copied to clipboard

Returns the data associated with the tabulation.

Link copied to clipboard
abstract fun frequencyPlot(proportions: Boolean = false): IntegerFrequencyPlot

Creates a plot for the integer frequencies. The parameter, proportions indicates whether proportions (true) or frequencies (false) will be shown on the plot. The default is false.

Link copied to clipboard
abstract fun proportion(x: Int): Double

Gets the proportion of the observations that are equal to the supplied integer

Link copied to clipboard

Converts the integer frequency data into a dataframe representation