Description Usage Arguments Value Examples
Granular Linguistic Model of Phenomena (GLMP) is a network of cp
and pm
objects.
that allows the designer to model computationally her/his own perceptions. The input data are introduced
into the model through 1PMs which interpret the input data and create CPs. Then, 2PMs take several CPs
as input and generate 2CPs. Of course, following the same scheme, is possible to add additional upper levels.
The glmp
constructor receive as arguments the list of pms and the method with the computational model.
1 | glmp(pms, method)
|
pms |
is the list of |
method |
is the function with the glmp computational model. The method must have two arguments: the list of
|
The generated glmp = list(pm, method)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run: glmp_method <- function(pm,input){
pm$pm_depth <- pm_infer(pm$pm_depth, input[1])
pm$pm_height <- pm_infer(pm$pm_height,input[2])
pm$pm_width <- pm_infer(pm$pm_width, input[3])
pm$pm_frame <- pm_infer(pm$pm_frame, list( pm$pm_depth$y,
pm$pm_height$y,
pm$pm_width$y)
)
pm
}
my_glmp <- glmp(list(pm_depth = pm_depth,
pm_height = pm_height,
pm_width = pm_width,
pm_frame = pm_frame),
glmp_method)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.