tsv_utils.common.numerics

Numeric related utilities used by TSV Utilities.

Utilities in this file:

  • formatNumber - An alternate print format for numbers, especially useful when doubles are being used to represent integer and float values.
  • rangeMedian - Finds the median value of a range.
  • quantile - Generates quantile values for a data set.

Copyright (c) 2016-2018, eBay Software Foundation Initially written by Jon Degenhardt

Members

Enums

QuantileInterpolation
enum QuantileInterpolation

The different quantile interpolation methods. See: https://stat.ethz.ch/R-manual/R-devel/library/stats/html/quantile.html

Functions

formatNumber
auto formatNumber(T num, size_t floatPrecision)
Undocumented in source. Be warned that the author may not have intended to support it.
quantile
double quantile(ProbType prob, Range data, QuantileInterpolation method)
Undocumented in source.
rangeMedian
auto rangeMedian(Range r)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta