add method

Adds a number n to the computation.

Implementation

@override
StandardDeviationComputerNum add(num n) {
  _length++;
  _sum += n;
  _squaresSum += n * n;

  _standardDeviation = null;

  return this;
}