Commits

Aleksey Khudyakov committed 5bbb1a4

update unboxed histogram

Comments (0)

Files changed (1)

Data/Histogram.hs

 -- 'Data.Histogram.Generic' but specialzed to unboxed vectors. Refer
 -- aforementioned module for documentation.
 module Data.Histogram ( -- * Immutable histogram
-    -- * Data type
+    -- * Immutable histograms
     Histogram
   , module Data.Histogram.Bin
+    -- ** Constructors
   , histogram
   , histogramUO
-  , HistIndex(..) 
-  , histIndex
-    -- * Read histograms from string
+    -- ** Conversion to other data types
+  , asList
+  , asVector
+    -- * Serialization to strings
+    -- $serialization
   , readHistogram
   , readFileHistogram
     -- * Accessors
   , underflows
   , overflows
   , outOfRange
-    -- ** Convert to other data types
-  , asList
-  , asVector
-     -- * Modification
+    -- ** Indexing
+  , HistIndex(..) 
+  , histIndex
+  , at
+    -- * Transformations
   , map
   , bmap
   , mapData
          => Histogram bin a -> Vector (BinValue bin, a) 
 asVector = H.asVector
 
+at :: (Bin bin, Unbox a) => Histogram bin a -> HistIndex bin -> a
+at = H.at
+
 ----------------------------------------------------------------
 -- Modify histograms
 ----------------------------------------------------------------
 convertBinning = H.convertBinning
 
 
-
 ----------------------------------------------------------------
 -- Folding
 ----------------------------------------------------------------