Why reinvent the wheel? I saw no point in trying to roll my own XML parser here.
They want the population variance (divide by n). The larger number is the sample variance, corresponding to a denominator of n - 1.
n
n - 1
No need to order the start and end of the sequence. For example, 1:3 yields 1, 2, 3 whilst 3:1 returns 3, 2, 1. Both vectors have the same sum!
seq
1:3
1, 2, 3
3:1
3, 2, 1
Loading collection data...
Why reinvent the wheel? I saw no point in trying to roll my own XML parser here.
They want the population variance (divide by
n
). The larger number is the sample variance, corresponding to a denominator ofn - 1
.No need to order the start and end of the
seq
uence. For example,1:3
yields1, 2, 3
whilst3:1
returns3, 2, 1
. Both vectors have the same sum!