public class Bucket
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
int |
bucket
The bucket id is given by the universal bucket hashing.
|
smile.util.IntArrayList |
entry
The indices of points that all have the same value for hash function g.
|
Constructor and Description |
---|
Bucket(int bucket)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int point)
Adds a point to bucket.
|
smile.util.IntArrayList |
points()
Returns the points in the bucket.
|
boolean |
remove(int point)
Removes a point from bucket.
|
public final int bucket
public final smile.util.IntArrayList entry
public Bucket(int bucket)
bucket
- the bucket number given by universal hashing.public smile.util.IntArrayList points()
public void add(int point)
point
- the index of point.public boolean remove(int point)
point
- the index of point.