public function getVariance() {
		if ( $this->n === 0 ) {
			// The variance of the empty set is undefined.
			return NAN;
		} elseif ( $this->n === 1 ) {
			return 0.0;
		} else {
			return $this->m2 / ( $this->n - 1.0 );
		}
	}