public class GroupTree extends AbstractCollection<Centroid>
| Constructor and Description |
|---|
GroupTree() |
GroupTree(Centroid leaf) |
GroupTree(GroupTree left,
GroupTree right) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
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) |
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCodepublic GroupTree()
public GroupTree(Centroid leaf)
public boolean add(Centroid centroid)
add in interface Collection<Centroid>add in class AbstractCollection<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()
size in interface Collection<Centroid>size in class AbstractCollection<Centroid>public int headCount(Centroid base)
public long headSum(Centroid base)
public Centroid first()
public Iterator<Centroid> iterator()
iterator in interface Iterable<Centroid>iterator in interface Collection<Centroid>iterator in class AbstractCollection<Centroid>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.