public interface FloatQuantileFinder extends Serializable
QuantileFloatBin1D
, demonstrating
how this package can be used.Modifier and Type | Method and Description |
---|---|
void |
add(float value)
Adds a value to the receiver.
|
void |
addAllOf(FloatArrayList values)
Adds all values of the specified list to the receiver.
|
void |
addAllOfFromTo(FloatArrayList values,
int from,
int to)
Adds the part of the specified list between indexes from
(inclusive) and to (inclusive) to the receiver.
|
void |
clear()
Removes all elements from the receiver.
|
Object |
clone()
Returns a deep copy of the receiver.
|
boolean |
forEach(FloatProcedure procedure)
Applies a procedure to each element of the receiver, if any.
|
long |
memory()
Returns the number of elements currently needed to store all contained
elements.
|
float |
phi(float element)
Returns how many percent of the elements contained in the receiver are
<= element.
|
FloatArrayList |
quantileElements(FloatArrayList phis)
Computes the specified quantile elements over the values previously
added.
|
long |
size()
Returns the number of elements currently contained in the receiver
(identical to the number of values added so far).
|
long |
totalMemory()
Returns the number of elements currently needed to store all contained
elements.
|
void add(float value)
value
- the value to add.void addAllOf(FloatArrayList values)
values
- the list of which all values shall be added.void addAllOfFromTo(FloatArrayList values, int from, int to)
values
- the list of which elements shall be added.from
- the index of the first element to be added (inclusive).to
- the index of the last element to be added (inclusive).void clear()
Object clone()
boolean forEach(FloatProcedure procedure)
procedure
- the procedure to be applied. Stops iteration if the procedure
returns false, otherwise continues.long memory()
float phi(float element)
element
- the element to search for.FloatArrayList quantileElements(FloatArrayList phis)
phis
- the quantiles for which elements are to be computed. Each phi
must be in the interval [0.0,1.0]. phis must be
sorted ascending.long size()
long totalMemory()
Jump to the Parallel Colt Homepage