Programmer Guide/SPU Reference/STAT: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 9: Line 9:
|-
|-
|<var>A<sub>vector</sub></var>  
|<var>A<sub>vector</sub></var>  
|<math>MY=\frac{1}{n}\sum_{i=0}^{n-1}A[i]</math>
|<math>MY=\frac{1}{n}\sum_{i=0}^{n-1}A[i]</math><BR><math>SIGMA=\sqrt{\frac{1}{n-1}\sum_{i=0}^{n-1}(A[i]-MY)^2}</math>
|}
|}
with: n = length of <var>A<sub>vector</sub></var>
with: n = length of <var>A<sub>vector</sub></var>

Revision as of 09:17, 6 May 2011

Mean and standard deviation of input A.

[SPU SUM A OUT Y]

In Out
Anumber {\displaystyle MY=A}
{\displaystyle SIGMA=0}
Avector {\displaystyle MY={\frac {1}{n}}\sum _{i=0}^{n-1}A[i]}
{\displaystyle SIGMA={\sqrt {{\frac {1}{n-1}}\sum _{i=0}^{n-1}(A[i]-MY)^{2}}}}

with: n = length of Avector

See also

<SP-atoms>

Navigation menu

Personal tools