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'.

membership(object)

membership(object) <- value

# S4 method for FuzzyHits
membership(object)

# S4 method for FuzzyHits
membership(object) <- value

Arguments

object

An object of class inheriting from FuzzyHits.

value

An object of a class specified in the S4 method signature or as outlined in 'Accessors'.

Accessors

membership(object) returns a numeric vector of membership function for each relation.

See also

Examples

# 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
#> FuzzyHits object with 6 hits and 1 metadata column: #> from to | membership #> <integer> <integer> | <numeric> #> [1] 5 11 | 0.0 #> [2] 2 15 | 0.1 #> [3] 3 5 | 0.2 #> [4] 3 4 | 0.3 #> [5] 3 5 | 0.6 #> [6] 2 11 | 0.8 #> ------- #> nLnode: 7 / nRnode: 15
# Accessors ---- membership(fh)
#> [1] 0.0 0.1 0.2 0.3 0.6 0.8
fh1 <- fh membership(fh1)[1] <- 0