cfand, cfor

Gamma: Version 4.0
Prev |  | Next

# `cfand`, `cfor`

`cfand`, `cfor` -- perform `and` and `or` functions with confidence factors.

## Syntax

    cfand (!s_exp[,!s_exp]...)
    cfor (!s_exp[,!s_exp]...)

## Arguments

`condition`

  Any Gamma or Lisp expression.

## Returns

A confidence factor, an integer between 0 and 100.

## Description

These functions determine the confidence factor of one or more expressions. `cfand` returns the lowest confidence factor among all of the passed `conditions`, while `cfor` returns the highest confidence factor among the `conditions`.

## Example

        Gamma> a = 3;
        3
        Gamma> b = 4;
        4
        Gamma> set_conf(a,50);
        50
        Gamma> set_conf(b,10);
        10
        Gamma> cfand(a,b);
        10
        Gamma> cfor(a,b);
        50
        Gamma>

## See Also

`conf`

Prev | Home | Next
`ceil` | Up | `conf`, `set_conf`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.