data-sketches-0.3.0.1
Safe HaskellNone
LanguageHaskell2010

DataSketches.Quantiles.RelativeErrorQuantile.Internal.DoubleBuffer

Synopsis

Documentation

mkBuffer :: PrimMonad m => Capacity -> GrowthIncrement -> SpaceAtBottom -> m (DoubleBuffer (PrimState m)) Source #

Constructs an new empty FloatBuffer with an initial capacity specified by the codecapacity/code argument.

append :: PrimMonad m => DoubleBuffer (PrimState m) -> Double -> m () Source #

Appends the given item to the active array and increments the active count. This will expand the array if necessary.

sort :: PrimMonad m => DoubleBuffer (PrimState m) -> m () Source #

Sorts the active region

mergeSortIn :: (PrimMonad m, HasCallStack) => DoubleBuffer (PrimState m) -> DoubleBuffer (PrimState m) -> m () Source #

Merges the incoming sorted buffer into this sorted buffer.