infer_rules: Make the inference

Description Usage Arguments Value Examples

Description

Make an inference with the fuzzy rules.

Usage

1
infer_rules(rules, operator, input)

Arguments

rules

the set of fuzzy rules.

operator

the operator object.

input

is the list of validity degrees related to the input cp objects.

Value

A vector that containd the result of the inference.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## In the example the input of the fuzzy rule correspond with two CPs and each CP has 3
## linguistic variables, e.g, {"bad", "good", "very good"}. The output also
## correspond with a CP with 3 linguistic variables.

 infer_rules(fuzzy_rules(fuzzy_rule(0,0,1, 0,0,1, 0,0,1),
                   fuzzy_rule(1,0,0, 1,0,0, 1,0,0),
                   fuzzy_rule(0,1,0, 0,1,0, 0,1,0)),
             operator(min, max),
             list(c(0,0.5,0.5),c(0.5,0.5,0)))
## [1] 0.0 0.5 0.0

Example output

[1] 0.0 0.5 0.0

rLDCP documentation built on May 2, 2019, 2:30 a.m.

Related to infer_rules in rLDCP...