Constructor and Description |
---|
GroupTree() |
GroupTree(Centroid leaf) |
GroupTree(GroupTree left,
GroupTree right) |
Modifier and Type | Method and Description |
---|---|
void |
add(Centroid centroid) |
Centroid |
ceiling(Centroid base) |
void |
checkBalance() |
Centroid |
first() |
Centroid |
floor(Centroid base) |
int |
headCount(Centroid base) |
long |
headSum(Centroid base) |
Iterator<Centroid> |
iterator()
Iteratres through all groups in the tree.
|
Centroid |
last() |
void |
move(double x,
int count,
Centroid v,
Iterable<? extends Double> data)
Modify an existing value in the tree subject to the constraint that the change will not alter the
ordering of the tree.
|
void |
print(int depth) |
void |
remove(Centroid base) |
int |
size() |
long |
sum() |
Iterable<Centroid> |
tailSet(Centroid start) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public GroupTree()
public GroupTree(Centroid leaf)
public void add(Centroid centroid)
public void move(double x, int count, Centroid v, Iterable<? extends Double> data)
x
- New value to add to Centroidcount
- Weight of new valuev
- The value to modifydata
- The recorded datapublic int size()
public int headCount(Centroid base)
public long headSum(Centroid base)
public Centroid first()
public void remove(Centroid base)
public Centroid last()
public Centroid ceiling(Centroid base)
public Iterable<Centroid> tailSet(Centroid start)
public long sum()
public void checkBalance()
public void print(int depth)
Copyright © 2015. All rights reserved.