Campbell CR800 Dokumentacja Strona 229

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 324
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 228
Section 8. Processing and Math Instructions
RMSSpa (Dest, Swath, Source)
Used to compute the RMS value of an array.
Syntax
RMSSpa(Dest, Swath, Source)
Remarks
Spatial RMS, Calculate the root mean square of values in an array.
()
Dest
Xi
s
wath
ij
ijswath
=
=
=+
()
2
Where X(j) = Source
Parameter
& Data Type
Enter
Dest
Variable
The variable in which to store the RMS value.
Swath
Constant
The number of values of the array to include in the RMS calculation.
Source
Array
The name of the variable array that is the input for the instruction.
RND (Source)
The RND function is used to generate a random number.
Syntax
RND( source )
Remarks
The RND function returns a single value less than 1 but greater than or equal
to 0.
The same random-number sequence is generated each time the instruction is
encountered because each successive call to the RND function uses the
previous random number as a seed for the next number in the random-number
sequence.
The value of the Number argument determines how the random number will be
generated:
Value Description
< 0 The same number each time, as determined by Number
> 0 The next random number in the sequence
= 0 The number most recently generated
Number omitted The next random number in the sequence
To have the program generate a different random-number sequence each time
it is run, use the Randomize statement with no Number argument to initialize
the random-number generator before RND is called.
8-27
Przeglądanie stron 228
1 2 ... 224 225 226 227 228 229 230 231 232 233 234 ... 323 324

Komentarze do niniejszej Instrukcji

Brak uwag