Programmer Guide/SPU Reference/STAT: Difference between revisions
From STX Wiki
Jump to navigationJump to search
(initial import) |
No edit summary |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | {{DISPLAYTITLE:{{SUBPAGENAME}}}} | ||
Mean and standard deviation of input <var>A</var>. | |||
==<code>[SPU STAT <var>A</var> OUT <var>MY SIGMA</var>]</code>== | |||
== | {|class="einrahmen" | ||
!In !!Out | |||
<code>STAT <var> | |||
{| | |||
|- | |- | ||
| | |<var>A<sub>number</sub></var> | ||
|<math>MY=A</math><BR><math>SIGMA=0</math> | |||
| | |||
= | |||
|- | |- | ||
| | |<var>A<sub>vector</sub></var> | ||
| | |<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> | |||
;See also: | |||
<[[../#Signal Processing Atoms|SP-atoms]]> | |||
<!-- AN, 2.5.2011 --> | |||
[[ | |||
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 | |
Avector |
with: n = length of Avector
- See also
<SP-atoms>