Changeset 7707
- Timestamp:
- 04/05/12 10:28:47 (13 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars/FullFunctionalExpressionGrammar.cs
r7696 r7707 62 62 sqrt.InitialFrequency = 0.0; 63 63 var airyA = new AiryA(); 64 airyA.InitialFrequency = 0.0; 64 65 var airyB = new AiryB(); 66 airyB.InitialFrequency = 0.0; 65 67 var bessel = new Bessel(); 68 bessel.InitialFrequency = 0.0; 66 69 var cosineIntegral = new CosineIntegral(); 70 cosineIntegral.InitialFrequency = 0.0; 67 71 var dawson = new Dawson(); 72 dawson.InitialFrequency = 0.0; 68 73 var erf = new Erf(); 74 erf.InitialFrequency = 0.0; 69 75 var expIntegralEi = new ExponentialIntegralEi(); 76 expIntegralEi.InitialFrequency = 0.0; 70 77 var fresnelCosineIntegral = new FresnelCosineIntegral(); 78 fresnelCosineIntegral.InitialFrequency = 0.0; 71 79 var fresnelSineIntegral = new FresnelSineIntegral(); 80 fresnelSineIntegral.InitialFrequency = 0.0; 72 81 var gamma = new Gamma(); 82 gamma.InitialFrequency = 0.0; 73 83 var hypCosineIntegral = new HyperbolicCosineIntegral(); 84 hypCosineIntegral.InitialFrequency = 0.0; 74 85 var hypSineIntegral = new HyperbolicSineIntegral(); 86 hypSineIntegral.InitialFrequency = 0.0; 75 87 var norm = new Norm(); 88 norm.InitialFrequency = 0.0; 76 89 var psi = new Psi(); 90 psi.InitialFrequency = 0.0; 77 91 var sineIntegral = new SineIntegral(); 92 sineIntegral.InitialFrequency = 0.0; 78 93 79 94 var exp = new Exponential(); -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisExpressionTreeInterpreter.cs
r7696 r7707 370 370 var x = Evaluate(dataset, ref row, state); 371 371 if (double.IsNaN(x)) return double.NaN; 372 else if (x.IsAlmost(0.0)) return 0.0;373 else if ( x.IsAlmost(-1.0)) return 0.0;372 else if (x.IsAlmost(0.0)) return double.NaN; 373 else if ((Math.Floor(x) - x).IsAlmost(-1.0)) return double.NaN; 374 374 return alglib.psi(x); 375 375 } -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/SymbolicDataAnalysisExpressionTreeInterpreterTest.cs
r7259 r7707 56 56 [TestMethod] 57 57 public void SymbolicDataAnalysisExpressionTreeInterpreterArithmeticGrammarPerformanceTest() { 58 FullGrammarPerformanceTest(new SymbolicDataAnalysisExpressionTreeInterpreter(), 12.5e6);58 ArithmeticGrammarPerformanceTest(new SymbolicDataAnalysisExpressionTreeInterpreter(), 12.5e6); 59 59 } 60 60 … … 65 65 [TestMethod] 66 66 public void SymbolicDataAnalysisExpressionTreeILEmittingInterpreterArithmeticGrammarPerformanceTest() { 67 FullGrammarPerformanceTest(new SymbolicDataAnalysisExpressionTreeILEmittingInterpreter(), 7.5e6);67 ArithmeticGrammarPerformanceTest(new SymbolicDataAnalysisExpressionTreeILEmittingInterpreter(), 7.5e6); 68 68 } 69 69
Note: See TracChangeset
for help on using the changeset viewer.