histogram icon indicating copy to clipboard operation
histogram copied to clipboard

Why is histogram hardcoded to u64?

Open caiohamamura opened this issue 6 years ago • 3 comments

Can't histogram be generic and receive any type instead of being hardcoded to accept only u64?

caiohamamura avatar Nov 08 '19 19:11 caiohamamura

(sorry, I don't know how I missed the notification for this issue)

Yes, it can. This is just a very old crate and my use-case at the time only focused on u64. I have a different library I am using now that does use generics, but it's not published to crates.io yet.

brayniac avatar Jun 15 '20 14:06 brayniac

any update on the generic histogram (f64 and negative values)?

fgadaleta avatar Aug 06 '20 07:08 fgadaleta

I built histo_fp for int and float samples (and buckets) Check it out

fgadaleta avatar Aug 14 '20 06:08 fgadaleta