|
Parallel Colt 0.9.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcern.colt.PersistentObject
cern.jet.stat.Buffer
cern.jet.stat.tdouble.quantile.DoubleBuffer
public class DoubleBuffer
A buffer holding double elements; internally used for computing approximate quantiles.
Field Summary |
---|
Fields inherited from class cern.jet.stat.Buffer |
---|
isAllocated, k, level, weight |
Constructor Summary | |
---|---|
DoubleBuffer(int k)
This method was created in VisualAge. |
Method Summary | |
---|---|
void |
add(double value)
Adds a value to the receiver. |
void |
addAllOfFromTo(DoubleArrayList elements,
int from,
int to)
Adds a value to the receiver. |
void |
clear()
Clears the receiver. |
Object |
clone()
Returns a deep copy of the receiver. |
boolean |
contains(double element)
Returns whether the specified element is contained in the receiver. |
boolean |
isEmpty()
Returns whether the receiver is empty. |
boolean |
isFull()
Returns whether the receiver is empty. |
int |
memory()
Returns the number of elements currently needed to store all contained elements. |
double |
rank(double element)
Returns the rank of a given element within the sorted sequence of the receiver. |
int |
size()
Returns the number of elements contained in the receiver. |
void |
sort()
Sorts the receiver. |
String |
toString()
Returns a String representation of the receiver. |
Methods inherited from class cern.jet.stat.Buffer |
---|
isAllocated, isPartial, level, level, weight, weight |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DoubleBuffer(int k)
k
- intMethod Detail |
---|
public void add(double value)
public void addAllOfFromTo(DoubleArrayList elements, int from, int to)
public void clear()
clear
in class Buffer
public Object clone()
clone
in class PersistentObject
public boolean contains(double element)
public boolean isEmpty()
isEmpty
in class Buffer
public boolean isFull()
isFull
in class Buffer
public int memory()
public double rank(double element)
element
- the element to search for
public int size()
size
in class Buffer
public void sort()
sort
in class Buffer
public String toString()
toString
in class Object
|
Parallel Colt 0.9.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |