Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/15/10 23:49:54 (14 years ago)
Author:
swagner
Message:

Renamed classes of HeuristicLab.Data (#909)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.RealVector/3.3/Tests/PolynomialOnePositionManipulatorTest.cs

    r2936 r3048  
    8585    public void PolynomialOnePositionManipulatorApplyTest() {
    8686      TestRandom random = new TestRandom();
    87       DoubleArrayData parent, expected;
    88       DoubleData contiguity, maxManipulation;
     87      DoubleArray parent, expected;
     88      DoubleValue contiguity, maxManipulation;
    8989      bool exceptionFired;
    9090      // The following test is not based on published examples
     
    9292      random.IntNumbers = new int[] { 3 };
    9393      random.DoubleNumbers = new double[] { 0.2 };
    94       parent = new DoubleArrayData(new double[] { 0.2, 0.2, 0.3, 0.5, 0.1 });
    95       expected = new DoubleArrayData(new double[] { 0.2, 0.2, 0.3, 0.1261980542102, 0.1 });
    96       contiguity = new DoubleData(0.2);
    97       maxManipulation = new DoubleData(0.7);
     94      parent = new DoubleArray(new double[] { 0.2, 0.2, 0.3, 0.5, 0.1 });
     95      expected = new DoubleArray(new double[] { 0.2, 0.2, 0.3, 0.1261980542102, 0.1 });
     96      contiguity = new DoubleValue(0.2);
     97      maxManipulation = new DoubleValue(0.7);
    9898      PolynomialOnePositionManipulator.Apply(random, parent, contiguity, maxManipulation);
    9999      Assert.IsTrue(Auxiliary.RealVectorIsAlmostEqualByPosition(expected, parent));
     
    103103      random.IntNumbers = new int[] { 3 };
    104104      random.DoubleNumbers = new double[] { 0.2 };
    105       parent = new DoubleArrayData(new double[] { 0.2, 0.2, 0.3, 0.5, 0.1 });
    106       contiguity = new DoubleData(-1); //Contiguity value < 0
    107       maxManipulation = new DoubleData(0.2);
     105      parent = new DoubleArray(new double[] { 0.2, 0.2, 0.3, 0.5, 0.1 });
     106      contiguity = new DoubleValue(-1); //Contiguity value < 0
     107      maxManipulation = new DoubleValue(0.2);
    108108      try {
    109109        PolynomialOnePositionManipulator.Apply(random, parent, contiguity, maxManipulation);
Note: See TracChangeset for help on using the changeset viewer.