histogram-fill-0.5.1: Library for histograms creation.

Data.Histogram.Bin.Bin2D

Synopsis

Documentation

data Bin2D binX binY Source

2D bins. binX is binning along X axis and binY is one along Y axis. Data is stored in row-major order

Constructors

 Bin2D FieldsbinX :: !binXBinning algorithm for X axis binY :: !binYBinning algorithm for Y axis

Instances

 Typeable2 Bin2D (Eq binX, Eq binY) => Eq (Bin2D binX binY) (Data binX, Data binY) => Data (Bin2D binX binY) (Read b1, Read b2) => Read (Bin2D b1 b2) (Show b1, Show b2) => Show (Bin2D b1 b2) (Bin binX, Bin binY) => Bin (Bin2D binX binY) (ConvertBin bx bx', ConvertBin by by') => ConvertBin (Bin2D bx by) (Bin2D bx' by') (ConvertBin by by', Bin bx) => ConvertBin (Bin2D bx by) (Bin2D bx by') (ConvertBin bx bx', Bin by) => ConvertBin (Bin2D bx by) (Bin2D bx' by)

(><) :: binX -> binY -> Bin2D binX binYSource

Alias for `Bin2D`.

nBins2D :: (Bin bx, Bin by) => Bin2D bx by -> (Int, Int)Source

2-dimensional size of binning algorithm

fmapBinX :: (Bin bx, Bin bx') => (bx -> bx') -> Bin2D bx by -> Bin2D bx' bySource

Apply function to X binning algorithm. If new binning algorithm have different number of bins will fail.

fmapBinY :: (Bin by, Bin by') => (by -> by') -> Bin2D bx by -> Bin2D bx by'Source

Apply function to Y binning algorithm. If new binning algorithm have different number of bins will fail.