foldl-incremental-0.2.0.0: incremental folds

Safe HaskellNone
LanguageHaskell2010

Data.Histogram.Bin.BinDU

Contents

Synopsis

Specialized to Double, Unboxed Vectors

data BinDU Source

Double bins of unequal sizes. Bins are defined by a vector of cuts marking bounadries between bins (The entire range is continuous. There are n+1 cuts for n bins Cuts are assumed to be in ascending order Specialized on Data.Vector.Unboxed TODO: Generic Vector type. Type paramter:

v
type of vector used to define bin cuts

Constructors

BinDU !(Vector Double) 

binDU Source

Arguments

:: Vector Double

cuts

-> BinDU 

unsafeBinDU Source

Arguments

:: Vector Double

cuts

-> BinDU 

Create bins unsafely

class Bin b => AdaptableBin b where Source

Binning algorithms which support adaption.

Methods

deleteCut :: b -> Int -> b Source

delete a bin

addCut :: b -> Double -> b Source

add a new bin

Instances