input slice
true (default) if computing population variance, false otherwise
variance of slice
See Implementation