quantizer-0.2.0.0: Library to provide the behaviour similar to quantum states superposition.

TwoQuantizer

Description

A module to provide the simple version of the obtaining from the list of values the list of other values, the pre-defined ones. Provides both pure functions and monadic versions.

# Documentation

Arguments

 :: Bool If True then the function rounds the result in the ambiguous situation to the greater value. -> Double -> Double -> Double -> Maybe Double The numeric value (in Just case) can be equal just to the one of the two first arguments.

Arguments

 :: Bool If True then the function rounds the result in the ambiguous situation to the greater value. -> [Double] -> Double -> Double

Arguments

 :: Bool If True then the function rounds the result in the ambiguous situation to the greater value. -> [Double] -> [Double] -> [Double]

Arguments

 :: Ord a => Bool If True then the function rounds the result in the ambiguous situation to the greater value. -> (a -> a -> a -> Ordering) -> a -> a -> a -> Maybe a The a value (in Just case) can be equal just to the one of the two first a arguments.

Arguments

 :: Ord a => Bool If True then the function rounds the result in the ambiguous situation to the greater value. -> (a -> a -> a -> Ordering) -> [a] -> a -> a

Arguments

 :: (Ord a, Floating a, Integral a) => Bool If True then the function rounds the result in the ambiguous situation to the greater value. -> (a -> a -> a -> Ordering) -> [a] -> [a] -> [a]

Arguments

 :: (Ord a, Monad m) => Bool If True then the function rounds the result in the ambiguous situation to the greater value. -> (a -> a -> a -> m Ordering) -> a -> a -> a -> m (Maybe a)

Arguments

 :: (Ord a, Monad m) => Bool If True then the function rounds the result in the ambiguous situation to the greater value. -> (a -> a -> a -> m Ordering) -> [a] -> a -> m a

meanF2 :: (Floating a, Integral a) => [a] -> a -> a -> a Source #

Arguments

 :: (Ord a, Floating a, Integral a, Monad m) => Bool If True then the function rounds the result in the ambiguous situation to the greater value. -> (a -> a -> a -> m Ordering) -> [a] -> [a] -> m [a]