Programmer Guide/SPU Reference/STAT: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(One intermediate revision 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

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