Panasonic FP7 Series Command Reference Manual page 481

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents