R6 class for a fuzzy concept with sparse internal representation
Source:R/sparse_concept.R
Concept.RdThis class implements the data structure and methods for fuzzy concepts.
Methods
Method print()
Prints the concept to console
Examples
# Build a formal context and find its concepts
fc_planets <- FormalContext$new(planets)
fc_planets$find_concepts()
# Print the first three concepts
fc_planets$concepts[1:3]
#> A set of 3 concepts:
#> 1: ({}, {small, medium, large, near, far, moon, no_moon})
#> 2: ({Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto}, {})
#> 3: ({Uranus, Neptune}, {medium, far, moon})
# Select the first concept:
C <- fc_planets$concepts$sub(1)
# Get its extent and intent
C$get_extent()
#> {}
C$get_intent()
#> {small, medium, large, near, far, moon, no_moon}