
Section 6. Data Table Declarations and Output Processing Instructions
6-12
Parameter
& Data Type
Enter
Reps
Constant
The number of averages to calculate. When Reps is greater than one, the source must be
an array.
Source
Variable
The name of the Variable that is to be averaged.
DataType
A code to select the data storage format.
Constant
Code Data Format
IEEE4 IEEE 4 byte floating point
FP2 Campbell Scientific 2 byte floating point
DisableVar
Constant,
Variable, or
Expression
A non-zero value will disable intermediate processing. Normally 0 is entered so all inputs
are processed. For example, in the Average instruction, when the disable variable is ≠0
the current input is not included in the average. The average that is eventually stored is
the average of the inputs that occurred while the disable variable was 0.
Value Result
0 Process current input
≠ 0
Do not process current input
Covariance (NumVals, Source, DataType, DisableVar, NumCov)
Calculates the covariance of values in an array over time. The Covariance of
and
is calculated as:
()
Cov X Y
XY
n
XY
n
ii
i
n
i
i
n
i
i
n
(,)=
⋅
−
⋅
===
∑∑∑
111
2
where
n is the number of values processed over the output interval and X
i
and
Y
i
are the individual values of
and
.
Parameter&
Data Type
Enter
NumVals
Constant
The number of elements in the array to include in the covariance calculations
Source
Variable
Array
The variable array that contains the values from which to calculate the
covariances. If the covariance calculations are to start at some element of the
array later than the first, be sure to include the element number in the source
(e.g., X(3)).
DataType
A code to select the data storage format.
Constant
Alpha Code Data Format
IEEE4 IEEE 4 byte floating point
FP2 Campbell Scientific 2 byte floating point
DisableVar
Constant,
A non-zero value will disable intermediate processing. When the disable variable is ≠0
the current input is not included in the Covariance.
Variable, or
Value Result
Expression 0 Process current input
≠ 0
Do not process current input
Comentários a estes Manuais