Test
Author: B F Schutz
Version : 1.0
Input Types: GraphType,
Const
Output Types: Const
Date: 19 Aug 2000
Contents
Description of Test
The unit called Test computes one of a number of true/false tests of the
input data set. If the test evaluates to true, then the unit outputs a
Const containing the number 1; if false, the output is 0. The input data
set may be a GraphType or Const data set. If GraphType, the test is applied
to the real part of the first dependent data set held in the data type.
This can be a matrix of any size and dimensionality.
The output Const can be used by units like If to take actions on the
data set.
Tests Available
The test is determined by choices made in the parameter window. The user
chooses a test and a value. For example, if the test chosen is "mean>(value)"
and if the user sets the parameter value to 0, then the test will evaluate
to true if the mean value of the elements of the data set is positive.
The value can be set to any real number; its default is 0.0. Twelve tests
are available:
-
mean>(value)
-
mean>=(value)
-
mean<=(value)
-
mean<(value)
-
max>(value)
-
max>=(value)
-
max<=(value)
-
max<(value)
-
min>(value)
-
min>=(value)
-
min<=(value)
-
min<(value)
The mean is computed as the average of all the elements of the data set.
Max is the greatest value of all the elements of the data set. Min is the
least value of all the elements of the data set. The default test is the
first one, mean>(value).
Using Test
The user should open the parameter window to choose the appropriate test.
The choice box is used to select the test. The slider is used to set the
value used in the test. The defaults give the test "mean > 0". The parameter
window is shown below:
