Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/15/19 13:17:53 (4 years ago)
Author:
chaider
Message:

#3032 Added type information for MethodInfo in SymbolicDataAnalysisExpressionCompiledTreeInterpreter class for the IsAlmost method to fix ambiguous reflection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Common/3.3/DoubleExtensions.cs

    r17350 r17351  
    2828    /// <param name="x">First double value to be checked</param>
    2929    /// <param name="y">Second double value to compare with</param>
    30     /// <returns></returns>
     30    /// <returns>true if the difference is <= 1.0E-12</returns>
    3131    public static bool IsAlmost(this double x, double y) {
    3232      var epsilon = 1.0E-12;
     
    4040    /// <param name="y">Second double value to compare with</param>
    4141    /// <param name="epsilon">Error term to specify the precision</param>
    42     /// <returns></returns>
     42    /// <returns>true if the difference is <= epsilon</returns>
    4343    public static bool IsAlmost(this double x, double y, double epsilon) {
    4444      if (double.IsInfinity(x)) {
Note: See TracChangeset for help on using the changeset viewer.