statistics¶
Mathematical statistics functions.
Functions¶
statistics.mode(notnull: IEnumerable<T> data) where T : = > Mode(new Sharpy.List<T>(data)) -> T¶
Return the most common data point from discrete or nominal data.
statistics.mean(data: list[float]) -> float¶
Return the sample arithmetic mean of data.
statistics.fmean(data: list[float]) -> float¶
Convert data to floats and compute the arithmetic mean.
statistics.median(data: list[float]) -> float¶
Return the median (middle value) of numeric data.
statistics.median_low(data: list[float]) -> float¶
Return the low median of numeric data.
statistics.median_high(data: list[float]) -> float¶
Return the high median of numeric data.
statistics.mode(data: list[T]) -> T¶
Return the most common data point from discrete or nominal data.
statistics.stdev(data: list[float]) -> float¶
Return the square root of the sample variance.
statistics.pstdev(data: list[float]) -> float¶
Return the square root of the population variance.
statistics.variance(data: list[float]) -> float¶
Return the sample variance of data.
statistics.pvariance(data: list[float]) -> float¶
Return the population variance of data.
statistics.mean(data: list[int]) -> float¶
Return the sample arithmetic mean of integer data.
statistics.mean(data: list[long]) -> float¶
Return the sample arithmetic mean of long integer data.
statistics.fmean(data: list[int]) -> float¶
Convert integer data to floats and compute the arithmetic mean.
statistics.fmean(data: list[long]) -> float¶
Convert long integer data to floats and compute the arithmetic mean.
statistics.median(data: list[int]) -> float¶
Return the median (middle value) of integer data.
statistics.median(data: list[long]) -> float¶
Return the median (middle value) of long integer data.
statistics.median_low(data: list[int]) -> float¶
Return the low median of integer data.
statistics.median_low(data: list[long]) -> float¶
Return the low median of long integer data.
statistics.median_high(data: list[int]) -> float¶
Return the high median of integer data.
statistics.median_high(data: list[long]) -> float¶
Return the high median of long integer data.
statistics.stdev(data: list[int]) -> float¶
Return the square root of the sample variance for integer data.
statistics.stdev(data: list[long]) -> float¶
Return the square root of the sample variance for long integer data.
statistics.variance(data: list[int]) -> float¶
Return the sample variance of integer data.
statistics.variance(data: list[long]) -> float¶
Return the sample variance of long integer data.
statistics.pstdev(data: list[int]) -> float¶
Return the square root of the population variance for integer data.
statistics.pstdev(data: list[long]) -> float¶
Return the square root of the population variance for long integer data.
statistics.pvariance(data: list[int]) -> float¶
Return the population variance of integer data.
statistics.pvariance(data: list[long]) -> float¶
Return the population variance of long integer data.