Skip to content

Commit c2fa964

Browse files
committed
Completed PrecisionHistogram text
1 parent 99c480a commit c2fa964

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

docs/manual.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,3 +785,17 @@ public class PrecisionHistogram extends Variance
785785
public void print ();
786786
};
787787
----
788+
789+
As with the Variance class from which it is derived, and whose methods are obviously available, values can be supplied to the histogram through the setValue(double) method.
790+
791+
The number of buckets maintained by the histogram can be obtained from the numberOfBuckets() method. Each bucket is uniquely named by the values it contains, and can also be accessed by its index in the entire list of buckets.
792+
793+
There are therefore two ways of getting the number of entries in a bucket:
794+
795+
- by the index number of the bucket: sizeByIndex(long index).
796+
797+
- by the unique name of the bucket: sizeByName(double name).
798+
799+
If the bucket does not exist then each of these methods throws IllegalArgumentException.
800+
801+
It is possible to output the contents of the histogram to standard output using the print()method.

0 commit comments

Comments
 (0)