Пример #1
0
 /// <summary>
 /// Calculates a cosine of the fuzzy angle.
 /// </summary>
 /// <param name="X">A fuzzy number represents the angle in radians.</param>
 public static FuzzyNumber Cos(FuzzyNumber X)
 {
     return(FuzzyNumber.Map(X, x => Cos(x)));
 }
Пример #2
0
 /// <summary>
 /// Calculates a value of the fuzzy number raised to the specified power.
 /// </summary>
 /// <param name="X">Base</param>
 /// <param name="y">Exponent</param>
 public static FuzzyNumber Pow(FuzzyNumber X, double y)
 {
     return(FuzzyNumber.Map(X, x => Pow(x, y)));
 }
Пример #3
0
 /// <summary>
 /// Returns the smaller of two fuzzy numbers.
 /// </summary>
 public static FuzzyNumber Min(FuzzyNumber X, FuzzyNumber Y)
 {
     return(FuzzyNumber.Map(X, Y, (x, y) => Min(x, y)));
 }
Пример #4
0
        public static FuzzyNumber Atan2(FuzzyNumber Y, FuzzyNumber X)
        {
            var rotated = Y.Support.Contains(0) && !X.Support.Contains(0);

            return(FuzzyNumber.Map(Y, X, (y, x) => Atan2(y, x, rotated)));
        }
Пример #5
0
 /// <summary>
 /// Calculates a sine of the fuzzy angle.
 /// </summary>
 /// <param name="X">A fuzzy number represents the angle in radians.</param>
 public static FuzzyNumber Sin(FuzzyNumber X)
 {
     return(FuzzyNumber.Map(X, x => Sin(x)));
 }
Пример #6
0
 /// <summary>
 /// Calculates e raised to the specified fuzzy number.
 /// </summary>
 /// <param name="X">Exponent</param>
 public static FuzzyNumber Exp(FuzzyNumber X)
 {
     return(FuzzyNumber.Map(X, x => Exp(x)));
 }