Learn R Programming

relations (version 0.3-3)

incidence: Relation Incidences

Description

Determine the incidences of a relation.

Usage

relation_incidence(x)

Arguments

x
an object inheriting from class relation.

Value

  • For a $k$-ary relation, a $k$-dimensional numeric array with values in the unit interval inherting from class relation_incidence whose elements give the memberships of the corresponding $k$-tuples are contained in the relation (for a crisp relation, a binary (0/1) array with elements indicating whether the corresponding tuples are contained in the relation or not).

See Also

relation; relation_incidence<- for modifying the incidences.

Examples

Run this code
R <- as.relation(c(A = 1, B = 2, C = 3))
relation_incidence(R)

Run the code above in your browser using DataLab