Class Buffer

java.lang.Object
cern.colt.PersistentObject
cern.jet.stat.quantile.Buffer
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
DoubleBuffer

abstract class Buffer extends PersistentObject
A buffer holding elements; internally used for computing approximate quantiles.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     
    protected int
     
    protected int
     
    protected int
     

    Fields inherited from class cern.colt.PersistentObject

    serialVersionUID
  • Constructor Summary

    Constructors
    Constructor
    Description
    Buffer(int k)
    This method was created in VisualAge.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    Clears the receiver.
    boolean
    Returns whether the receiver is already allocated.
    abstract boolean
    Returns whether the receiver is empty.
    abstract boolean
    Returns whether the receiver is empty.
    boolean
    Returns whether the receiver is partial.
    int
    Returns whether the receiver's level.
    void
    level(int level)
    Sets the receiver's level.
    abstract int
    Returns the number of elements contained in the receiver.
    abstract void
    Sorts the receiver.
    int
    Returns whether the receiver's weight.
    void
    weight(int weight)
    Sets the receiver's weight.

    Methods inherited from class cern.colt.PersistentObject

    clone

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • weight

      protected int weight
    • level

      protected int level
    • k

      protected int k
    • isAllocated

      protected boolean isAllocated
  • Constructor Details

    • Buffer

      public Buffer(int k)
      This method was created in VisualAge.
      Parameters:
      k - int
  • Method Details

    • clear

      public abstract void clear()
      Clears the receiver.
    • isAllocated

      public boolean isAllocated()
      Returns whether the receiver is already allocated.
    • isEmpty

      public abstract boolean isEmpty()
      Returns whether the receiver is empty.
    • isFull

      public abstract boolean isFull()
      Returns whether the receiver is empty.
    • isPartial

      public boolean isPartial()
      Returns whether the receiver is partial.
    • level

      public int level()
      Returns whether the receiver's level.
    • level

      public void level(int level)
      Sets the receiver's level.
    • size

      public abstract int size()
      Returns the number of elements contained in the receiver.
    • sort

      public abstract void sort()
      Sorts the receiver.
    • weight

      public int weight()
      Returns whether the receiver's weight.
    • weight

      public void weight(int weight)
      Sets the receiver's weight.