[TOC]

std

Standard deviation

Introduction

For a given vector , let be the mean of all elements in . Then, the standard deviation can be computed by one of the following formulas:

If contains NaN, the standard deviation will be NaN.

Usages

s = std(A)

s = std(A, w)

s = std(A, w, k)