STAT
From STX Wiki
Jump to navigationJump to search
Mean and standard deviation of input A.
[SPU STAT A OUT MY SIGMA]
In | Out |
---|---|
Anumber | |
Avector |
with: n = length of Avector
- See also
<SP-atoms>
Mean and standard deviation of input A.
[SPU STAT A OUT MY SIGMA]
In | Out |
---|---|
Anumber |
M
Y
=
A
{\displaystyle MY=A}
S I G M A = 0 {\displaystyle SIGMA=0} |
Avector |
M
Y
=
1
n
∑
i
=
0
n
−
1
A
[
i
]
{\displaystyle MY={\frac {1}{n}}\sum _{i=0}^{n-1}A[i]}
S I G M A = 1 n − 1 ∑ i = 0 n − 1 ( A [ i ] − M Y ) 2 {\displaystyle SIGMA={\sqrt {{\frac {1}{n-1}}\sum _{i=0}^{n-1}(A[i]-MY)^{2}}}} |
with: n = length of Avector
<SP-atoms>