bishbosh-0.0.0.7: Plays chess.
Safe HaskellSafe-Inferred
LanguageHaskell2010

BishBosh.Attribute.WeightedMeanAndCriterionValues

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
The unweighted values of each criterion used to assess the fitness of a position, & the resulting weighted mean.
Synopsis

Types

Data-types

data WeightedMeanAndCriterionValues weightedMean criterionValue Source #

A weighted mean & the individual unweighted criterion-value from which it was composed.

Instances

Instances details
(Eq weightedMean, Eq criterionValue) => Eq (WeightedMeanAndCriterionValues weightedMean criterionValue) Source # 
Instance details

Defined in BishBosh.Attribute.WeightedMeanAndCriterionValues

Methods

(==) :: WeightedMeanAndCriterionValues weightedMean criterionValue -> WeightedMeanAndCriterionValues weightedMean criterionValue -> Bool #

(/=) :: WeightedMeanAndCriterionValues weightedMean criterionValue -> WeightedMeanAndCriterionValues weightedMean criterionValue -> Bool #

(Show weightedMean, Show criterionValue) => Show (WeightedMeanAndCriterionValues weightedMean criterionValue) Source # 
Instance details

Defined in BishBosh.Attribute.WeightedMeanAndCriterionValues

Methods

showsPrec :: Int -> WeightedMeanAndCriterionValues weightedMean criterionValue -> ShowS #

show :: WeightedMeanAndCriterionValues weightedMean criterionValue -> String #

showList :: [WeightedMeanAndCriterionValues weightedMean criterionValue] -> ShowS #

NFData weightedMean => NFData (WeightedMeanAndCriterionValues weightedMean criterionValue) Source # 
Instance details

Defined in BishBosh.Attribute.WeightedMeanAndCriterionValues

Methods

rnf :: WeightedMeanAndCriterionValues weightedMean criterionValue -> () #

(Real criterionValue, Real weightedMean) => ShowFloat (WeightedMeanAndCriterionValues weightedMean criterionValue) Source # 
Instance details

Defined in BishBosh.Attribute.WeightedMeanAndCriterionValues

Methods

showsFloat :: (Double -> ShowS) -> WeightedMeanAndCriterionValues weightedMean criterionValue -> ShowS Source #

Constants

criterionValuesTag :: String Source #

Qualifies output.

weightedMeanTag :: String Source #

Qualifies output.

Functions

negateWeightedMean :: Num weightedMean => WeightedMeanAndCriterionValues weightedMean criterionValue -> WeightedMeanAndCriterionValues weightedMean criterionValue Source #

  • Negate the weightedMean, but leave the criterion-values unaltered.
  • This can be used to assess the fitness of a position from the perspective of one's opponent.

Constructor

mkWeightedMeanAndCriterionValues :: weightedMean -> [criterionValue] -> WeightedMeanAndCriterionValues weightedMean criterionValue Source #

Constructor