Percentile for a description of the algorithm used.
Note that this implementation is not synchronized. If
multiple threads access an instance of this class concurrently, and at least
one of the threads invokes the increment() or
clear() method, it must be synchronized externally.
| Modifier and Type | Field and Description |
|---|---|
| private static final double | FIXED_QUANTILE_50
Fixed quantile. |
| private static final long | serialVersionUID
Hides org. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| private | Median(final Percentile.
one of the percentile estimationType,estimation typesone of nanStrategy, final KthSelector NaNStrategy to handle with NaNsKthSelector to use for pivoting during searchConstructs a Median with the specific |
| Modifier and Type | Method and Description |
|---|---|
| public Median | withEstimationType(final Percentile.
estimation type for the new instance newEstimationTypeOverrides org. Build a new instance similar to the current one except for the
|
| public Median | withKthSelector(final KthSelector
KthSelector for the new instance newKthSelector)Overrides org. Build a new instance similar to the current one except for the
|
| public Median | withNaNStrategy(final NaNStrategy
NaN strategy for the new instance newNaNStrategy)Overrides org. Build a new instance similar to the current one except for the
|
| FIXED_QUANTILE_50 | back to summary |
|---|---|
| private static final double FIXED_QUANTILE_50 Fixed quantile. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. Serializable version identifier | |
| Median | back to summary |
|---|---|
| public Median() Default constructor. | |
| Median | back to summary |
|---|---|
| public Median(Median original) throws NullArgumentException Copy constructor, creates a new
| |
| Median | back to summary |
|---|---|
| private Median(final Percentile. Constructs a Median with the specific
| |
| withEstimationType | back to summary |
|---|---|
| public Median withEstimationType(final Percentile. Overrides org. Doc from org. Build a new instance similar to the current one except for the
This method is intended to be used as part of a fluent-type builder pattern. Building finely tune instances should be done as follows:
Percentile customized = new Percentile(quantile).
withEstimationType(estimationType).
withNaNStrategy(nanStrategy).
withKthSelector(kthSelector);
If any of the
| |
| withKthSelector | back to summary |
|---|---|
| public Median withKthSelector(final KthSelector newKthSelector) Overrides org. Doc from org. Build a new instance similar to the current one except for the
This method is intended to be used as part of a fluent-type builder pattern. Building finely tune instances should be done as follows:
Percentile customized = new Percentile(quantile).
withEstimationType(estimationType).
withNaNStrategy(nanStrategy).
withKthSelector(newKthSelector);
If any of the
| |
| withNaNStrategy | back to summary |
|---|---|
| public Median withNaNStrategy(final NaNStrategy newNaNStrategy) Overrides org. Doc from org. Build a new instance similar to the current one except for the
This method is intended to be used as part of a fluent-type builder pattern. Building finely tune instances should be done as follows:
Percentile customized = new Percentile(quantile).
withEstimationType(estimationType).
withNaNStrategy(nanStrategy).
withKthSelector(kthSelector);
If any of the
| |