Description Usage Arguments Accessors Author(s) See Also Examples
This page documents the S4 generics and methods defined for objects inheriting of the FuzzyHits
class.
The FuzzyHits
class directly extends Hits
and thus inherits of all methods defined for the parent class.
In the usage below, object
represents an object of class inheriting from FuzzyHits
,
and value
is an object of a class specified in the S4 method signature or as outlined in 'Accessors'.
1 2 3 4 5 6 7 8 9 | membership(object)
membership(object) <- value
## S4 method for signature 'FuzzyHits'
membership(object)
## S4 replacement method for signature 'FuzzyHits'
membership(object) <- value
|
object |
An object of class inheriting from |
value |
An object of a class specified in the S4 method signature or as outlined in 'Accessors'. |
membership(object)
returns a numeric vector of membership function for each relation.
Kevin Rue-Albrecht
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Constructor ----
from <- c(5, 2, 3, 3, 3, 2)
to <- c(11, 15, 5, 4, 5, 11)
membership <- c(0, 0.1, 0.2, 0.3, 0.6, 0.8)
fh <- FuzzyHits(from, to, membership, 7, 15)
fh
# Accessors ----
membership(fh)
fh1 <- fh
membership(fh1)[1] <- 0
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.