bishbosh-0.1.3.0: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Metric.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

Constants

criterionValuesTag :: String Source #

Qualifies output.

weightedMeanTag :: String Source #

Qualifies output.

Functions

negateWeightedMean :: WeightedMeanAndCriterionValues -> WeightedMeanAndCriterionValues 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.

calculateWeightedMean :: [(CriterionValue, CriterionWeight)] -> WeightedMeanAndCriterionValues Source #

  • Calculates the weighted mean of the specified criterion-values using the corresponding criterion-weights.
  • Also writes individual unweighted criterionValues, to facilitate post-analysis; if the corresponding weight is 0, evaluation of the criterion is avoided, for efficiency.
  • CAVEAT: if all weights are 0, then the result is indeterminate.

Constructor