Copyright | (c) OleksandrZhabenko 2022-2023 |
---|---|
License | MIT |
Maintainer | oleksandr.zhabenko@yahoo.com |
Stability | Experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A module to provide the extended variants to convert a InsertLeft
instance structure with
some values to another one with the values from the pre-defined structure. Similar to
the measurement of the quantum state observables with the discrete spectrum.
For performance reasons it is better to use module ListQuantizer whenever possible (especially if the
given Foldable
and InsertLeft
instances are just lists). Contrary to
TwoQuantizer module, the results in every function here depend not just on the two values,
which the point is located in between, but on the whole structure. Defined for just positive real numbers of Double
type.
Documentation
:: (Ord a, InsertLeft t a, Monoid (t a)) | |
=> Bool | If |
-> (t a -> a -> Ordering) | |
-> t a | |
-> a | |
-> Maybe a | The |