perceive | R Documentation |
Examine rules in a list and remove all of them for whose other more specific
rules are present in the list. The specificity is determined by calling the
is.specific()
function. This operation is a part of the
pbld()
inference mechanism.
perceive(
rules,
fsets,
type = c("global", "local"),
fired = NULL,
vars = NULL,
specs = NULL
)
rules |
A list of character vectors where each element is a fuzzy set name (a predicate) and thus each such vector forms a rule. |
fsets |
A valid instance of the |
type |
The type of perception to use. It can be either |
fired |
If |
vars |
A deprecated parameter that must be |
specs |
A deprecated parameter that must be |
In other words, for each rule x
in the rules
list, it searches for another
rule y
such that is.specific(y, x)
returns TRUE. If yes then
x
is removed from the list.
A modified list of rules for which no other more specific rule exists. (Each rule is a vector.)
Michal Burda
is.specific()
, fsets()
, fcut()
, lcut()
# prepare fsets
f <- lcut(data.frame(a=0:1, b=0:1, c=0:1, d=0:1))
# run perceive function: (sm.a, bi.c) has
# more specific rule (ve.sm.a, bi.c)
perceive(list(c('sm.a', 'bi.c'),
c('ve.sm.a', 'bi.c'),
c('sm.b', 'sm.d')),
f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.