Click or drag to resize
Accord.NET (logo)

PiecewiseLinearFunctionGetMembership Method

Calculate membership of a given value to the piecewise function.

Namespace:  Accord.Fuzzy
Assembly:  Accord.Fuzzy (in Accord.Fuzzy.dll) Version: 3.6.0
Syntax
public float GetMembership(
	float x
)
Request Example View Source

Parameters

x
Type: SystemSingle
Value which membership will to be calculated.

Return Value

Type: Single
Degree of membership [0..1] of the value to the fuzzy set.

Implements

IMembershipFunctionGetMembership(Single)
Exceptions
ExceptionCondition
NullReferenceExceptionPoints of the membership function are not initialized.
See Also