bug-datamash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Percentiles as float instead of int


From: Bastien Duclaux
Subject: Percentiles as float instead of int
Date: Tue, 24 Aug 2021 10:17:24 +0200

Hello

We’re using datamash in our production chain at many levels, and I wonder if it would be possible to add support for float percentile values, instead of int.
In particular, I would like to be able to run the following command :

datamash perc:99.9 1 < dataset

I had a look at the source code, and it seems that percentile parameters are unsigned int. Maybe it’s not too difficult to change, but I don’t know about the data mash internals :
https://github.com/agordon/datamash/blob/d833adbd739b2dec7a3d3ae44b59f5421edacee1/src/op-parser.c#L187

Thanks for the great work !

Best regards

reply via email to

[Prev in Thread] Current Thread [Next in Thread]