Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OKBJavaConnector/ECJClient/src/ec/app/regression/Sextic.java @ 13067

Last change on this file since 13067 was 6152, checked in by bfarka, 14 years ago

added ecj and custom statistics to communicate with the okb services #1441

File size: 620 bytes
Line 
1/*
2  Copyright 2006 by Sean Luke
3  Licensed under the Academic Free License version 3.0
4  See the file "LICENSE" for more information
5*/
6
7
8package ec.app.regression;
9
10/*
11 * Sextic.java
12 *
13 * Created: Fri Nov 30 21:38:13 EST 2001
14 * By: Sean Luke
15 */
16
17/**
18 * Sextic implements a Symbolic Regression problem.
19 *
20 * <p>The equation to be regressed is y = x^6 - 2x^4 + x^2, {x in [-1,1]}
21 * <p>This equation was introduced in J. R. Koza, GP II, 1994.
22 *
23 */
24public class Sextic extends Regression
25    {
26    public double func(double x)
27        { return x*x*x*x*x*x - 2.0*x*x*x*x + x*x; }
28    }
Note: See TracBrowser for help on using the repository browser.