fuzzySets-1.0.0: Library for constructing and manipulating fuzzy sets and fuzzy relations.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Lattices.UnitInterval

Synopsis

Documentation

newtype UnitInterval Source #

unit interval on real numbers [0,1]

Constructors

UnitInterval Double 

Instances

Instances details
Num UnitInterval Source # 
Instance details

Defined in Lattices.UnitInterval

Fractional UnitInterval Source # 
Instance details

Defined in Lattices.UnitInterval

Real UnitInterval Source # 
Instance details

Defined in Lattices.UnitInterval

Methods

toRational :: UnitInterval -> Rational

RealFrac UnitInterval Source # 
Instance details

Defined in Lattices.UnitInterval

Methods

properFraction :: Integral b => UnitInterval -> (b, UnitInterval)

truncate :: Integral b => UnitInterval -> b

round :: Integral b => UnitInterval -> b

ceiling :: Integral b => UnitInterval -> b

floor :: Integral b => UnitInterval -> b

Show UnitInterval Source # 
Instance details

Defined in Lattices.UnitInterval

Methods

showsPrec :: Int -> UnitInterval -> ShowS

show :: UnitInterval -> String

showList :: [UnitInterval] -> ShowS

BoundedLattice UnitInterval Source # 
Instance details

Defined in Lattices.UnitInterval

Eq UnitInterval Source # 
Instance details

Defined in Lattices.UnitInterval

Methods

(==) :: UnitInterval -> UnitInterval -> Bool

(/=) :: UnitInterval -> UnitInterval -> Bool

Ord UnitInterval Source # 
Instance details

Defined in Lattices.UnitInterval

mkUnitInterval :: Double -> UnitInterval Source #

Unit interval constructor. Ensures values are in bounds