cp {rLDCP} | R Documentation |
Define the CP
Description
In general, CP corresponds with specific parts of the analyzed phenomenon at a certain degree of granularity. To create a computational model of the analyzed phenomenon, the designer analyzes the everyday use of natural language about the monitored phenomenon with the aim of identifying different parts (units of information or granules) based on his/her subjective perceptions. According with Zadeh (1996), a granule is a clump of elements which are drawn together by indistinguishability, similarity, proximity or functionality. The GLMP handles granules by using CPs.
Usage
cp(name, a, b = NULL, r = NULL)
Arguments
name |
is the identifier of the CP. |
a |
is a vector |
b |
is a vector |
r |
is a vector |
Value
The generated CP = list(a, w, r, b, wb)
where w
and wb
are vectors with the validity degrees (wi and wbi in [0,1]) of the linguistic expressions in a
and b
respectively.
These vectors are initialized with 0.
Examples
myCP <-cp("myCP", c("bad", "good", "very good"))
myCP <- cp("myCP", c("bad", "good", "very good"), c("low", "moderate", "high"))
myCP <- cp("myCP", c("bad", "good", "very good"), r=c(1,0.8,0.9))
myCP <- cp("myCP", c("bad", "good", "very good"), c("low", "moderate", "high"), c(1,0.8,0.9))