IntegerFrequency

constructor(data: IntArray? = null, name: String? = null, intRange: IntRange = Int.MIN_VALUE..Int.MAX_VALUE)

This class tabulates the frequency associated with the integers presented to it via the collect() method Every value presented is interpreted as an integer For every value presented a count is maintained. There could be space/time performance issues if the number of different values presented is large. Use intRange to limit the values within the specified range that can be observed. Values lower than the lower limit are counted as underflow and values greater than the upper limit are counted as overflow.

Parameters

name

a name for the instance

data

an array of data to tabulate


constructor(data: IntArray? = null, name: String? = null, lowerLimit: Int = Int.MIN_VALUE, upperLimit: Int = Int.MAX_VALUE)

Parameters

lowerLimit

the defined lower limit of the integers, values less than this are not tabulated

upperLimit

the defined upper limit of the integers, values less than this are not tabulated

name

a name for the instance

data

an array of data to tabulate