Top Description Fields Constructors Methods
io.rsocket.loadbalance

pack-priv Class Median

extends FrugalQuantile
Class Inheritance

This implementation gives better results because it considers more data-point.

Field Summary

Inherited from io.rsocket.loadbalance.FrugalQuantile:
estimateincrementquantilerndsignstep

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
greaterThanZero(double x)

public synchronized void
insert(double
the data point to add.
x
)

Overrides io.rsocket.loadbalance.FrugalQuantile.insert.

Implements io.rsocket.loadbalance.Quantile.insert.

Insert a data point `x` in the quantile estimator.
private void
lessThanZero(double x)

public synchronized void
public String
toString()

Overrides io.rsocket.loadbalance.FrugalQuantile.toString.

Returns a string representation of the object.
Inherited from io.rsocket.loadbalance.FrugalQuantile:
estimationreset

Constructor Detail

Medianback to summary
public Median()

Method Detail

greaterThanZeroback to summary
private void greaterThanZero(double x)
insertback to summary
public synchronized void insert(double x)

Overrides io.rsocket.loadbalance.FrugalQuantile.insert.

Implements io.rsocket.loadbalance.Quantile.insert.

Doc from io.rsocket.loadbalance.Quantile.insert.

Insert a data point `x` in the quantile estimator.

Parameters
x:double

the data point to add.

Annotations
@Override
lessThanZeroback to summary
private void lessThanZero(double x)
resetback to summary
public synchronized void reset()
toStringback to summary
public String toString()

Overrides io.rsocket.loadbalance.FrugalQuantile.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override