Instance Property


The standard deviation of the distribution (also called sigma).


var deviation: Float { get }


One deviation is defined such that 68.27% of values generated by the distribution are within one deviation of the mean value, 95% of generated values are within two deviations, and 100% of generated values are within three deviations. Values within two deviations of the mean have a 95% probabilty, and values within three deviations have a 100% probability.

This property is read-only—GameplayKit automatically calculates its value based on those of the inherited lowestValue and highestValue properties such that those values are each three deviations away from the mean (deviation = (highest - lowest) / 6).

See Also

Working with Characteristics of a Distribution

var mean: Float

The mean value of the distribution (also called the expected value or median).