FuzzyHits-methods: Methods for 'FuzzyHits' Objects

Description Usage Arguments Accessors Author(s) See Also Examples

Description

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

Usage

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

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.

Author(s)

Kevin Rue-Albrecht

See Also

FuzzyHits, FuzzySets.

Examples

 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

kevinrue/unisets documentation built on May 15, 2020, 10:48 p.m.