Example #1
0
        private List <Player> Support(List <Player> entries, IMembershipFunction function)
        {
            List <Player> result = new List <Player>();

            entries.ForEach((e) => {
                if (function.GetMembership(FieldExtractor(e)) > 0)
                {
                    result.Add(e);
                }
            });
            return(result);
        }
Example #2
0
 /// <summary>
 /// Calculate membership of a given value to the fuzzy set.
 /// </summary>
 ///
 /// <param name="x">Value which membership needs to be calculated.</param>
 ///
 /// <returns>Degree of membership [0..1] of the value to the fuzzy set.</returns>
 ///
 public float GetMembership(float x)
 {
     return(function.GetMembership(x));
 }