Copyright | Copyright (c) 2010 Alexey Khudyakov <alexey.skladnoy@gmail.com> |
---|---|
License | BSD3 |
Maintainer | Alexey Khudyakov <alexey.skladnoy@gmail.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell98 |
Extra binning algorithms
Synopsis
- class Enum2D a where
- data BinEnum2D i
- binEnum2D :: Enum2D i => i -> i -> BinEnum2D i
- data BinPermute b
- permuteByTable :: Bin b => b -> Vector Int -> Maybe (BinPermute b)
- permuteBin :: Bin b => b -> (Int -> Int) -> Maybe (BinPermute b)
Documentation
Type class very similar to Enum
but elements of type are
enumerated on 2-dimensional grid
Binning for 2D enumerations
Instances
Eq (BinEnum2D i) Source # | |
Data i => Data (BinEnum2D i) Source # | |
Defined in Data.Histogram.Bin.Extra gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BinEnum2D i -> c (BinEnum2D i) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (BinEnum2D i) # toConstr :: BinEnum2D i -> Constr # dataTypeOf :: BinEnum2D i -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (BinEnum2D i)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (BinEnum2D i)) # gmapT :: (forall b. Data b => b -> b) -> BinEnum2D i -> BinEnum2D i # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BinEnum2D i -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BinEnum2D i -> r # gmapQ :: (forall d. Data d => d -> u) -> BinEnum2D i -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> BinEnum2D i -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> BinEnum2D i -> m (BinEnum2D i) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BinEnum2D i -> m (BinEnum2D i) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BinEnum2D i -> m (BinEnum2D i) # | |
(Read i, Enum2D i) => Read (BinEnum2D i) Source # | |
(Show i, Enum2D i) => Show (BinEnum2D i) Source # | |
NFData (BinEnum2D i) Source # | |
Defined in Data.Histogram.Bin.Extra | |
Enum2D i => Bin (BinEnum2D i) Source # | |
Defined in Data.Histogram.Bin.Extra | |
type BinValue (BinEnum2D i) Source # | |
Defined in Data.Histogram.Bin.Extra |
data BinPermute b Source #
Direct permutation of indices.
Instances
permuteByTable :: Bin b => b -> Vector Int -> Maybe (BinPermute b) Source #
Constuct bin permutation from table
permuteBin :: Bin b => b -> (Int -> Int) -> Maybe (BinPermute b) Source #
Constuct bin permutation from function.