change mean reduction to return floats instead of ints, add equivalence example script
