StarStats extension
A class that takes in a set of data as its constructor and can perform various statistical utilities with it.
Properties
- cardinality → num
-
Returns the number of unique numbers in given set (a.k.a. cardinality).
no setter
- mean → num
-
Returns the mean of this list.
no setter
- median → num
-
Returns the median of this list.
no setter
- mode → num
-
Returns the mode of this list.
no setter
- popStdDev → num
-
Returns the standard deviation of given set, assuming this list is a population.
no setter
- popVariance → num
-
Returns the variance of this list, assuming this list is a population.
no setter
- stdDev → num
-
Returns the standard deviation of given set, assuming this list is a sample.
no setter
- variance → num
-
Returns the variance of this list, assuming this list is a sample.
no setter
Methods
-
bottomElements(
int k) → List< num> - Returns the k least elements of given set.
-
topElements(
int k) → List< num> - Returns the k greatest elements of given set.