Class GroupTree
java.lang.Object
com.tdunning.math.stats.GroupTree
-
Constructor Details
-
GroupTree
public GroupTree() -
GroupTree
-
GroupTree
-
-
Method Details
-
add
-
move
Modify an existing value in the tree subject to the constraint that the change will not alter the ordering of the tree.- Parameters:
x- New value to add to Centroidcount- Weight of new valuev- The value to modifydata- The recorded data
-
size
public int size() -
headCount
- Returns:
- the number of items strictly before the current element
-
headSum
- Returns:
- the sum of the size() function for all elements strictly before the current element.
-
first
- Returns:
- the first Centroid in this set
-
iterator
-
remove
-
floor
-
last
-
ceiling
-
tailSet
-
sum
public long sum() -
checkBalance
public void checkBalance() -
print
public void print(int depth)
-