16-Bit device: Output content
[D], [D]+1 Stores variance.
[D]+2, [D]+3 Stores standard deviation.
■
Processing
Method for calculating variance and standard deviation
(Conditions) N data x
1
, x
2
,...x
n
1. Mean value
2. Variance
3. Standard deviation
m =
x
1
+ x
2
+ ... + x
n
N
σ
2
=
(x
1
- m)
2
+ (x
2
- m)
2
+ ... + (x
n
- m)
2
N
σ
2
σ =
Example 1) Operation unit: 16 bits (US)
[n]...U5
DT10
[S]...DT10
DT11
DT12
DT13
DT14
DT100
DT101
DT102
DT103
SF 2.00E+00
Variance
Standard deviation
* Single-precision real number (32-bit)
* Single-precision real number (32-bit)
[D]...DT100
U 2
U 4
U 5
U 6
U 8
<Calculation range>
<Output result>
SF 4.00E+00
The following results are stored.
● Variance of S to S+4 is stored in (D, D+1).
● Standard deviation of S to S+4 is stored in (D+2, D+3).
Example 2) Operation unit: 16 bits (SS)
[n]...U5
DT10
[S]...DT10
DT11
DT12
DT13
DT14
DT100
DT101
DT102
DT103
SF 2.4400E+01
Variance
Standard deviation
* Single-precision real number (32-bit)
* Single-precision real number (32-bit)
[D]...DT100
K 16
K -20
K 32
K -35
K -12
<Calculation range>
<Output result>
SF 5.9536E+02
The following results are stored.
10.8 STDDEV (Acquiring the Variance and Standard Deviation)
WUME-FP7CPUPGR-12 10-31