Skip to content

Commit 0ea59ca

Browse files
committedOct 17, 2019
[add] extended Readme example with output
1 parent e539e48 commit 0ea59ca

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed
 

‎README.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,20 @@ func main() {
5555
for _, sample := range input {
5656
lH.RecordValue(sample)
5757
}
58+
59+
fmt.Println( lH.PercentilesPrint( 1, 1.0 ) )
60+
// Output:
61+
// Value Percentile TotalCount 1/(1-Percentile)
62+
//
63+
// 460031.000 0.000000 1 1.00
64+
// 931839.000 0.500000 5 2.00
65+
// 2478079.000 0.750000 8 4.00
66+
// 3966975.000 0.875000 9 8.00
67+
// 12722175.000 0.937500 10 16.00
68+
// 12722175.000 1.000000 10 +Inf
69+
// #[Mean = 2491481.600, StdDeviation = 3557920.109]
70+
// #[Max = 12722175.000, Total count = 10]
71+
// #[Buckets = 15, SubBuckets = 2048]
5872

59-
fmt.Println( lH.PercentilesPrint( 1, 1.0 ) )
6073
}
6174
```

0 commit comments

Comments
 (0)
Please sign in to comment.