Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Defines the weight associated with some criterion.
- Each weighting is constrained to the unsigned closed unit-interval; negative values aren't permitted.
- If the criterion is considered unimportant, then its weight can be set to '0', whilst concepts of great significance can be set to '1'.
CAVEAT
- While this data-type could implement the classes
Functor
,Num
,Fractional
&Real
, these interfaces allow one to construct invalid instances.
Synopsis
- data CriterionWeight criterionWeight
- mkCriterionWeight :: (Num criterionWeight, Ord criterionWeight, Show criterionWeight) => criterionWeight -> CriterionWeight criterionWeight
Types
Data-types
data CriterionWeight criterionWeight Source #
Quantifies the relative significance, of a criterion; the larger the value, the more significant the criterion is relative to other criteria.
Instances
Num criterionWeight => Bounded (CriterionWeight criterionWeight) Source # | |
Defined in BishBosh.Attribute.CriterionWeight minBound :: CriterionWeight criterionWeight # maxBound :: CriterionWeight criterionWeight # | |
Eq criterionWeight => Eq (CriterionWeight criterionWeight) Source # | |
Defined in BishBosh.Attribute.CriterionWeight (==) :: CriterionWeight criterionWeight -> CriterionWeight criterionWeight -> Bool # (/=) :: CriterionWeight criterionWeight -> CriterionWeight criterionWeight -> Bool # | |
Ord criterionWeight => Ord (CriterionWeight criterionWeight) Source # | |
Defined in BishBosh.Attribute.CriterionWeight compare :: CriterionWeight criterionWeight -> CriterionWeight criterionWeight -> Ordering # (<) :: CriterionWeight criterionWeight -> CriterionWeight criterionWeight -> Bool # (<=) :: CriterionWeight criterionWeight -> CriterionWeight criterionWeight -> Bool # (>) :: CriterionWeight criterionWeight -> CriterionWeight criterionWeight -> Bool # (>=) :: CriterionWeight criterionWeight -> CriterionWeight criterionWeight -> Bool # max :: CriterionWeight criterionWeight -> CriterionWeight criterionWeight -> CriterionWeight criterionWeight # min :: CriterionWeight criterionWeight -> CriterionWeight criterionWeight -> CriterionWeight criterionWeight # | |
Show criterionWeight => Show (CriterionWeight criterionWeight) Source # | |
Defined in BishBosh.Attribute.CriterionWeight showsPrec :: Int -> CriterionWeight criterionWeight -> ShowS # show :: CriterionWeight criterionWeight -> String # showList :: [CriterionWeight criterionWeight] -> ShowS # | |
NFData criterionWeight => NFData (CriterionWeight criterionWeight) Source # | |
Defined in BishBosh.Attribute.CriterionWeight rnf :: CriterionWeight criterionWeight -> () # | |
Num criterionWeight => Default (CriterionWeight criterionWeight) Source # | |
Defined in BishBosh.Attribute.CriterionWeight def :: CriterionWeight criterionWeight # | |
(XmlPickler criterionWeight, Num criterionWeight, Ord criterionWeight, Show criterionWeight) => XmlPickler (CriterionWeight criterionWeight) Source # | |
Defined in BishBosh.Attribute.CriterionWeight xpickle :: PU (CriterionWeight criterionWeight) # |
Functions
Constructor
mkCriterionWeight :: (Num criterionWeight, Ord criterionWeight, Show criterionWeight) => criterionWeight -> CriterionWeight criterionWeight Source #
Smart constructor.