Description Usage Arguments Value See Also Examples
It call the g
function in order to make the inference,
i.e., map inputs u
to output y
.
1 |
pm |
is the |
u |
is the new |
the pm
obtained after calling g
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | cp_depth <- cp("cp_depth", c("far",
"bit far",
"good",
"close",
"very close"))
g_depth <- function(u,y){
y$w <- degree_mf(fuzzy_partitions(triangle_mf(450,450,550),
triangle_mf( 450,550,600),
trapezoid_mf(550,600,800, 1000),
triangle_mf( 800,1000,1300),
trapezoid_mf( 1000,1300,1500,1500)),u)
y
}
pm_depth <- pm(y=cp_depth, g=g_depth)
pm_depth <- pm_infer(pm_depth, 650)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.