Package com.google.common.math
Class Quantiles.Scale
- java.lang.Object
- 
- com.google.common.math.Quantiles.Scale
 
- 
- Enclosing class:
- Quantiles
 
 public static final class Quantiles.Scale extends Object 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
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Quantiles.ScaleAndIndexindex(int index)Specifies a single quantile index to be calculated, i.e.Quantiles.ScaleAndIndexesindexes(int... indexes)Specifies multiple quantile indexes to be calculated, each index being the k in the kth q-quantile.Quantiles.ScaleAndIndexesindexes(Collection<Integer> indexes)Specifies multiple quantile indexes to be calculated, each index being the k in the kth q-quantile.
 
- 
- 
- 
Method Detail- 
indexpublic Quantiles.ScaleAndIndex index(int 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
 
 - 
indexespublic Quantiles.ScaleAndIndexes indexes(int... 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- if- indexesis empty
 
 - 
indexespublic Quantiles.ScaleAndIndexes indexes(Collection<Integer> 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- if- indexesis empty
 
 
- 
 
-