Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/29/11 14:58:06 (12 years ago)
Author:
sforsten
Message:

#1669: Input variables of Korn functions have been adjusted according to the description.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Korns/KornFunctionTen.cs

    r7044 r7095  
    4141        + "target expressions are limited to one basis function whose maximum depth is three grammar nodes.\"";
    4242      targetVariable = "Y";
    43       inputVariables = new List<string>() { "X1", "X2", "X3", "X4" };
     43      inputVariables = new List<string>() { "X0", "X1", "X2", "X3", "X4" };
    4444      trainingPartition = new IntRange(0, 5000);
    4545      testPartition = new IntRange(5001, 10000);
     
    5050      List<double> results = new List<double>();
    5151      for (int i = 0; i < data[0].Count; i++) {
    52         x1 = data[0][i];
    53         x2 = data[1][i];
    54         x3 = data[2][i];
    55         x4 = data[3][i];
     52        x1 = data[1][i];
     53        x2 = data[2][i];
     54        x3 = data[3][i];
     55        x4 = data[4][i];
    5656        results.Add(0.81 + (24.3 * (((2.0 * x1) + (3.0 * Math.Pow(x2, 2))) / ((4.0 * Math.Pow(x3, 3)) + (5.0 * Math.Pow(x4, 4))))));
    5757      }
Note: See TracChangeset for help on using the changeset viewer.