DHUListNumStats extension

Extension on Iterable<num> providing statistical operations.

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

on

Properties

mean num

Available on Iterable<num>, provided by the DHUListNumStats extension

Calculates the mean (average) of the numbers in the iterable.
no setter
median num

Available on Iterable<num>, provided by the DHUListNumStats extension

Determines the median value of the numbers in the iterable.
no setter
mode List<num>

Available on Iterable<num>, provided by the DHUListNumStats extension

Finds the mode(s) of the numbers in the iterable.
no setter
standardDeviation num

Available on Iterable<num>, provided by the DHUListNumStats extension

Calculates the standard deviation of the numbers in the iterable.
no setter
variance num

Available on Iterable<num>, provided by the DHUListNumStats extension

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

Methods

percentile(double percentile) num

Available on Iterable<num>, provided by the DHUListNumStats extension

Computes the specified percentile of the numbers in the iterable.