to_histogram 1.0.13 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/to_histogram.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7008f7a14f4a5c752f833e60f80357bd2282d8d
|
4
|
+
data.tar.gz: 6ec8b6c9d8cc9c6a299906e6101b67cb6d5fee94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcfbf59ad4090be49a7e2221279bf8dbcefe6f994ad91f7e81c90ed109098f26ed377d6edae30a5f7048cf406cc71ce4bcf6dbe5b115f0f2870fb2b80f739a17
|
7
|
+
data.tar.gz: ae9e34f448578d2e86e7e27584fea3201ba64f3e240a78b4a771afd7fe5626fba48270a1013f9cc125e4ec4c593fdd95bdaf04fc97c7a0700fdb425fbefa9579
|
data/lib/to_histogram.rb
CHANGED
@@ -4,7 +4,7 @@ require_relative './stdout_print'
|
|
4
4
|
class Array
|
5
5
|
def to_histogram(num_buckets: 20, bucket_width: 'auto', percentile: 100, print_info: true)
|
6
6
|
histogram = ToHistogram::Histogram.new(self, num_buckets: num_buckets, bucket_width: bucket_width, percentile: percentile)
|
7
|
-
stdout_print = ToHistogram::StdoutPrint.new(histogram
|
7
|
+
stdout_print = ToHistogram::StdoutPrint.new(histogram)
|
8
8
|
|
9
9
|
stdout_print.invoke if print_info
|
10
10
|
|