You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/manual.adoc
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -785,3 +785,17 @@ public class PrecisionHistogram extends Variance
785
785
public void print ();
786
786
};
787
787
----
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