Programmer Guide/SPU Reference/STAT: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
Mean and standard deviation of input <var>A</var>.
Mean and standard deviation of input <var>A</var>.
==<code>[SPU SUM <var>A</var> OUT <var>Y</var>]</code>==
==<code>[SPU STAT <var>A</var> OUT <var>MY SIGMA</var>]</code>==
{|class="einrahmen"
{|class="einrahmen"
!In !!Out
!In !!Out
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>

Latest revision as of 09:20, 6 May 2011

Mean and standard deviation of input A.

[SPU STAT A OUT MY SIGMA]

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