<s> import arrayfire as af <EOL> from . import _util <EOL> def simple_statistics ( verbose = False ) : <EOL> display_func = _util . display_func ( verbose ) <EOL> print_func = _util . print_func ( verbose ) <EOL> a = af . randu ( <NUM_LIT:5> , <NUM_LIT:5> ) <EOL> b = af . randu ( <NUM_LIT:5> , <NUM_LIT:5> ) <EOL> w = af . randu ( <NUM_LIT:5> , <NUM_LIT:1> ) <EOL> display_func ( af . mean ( a , dim = <NUM_LIT:0> ) ) <EOL> display_func ( af . mean ( a , weights = w , dim = <NUM_LIT:0> ) ) <EOL> print_func ( af . mean ( a ) ) <EOL> print_func ( af . mean ( a , weights = w ) ) <EOL> display_func ( af . var ( a , dim = <NUM_LIT:0> ) ) <EOL> display_func ( af . var ( a , isbiased = True , dim = <NUM_LIT:0> ) ) <EOL> display_func ( af . var ( a , weights = w , dim = <NUM_LIT:0> ) ) <EOL> print_func ( af . var ( a ) ) <EOL> print_func ( af . var ( a , isbiased = True ) ) <EOL> print_func ( af . var ( a , weights = w ) ) <EOL> display_func ( af . stdev ( a , dim = <NUM_LIT:0> ) ) <EOL> print_func ( af . stdev ( a ) ) <EOL> display_func ( af . var ( a , dim = <NUM_LIT:0> ) ) <EOL> display_func ( af . var ( a , isbiased = True , dim = <NUM_LIT:0> ) ) <EOL> print_func ( af . var ( a ) ) <EOL> print_func ( af . var ( a , isbiased = True ) ) <EOL> display_func ( af . median ( a , dim = <NUM_LIT:0> ) ) <EOL> print_func ( af . median ( w ) ) <EOL> print_func ( af . corrcoef ( a , b ) ) <EOL> _util . tests [ '<STR_LIT>' ] = simple_statistics </s>
