Download FuzzyCLIPS Version 6.04A User's Guide

Transcript
5.9 FuzzyCLIPS Commands and Functions
5.9.6
sion)
Controlling the Fuzzy Set Display Precision (set-fuzzy-display-precision, get-fuzzy-display-preci-
Command: set-fuzzy-display-precision
Syntax:
(set-fuzzy-display-precision <integer>)
Purpose:
When fuzzy facts are displayed the fuzzy set values are displayed in floating point format.
This function allows the number of significant digits displayed after the decimal point to be
set. The <integer> argument is an integer value between 2 and 16. If it is less than 2 it is set
to 2 and if it is greater than 16 it is set to 16. The default value is 4. Note that clear will not
reset this value to 4.
Example 41
(set-fuzzy-display-precision 16)
(facts)
f-0
(speed_error more_or_less large_positive) CF 1.00
( (0.0 0.0)
(0.1 0.3162277660168379) (0.2 0.4472135954999579)
(0.3 0.5477225575051661) (0.35 0.5916079783099616)
(0.4 0.6324555320336759) (0.5 0.7071067811865476)
(0.6 0.7745966692414834) (0.7 0.8366600265340756)
(0.8 0.8944271909999159) (0.9 0.9486832980505138)
(1.0 1.0)
)
(set-fuzzy-display-precision 2)
(facts)
f-0
(speed_error more_or_less large_positive) CF 1.00
( (0.0 0.0)
(0.1 0.32) (0.2 0.45)
(0.3 0.55) (0.35 0.59)
(0.4 0.63) (0.5 0.71)
(0.6 0.77) (0.7 0.84)
(0.8 0.89) (0.9 0.95)
(1.0 1.0)
Orchard
)
63