DHUListIntStats extension

Extension on Iterable<int> providing statistical operations.

This extension adds properties to calculate the mean, median, mode, variance, standard deviation, and percentiles of an integer iterable.

on

Properties

mean int

Available on Iterable<int>, provided by the DHUListIntStats extension

Calculates the mean (average) of the integers in the iterable.
no setter
median int

Available on Iterable<int>, provided by the DHUListIntStats extension

Determines the median value of the integers in the iterable.
no setter
mode List<int>

Available on Iterable<int>, provided by the DHUListIntStats extension

Finds the mode(s) of the integers in the iterable.
no setter
standardDeviation int

Available on Iterable<int>, provided by the DHUListIntStats extension

Calculates the standard deviation of the integers in the iterable.
no setter
variance int

Available on Iterable<int>, provided by the DHUListIntStats extension

Computes the variance of the integers in the iterable.
no setter

Methods

percentile(double percentile) int

Available on Iterable<int>, provided by the DHUListIntStats extension

Computes the specified percentile of the integers in the iterable.