Changeset 17351
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Common/3.3/DoubleExtensions.cs
r17350 r17351 28 28 /// <param name="x">First double value to be checked</param> 29 29 /// <param name="y">Second double value to compare with</param> 30 /// <returns> </returns>30 /// <returns>true if the difference is <= 1.0E-12</returns> 31 31 public static bool IsAlmost(this double x, double y) { 32 32 var epsilon = 1.0E-12; … … 40 40 /// <param name="y">Second double value to compare with</param> 41 41 /// <param name="epsilon">Error term to specify the precision</param> 42 /// <returns> </returns>42 /// <returns>true if the difference is <= epsilon</returns> 43 43 public static bool IsAlmost(this double x, double y, double epsilon) { 44 44 if (double.IsInfinity(x)) { -
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionCompiledTreeInterpreter.cs
r17180 r17351 52 52 private static readonly MethodInfo Log = typeof(Math).GetMethod("Log", new[] { typeof(double) }); 53 53 private static readonly MethodInfo IsNaN = typeof(double).GetMethod("IsNaN"); 54 private static readonly MethodInfo IsAlmost = typeof(DoubleExtensions).GetMethod("IsAlmost" );54 private static readonly MethodInfo IsAlmost = typeof(DoubleExtensions).GetMethod("IsAlmost", new Type[] { typeof(double), typeof(double)}); 55 55 private static readonly MethodInfo Gamma = typeof(alglib).GetMethod("gammafunction", new[] { typeof(double) }); 56 56 private static readonly MethodInfo Psi = typeof(alglib).GetMethod("psi", new[] { typeof(double) });
Note: See TracChangeset
for help on using the changeset viewer.