bishbosh-0.0.0.7: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Attribute.CriterionWeight

Description

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

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

Instances details
Num criterionWeight => Bounded (CriterionWeight criterionWeight) Source # 
Instance details

Defined in BishBosh.Attribute.CriterionWeight

Methods

minBound :: CriterionWeight criterionWeight #

maxBound :: CriterionWeight criterionWeight #

Eq criterionWeight => Eq (CriterionWeight criterionWeight) Source # 
Instance details

Defined in BishBosh.Attribute.CriterionWeight

Methods

(==) :: CriterionWeight criterionWeight -> CriterionWeight criterionWeight -> Bool #

(/=) :: CriterionWeight criterionWeight -> CriterionWeight criterionWeight -> Bool #

Ord criterionWeight => Ord (CriterionWeight criterionWeight) Source # 
Instance details

Defined in BishBosh.Attribute.CriterionWeight

Methods

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 # 
Instance details

Defined in BishBosh.Attribute.CriterionWeight

Methods

showsPrec :: Int -> CriterionWeight criterionWeight -> ShowS #

show :: CriterionWeight criterionWeight -> String #

showList :: [CriterionWeight criterionWeight] -> ShowS #

NFData criterionWeight => NFData (CriterionWeight criterionWeight) Source # 
Instance details

Defined in BishBosh.Attribute.CriterionWeight

Methods

rnf :: CriterionWeight criterionWeight -> () #

Num criterionWeight => Default (CriterionWeight criterionWeight) Source # 
Instance details

Defined in BishBosh.Attribute.CriterionWeight

Methods

def :: CriterionWeight criterionWeight #

(XmlPickler criterionWeight, Num criterionWeight, Ord criterionWeight, Show criterionWeight) => XmlPickler (CriterionWeight criterionWeight) Source # 
Instance details

Defined in BishBosh.Attribute.CriterionWeight

Methods

xpickle :: PU (CriterionWeight criterionWeight) #

Functions

Constructor

mkCriterionWeight :: (Num criterionWeight, Ord criterionWeight, Show criterionWeight) => criterionWeight -> CriterionWeight criterionWeight Source #

Smart constructor.