AForge.Fuzzy.SingletonFunction.GetMembership C# (CSharp) Method

GetMembership() public method

Calculate membership of a given value to the singleton function.
public GetMembership ( float x ) : float
x float Value which membership will to be calculated.
return float
        public float GetMembership( float x )
        {
            // if x is the support, returns 1, otherwise, returns 0
            return ( support == x ) ? 1 : 0;
        }
    }