Class Quantiles.Scale
java.lang.Object
com.google.common.math.Quantiles.Scale
- Enclosing class:
Quantiles
Describes the point in a fluent API chain where only the scale (i.e. the q in q-quantiles) has
been specified.
- Since:
- 20.0
- Author:
- Pete Gillin
-
Method Summary
Modifier and TypeMethodDescriptionindex(int index) Specifies a single quantile index to be calculated, i.e. the k in the kth q-quantile.indexes(int... indexes) Specifies multiple quantile indexes to be calculated, each index being the k in the kth q-quantile.indexes(Collection<Integer> indexes) Specifies multiple quantile indexes to be calculated, each index being the k in the kth q-quantile.
-
Method Details
-
index
Specifies a single quantile index to be calculated, i.e. the k in the kth q-quantile.- Parameters:
index- the quantile index, which must be in the inclusive range [0, q] for q-quantiles
-
indexes
Specifies multiple quantile indexes to be calculated, each index being the k in the kth q-quantile.- Parameters:
indexes- the quantile indexes, each of which must be in the inclusive range [0, q] for q-quantiles; the order of the indexes is unimportant, duplicates will be ignored, and the set will be snapshotted when this method is called- Throws:
IllegalArgumentException- ifindexesis empty
-
indexes
Specifies multiple quantile indexes to be calculated, each index being the k in the kth q-quantile.- Parameters:
indexes- the quantile indexes, each of which must be in the inclusive range [0, q] for q-quantiles; the order of the indexes is unimportant, duplicates will be ignored, and the set will be snapshotted when this method is called- Throws:
IllegalArgumentException- ifindexesis empty
-