StringTools[ArithmeticMean] - compute the arithmetic mean of the characters (bytes) in a string
|
Calling Sequence
|
|
ArithmeticMean( s )
|
|
Description
|
|
•
|
The ArithmeticMean(s) command returns the arithmetic mean of the byte values of the characters present in the string s. The mean is computed as a floating-point number in hardware precision and is returned as a Maple float.
|
•
|
The arithmetic mean of a sufficiently long random string should be close to .
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
|
|
Download Help Document
Was this information helpful?