DiscreteMutableFuzzySet
public struct DiscreteMutableFuzzySet<Universe> : ExpressibleByDictionaryLiteral where Universe : Hashable
extension DiscreteMutableFuzzySet: AnyFuzzySetRepresentable
extension DiscreteMutableFuzzySet: FuzzySet
extension DiscreteMutableFuzzySet: FuzzySetOperations
extension DiscreteMutableFuzzySet: CustomStringConvertible
extension DiscreteMutableFuzzySet: FuzzyImplicationCapable
extension DiscreteMutableFuzzySet: FuzzyProposition
Undocumented
-
Undocumented
Declaration
Swift
public private(set) var grades: [Universe : Grade] { get }
-
Undocumented
Declaration
Swift
public private(set) var defaultGrade: Grade { get }
-
Undocumented
Declaration
Swift
public init(_ elementToGradeMap: [Universe : Grade], defaultGrade: Grade = 0)
-
Declaration
Swift
public init(dictionaryLiteral elements: (Universe, Grade)...)
-
Undocumented
Declaration
Swift
public func eraseToAnyFuzzySet() -> AnyFuzzySet<Universe>
-
Complexity
O(1)Declaration
Swift
public func grade(forElement element: Universe) -> Grade
-
Undocumented
Declaration
Swift
public func alphaCut(_ alpha: Grade) -> DiscreteMutableFuzzySet<Universe>
-
Undocumented
Declaration
Swift
public func complement(method: ComplementFunction = .standard) -> DiscreteMutableFuzzySet<Universe>
-
Undocumented
Declaration
Swift
public func intersection(_ other: `Self`, method: TNormFunction = .minimum) -> DiscreteMutableFuzzySet<Universe>
-
Undocumented
Declaration
Swift
public func union(_ other: `Self`, method: SNormFunction) -> DiscreteMutableFuzzySet<Universe>
-
Undocumented
Declaration
Swift
public func difference(_ other: `Self`, method: DifferenceFunction = .tNormAndComplement(.minimum, .standard)) -> DiscreteMutableFuzzySet<Universe>
-
Undocumented
Declaration
Swift
public func symmetricDifference(_ other: `Self`, method: SymmetricDifferenceFunction = .absoluteValue) -> DiscreteMutableFuzzySet<Universe>
-
Undocumented
Declaration
Swift
public func power(_ n: Double) -> DiscreteMutableFuzzySet<Universe>
-
Complexity
O(1)Declaration
Swift
mutating func setGrade(_ grade: Grade, forElement element: Universe)
-
Undocumented
Declaration
Swift
subscript(element: Universe) -> Grade { get set }
-
Undocumented
Declaration
Swift
mutating func applyAlphaCut(_ alpha: Grade)
-
Undocumented
Declaration
Swift
mutating func formComplement(method: ComplementFunction = .standard)
-
Undocumented
Declaration
Swift
mutating func formIntersection(_ other: `Self`, method: TNormFunction = .minimum)
-
Undocumented
Declaration
Swift
mutating func formUnion(_ other: `Self`, method: SNormFunction = .maximum)
-
Undocumented
Declaration
Swift
mutating func formDifference(_ other: `Self`, method: DifferenceFunction = .tNormAndComplement(.minimum, .standard))
-
Undocumented
Declaration
Swift
mutating func formSymmetricDifference(_ other: `Self`, method: SymmetricDifferenceFunction = .absoluteValue)
-
Undocumented
Declaration
Swift
mutating func applyPower(_ n: Double)
-
Undocumented
Declaration
Swift
var support: Set<Universe> { get }
-
Undocumented
Declaration
Swift
var core: Set<Universe> { get }
-
Undocumented
Declaration
Swift
var height: Grade { get }
-
Undocumented
Declaration
Swift
var isNormal: Bool { get }
-
Undocumented
Declaration
Swift
static func fromCrispSet(_ set: Set<Universe>) -> DiscreteMutableFuzzySet<Universe>
-
Pretty-print contents of
self
using Zadeh’s notation.Declaration
Swift
public var description: String { get }
-
Undocumented
Declaration
Swift
func makeIterable() -> IterableFuzzySet<Universe, Dictionary<Universe, Grade>.Keys>
-
Undocumented
Declaration
Swift
func makeIterable<S>(over sequence: S) -> IterableFuzzySet<Universe, S> where Universe == S.Element, S : Sequence
-
Undocumented
Declaration
Swift
public func implication(_ other: `Self`, method: ImplicationMethod = .mamdani) -> DiscreteMutableFuzzySet<Universe>
-
Undocumented
Declaration
Swift
public func apply(_ x: Universe, settings: OperationSettings) -> Grade
-
Undocumented
Declaration
Swift
func makeIterable() -> IterableFuzzySet<Universe, Universe.AllCases>