Does it make sense to implement an API for non-empty TDigest so quantile returns a plain Double rather than Maybe Double, and (minimum|maximum)Value never return infinity?
The non-empty TDigest wouldn't have the Monoid instance and also tdigest would look like either of
Does it make sense to implement an API for non-empty
TDigest
soquantile
returns a plainDouble
rather thanMaybe Double
, and(minimum|maximum)Value
never return infinity?The non-empty
TDigest
wouldn't have the Monoid instance and alsotdigest
would look like either oftdigest :: (KnownNat comp) => NonEmpty Double -> TDigest comp
ortdigest :: (Foldable f, KnownNat comp) => f Double -> Maybe (TDigest comp)
.