data-sketches-core-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

DataSketches.Quantiles.RelativeErrorQuantile.Internal.Compactor

Synopsis

Documentation

merge Source #

Arguments

:: (PrimMonad m, s ~ PrimState m) 
=> ReqCompactor (PrimState m)

The compactor to merge into

-> ReqCompactor (PrimState m)

The compactor to merge from

-> m (ReqCompactor s) 

Merge the other given compactor into this one. They both must have the same lgWeight

nearestEven Source #

Arguments

:: Double

the given value

-> Int

the nearest even integer to the given value.

Returns the nearest even integer to the given value. Also used by test.