From 88314e71f908efcfc38da3b800319c171a6ccceb Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Fri, 18 Apr 2014 09:08:41 +0100 Subject: Added parsers, did a bit of testing, switched to java8 --- src/jcgp/backend/modules/problem/SymbolicRegression.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/jcgp/backend/modules') diff --git a/src/jcgp/backend/modules/problem/SymbolicRegression.java b/src/jcgp/backend/modules/problem/SymbolicRegression.java index c92d183..46b8e09 100644 --- a/src/jcgp/backend/modules/problem/SymbolicRegression.java +++ b/src/jcgp/backend/modules/problem/SymbolicRegression.java @@ -2,18 +2,18 @@ package jcgp.backend.modules.problem; import java.util.ArrayList; -import jcgp.backend.function.IntegerArithmetic; +import jcgp.backend.function.DoubleArithmetic; import jcgp.backend.resources.Resources; -public class SymbolicRegression extends TestCaseProblem { +public class SymbolicRegression extends TestCaseProblem { public SymbolicRegression(Resources resources) { super(resources); - functionSet = new IntegerArithmetic(); + functionSet = new DoubleArithmetic(); - ArrayList> tc = new ArrayList>(); - tc.add(new TestCase(new Integer[]{1, 2, 3}, new Integer[]{-4, 5, 6})); - tc.add(new TestCase(new Integer[]{3, 2, 5}, new Integer[]{2, 5, 9})); + ArrayList> tc = new ArrayList>(); + tc.add(new TestCase(new Double[]{1.0, 2.0, 3.0}, new Double[]{-4.0, 5.0, 6.0})); + tc.add(new TestCase(new Double[]{3.0, 2.0, 5.0}, new Double[]{2.0, 5.0, 9.0})); setTestCases(tc); } -- cgit v1.2.3