Usage
The operator bcd1 returns the ``eigenvalue'' corresponding to the
numerator variance matrix for the canonical direction for a
belief comparison, and the operator bcd2 returns similarly the
``eigenvalue'' corresponding to the denominator variance matrix.
It is an error if the index i is smaller than one or greater than the
dimension of the variance matrices subjected to the comparison.
This operator returns the coefficient of the component in the
assignment . For example, suppose that you have assigned
. Then . The operator takes into
account any indices and evaluates functional parts accordingly. In cases
where
the second argument is represented more than once in an
assignment, the coefficients are accumulated. Where the argument
is not part of the assignment, a coefficient of zero is returned.
The following examples may
make clear the use of this operator.
BD>assign : fg.i.j=(11-5+.i+.j)+(4*.j+.i)b.1+(.j)c.12.12+(15)+(.i)+(2+.j)b.i+(.i-2)c.j.i
BD>print : (ascf (fg.1.7,b.1)) - should be 38
BD>print : (ascf (fg.2.7,b.2)) - should be 9
BD>print : (ascf (fg.12.12,c.12.12)) - should be 22
BD>print : (ascf (fg.1.124,c.124.1)) - should be -1
This returns the scalar part (or zero if there is no scalar part) of the
assignment whose name is supplied as the argument. For example, suppose
that you have assigned and . Then
and .
The operator takes into
account any indices and evaluates functional parts accordingly, as in
the following example.
BD>assign : fg.i.j=(11-5+.i+.j)+(4*.j+.i)b.1+(.j)c.12.12+(15)+(.i)+(2+.j)b.i+(.i-2)c.j.i
BD>print : (ascl (fg.2.3)) - should be 28
This is a boolean operator which returns the value unity if the argument
N is the name of a base, and zero otherwise.
This returns the number of elements, but not bases or
data-elements in the base B. If an error occurs whilst the
count operator is being processed, the number returned is zero.
This returns the number of elements or bases, but not
data-elements in the base B. If an error occurs whilst the
countb operator is being processed, the number returned is zero.
This returns the number of data-elements, in the base
B. If an error occurs whilst the countd operator is being
processed, the number returned is zero.
This returns the total number of constituents of the base B,
including data-elements, other bases and elements. If
an error occurs whilst the countd operator is being processed,
the number returned is zero.
This is a boolean operator which returns the value unity if N is the
name of a data-carrier and the data case I has been
defined for this data-carrier, and zero otherwise.
This returns the number of unused
data locations (this calculation may take some time, as it enforces a
garbage collection).
This is a boolean operator which returns the value unity if the argument
N is the name of a data carrier and zero otherwise.
This returns the number of data observations selected according to a
SELECT: command, irrespective of the setting of the
autoselect control.
This returns
the number of unused element locations (giving the number of
elements that you can still create).
This is a boolean operator which takes the value unity if the argument
N is the name of an element, and zero otherwise.
This returns the last error number, or zero if there have been no errors.
This returns the value of whichever of the two arguments is the larger.
The complement to this operator is the min operator.
An example of the use of the command is as follows, where we assume
to be the name of some constant.
BD>print : (max (23+7)(30+cos (%theta)))
This returns an integer in the range representing the current
macro channel.
This returns the value of whichever of the two arguments is the smaller.
The complement to this operator is the max operator.
An example of the use of the command is as follows, where we assume
to be the name of some constant.
BD>print : (min (23+7)(30+sin (%theta)))
This returns the area under a standardised Normal curve to
the left of the argument E, For example,
. The approximation is accurate to about
.
This returns the value of correct to 11 decimal places.
This returns an integer in the range representing the current
output channel.
This can be used to test for applications for a specific platform.
The possible values that could be returned at present, with their
implications, are as follows:
This returns the current number of belief stores as an integer. This
operand might be used with the LOCK: command, as in the
following example which locks all but the first two belief stores:
BD>for : i=3,1,stores | lock : [i]
This returns the time in seconds since the start of the program. The
timing is accurate to the nearest second for the UNIX
implementation, and to the nearest hundredth of a second for the
WINDOWS implementation.
Usage
Usage
Usage
Usage
Usage
Usage
Usage
Usage
Usage
Usage
Usage
Usage
Usage
Usage
Usage
Usage
Usage
Usage
Usage
Usage
Usage
Usage
Usage