MembershipFunction
public struct MembershipFunction<U>
Undocumented
-
Undocumented
Declaration
Swift
public typealias FunctionType = (U) -> Grade
-
Undocumented
Declaration
Swift
public init(_ function: @escaping FunctionType)
-
Undocumented
Declaration
Swift
public func callAsFunction(_ u: U) -> Grade
-
Undocumented
Declaration
Swift
static var zero: `Self` { get }
-
Undocumented
Declaration
Swift
static var one: `Self` { get }
-
Undocumented
Declaration
Swift
static func fuzzySingleton(_ onlyMember: U) -> MembershipFunction<U>
-
Undocumented
Declaration
Swift
static func fromCrispSet(_ set: Set<U>) -> MembershipFunction<U>
-
Undocumented
Declaration
Swift
static func fromDictionary(_ dictionary: [U : Grade]) -> MembershipFunction<U>
-
Undocumented
Declaration
Swift
static func rightOpen(slopeStart a: U, slopeEnd b: U) -> MembershipFunction<U>
-
Undocumented
Declaration
Swift
static func leftOpen(slopeStart a: U, slopeEnd b: U) -> MembershipFunction<U>
-
Undocumented
Declaration
Swift
static func triangular(minimum a: U, peak b: U, maximum c: U) -> MembershipFunction<U>
-
Undocumented
Declaration
Swift
static func trapezoidal( leftSlopeStart a: U, leftSlopeEnd b: U, rightSlopeStart c: U, rightSlopeEnd d: U ) -> Self
-
Undocumented
Declaration
Swift
static func gaussian(mean c: Double = 0, stdev s: Double = 1) -> MembershipFunction<U>
-
Undocumented
Declaration
Swift
static func bell(width a: Double, shape b: Double, center c: Double) -> MembershipFunction<U>
-
Undocumented
Declaration
Swift
static func sigmoid(width a: Double, center c: Double) -> MembershipFunction<U>