Campbell CR800 Spezifikationen Seite 208

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 324
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 207
Section 8. Processing and Math Instructions
AvgSpa (Dest, Swath, Source)
Computes the spatial average of the values in the source array.
Syntax
AvgSpa (Dest, Swath, Source)
Remarks
Find the average of the values in the given array and place the result in the
variable named in Dest. The Source must be a particular element in an array
(e.g., Temp(1)); it is the first element in the array to include in the average.
The Swath is the number of elements to include in the average.
Dest
Xi
s
wath
ij
ijswath
=
=
=
+
()
Where X(j) = Source
Parameter
& Data Type
Enter
Dest
Variable
The variable in which to store the results of the instruction.
Swath
Constant
The number of values of the source array to average.
Source
Array
The name of the variable array that is the input for the instruction.
Average Spatial Output Example
This example uses AvgSpa to find the average value of the five elements
Temp(6) through Temp(10) and store the result in the variable AvgTemp.
AvgSpa(AvgTemp, 5, Temp(6))
AvgRun (Dest, Reps, Source, Number)
Calculates a running average of a measurement or calculated value.
Syntax
AvgRun (Dest, Reps, Source, Number)
Remarks
AvgRun is used to create a running average. A running average is the average
of the last N values where N is the number of values.
Dest
X
N
i
i
iN
=
=
=
1
Where
is the most recent value of the source variable and is the
previous value (
is the oldest value included in the average, i.e., N-1 values
back from the most recent).
X
N
X
N 1
X
1
8-6
Seitenansicht 207
1 2 ... 203 204 205 206 207 208 209 210 211 212 213 ... 323 324

Kommentare zu diesen Handbüchern

Keine Kommentare