standardDeviation method

double standardDeviation()

Calculate the standard deviation using all values in the double list.

If there is no element, 0.0 is returned.

doubleのリストのすべての値を用いて標準偏差を算出します。

要素がない場合は0.0が返されます。

Implementation

double standardDeviation() {
  if (isEmpty) {
    return 0.0;
  }
  return sqrt(variance());
}