Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- The unweighted values of each criterion used to assess the fitness of a position, & the resulting weighted mean.
Synopsis
- data WeightedMeanAndCriterionValues
- criterionValuesTag :: String
- weightedMeanTag :: String
- negateWeightedMean :: WeightedMeanAndCriterionValues -> WeightedMeanAndCriterionValues
- calculateWeightedMean :: [(CriterionValue, CriterionWeight)] -> WeightedMeanAndCriterionValues
- mkWeightedMeanAndCriterionValues :: WeightedMean -> [CriterionValue] -> WeightedMeanAndCriterionValues
Types
Data-types
data WeightedMeanAndCriterionValues Source #
A weighted mean & the individual unweighted criterion-values from which it was composed.
Instances
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
mkWeightedMeanAndCriterionValues :: WeightedMean -> [CriterionValue] -> WeightedMeanAndCriterionValues Source #
Constructor.