Section 8. Processing and Math Instructions
8-25
Spatial Standard Deviation
Used to find the standard deviation of an array.
Syntax
StdDevSpa(
Dest, Swath, Source
)
Remarks
Spatial standard deviation.
Dest
X i
X i
swath
swath
i j
i j swath
i j
i j swath
=
−
⎛
⎝
⎜
⎞
⎠
⎟
⎛
⎝
⎜
⎞
⎠
⎟
⎛
⎝
⎜
⎞
⎠
⎟
=
= +
=
= +
∑
∑
( )
( )
/
/
2
2
1
2
Where
X(j)
= Source
Parameter
& Data Type
Enter
StdDevSpa Parameters
Dest
Variable or
Array
The variable in which to store the results of the instruction.
Swath
Constant
The number of values of the array over which to perform the specified operation.
Source
Array
The name of the variable array that is the input for the instruction.
Tangent Function
Returns the tangent of an angle.
Syntax
Tan(
angle
)
Remarks
The argument
angle
can be any valid numeric expression measured in radians.
Tan takes an
angle
and returns the ratio of two sides of a right triangle. The ratio is
the length of the side opposite an angle divided by the length of the side adjacent to
the angle.
To convert degrees to radians, multiply degrees by Pi/180. To convert radians to
degrees, multiply radians by 180/Pi. Pi is approximately 3.141593.
Tan Function Example
The example uses Tan to calculate the tangent of an angle from a Volt(1) input.
Dim Degrees, Pi, Radians, Ans
'Declare variables.
Pi = 4 * Atn(1)
'Calculate Pi.
Degrees = Volt(1)
'Get user input.
Radians = Degrees * (Pi / 180)
'Convert to radians.
Ans =
Tan(
Radians
)
‘The Tangent of Degrees.
Содержание CR9000
Страница 6: ...CR9000 Table of Contents iv This is a blank page ...
Страница 22: ...CR9000 Overview OV 16 This is a blank page ...
Страница 26: ...Section 1 Installation 1 4 CR9000 FIGURE 1 1 3 CR9000 Battery Pack ...
Страница 72: ...Section 3 CR9000 Measurement Details 3 28 This is a blank page ...
Страница 88: ...Section 5 Program Declarations 5 6 This is a blank page ...
Страница 217: ...This is a blank page ...