| 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) |
int |
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() |
int |
sum() |
Iterable<Centroid> |
tailSet(Centroid start) |
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 int 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 int sum()
public void checkBalance()
public void print(int depth)
Copyright © 2014. All rights reserved.