Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OKBJavaConnector/ECJClient/src/ec/app/regression/Quintic.java @ 6152

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

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

File size: 615 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 * Quintic.java
12 *
13 * Created: Fri Nov 30 21:38:13 EST 2001
14 * By: Sean Luke
15 */
16
17/**
18 * Quintic implements a Symbolic Regression problem.
19 *
20 * <p>The equation to be regressed is y = x^5 - 2x^3 + x, {x in [-1,1]}
21 * <p>This equation was introduced in J. R. Koza, GP II, 1994.
22 *
23 */
24public class Quintic extends Regression
25    {
26    public double func(double x)
27        { return x*x*x*x*x - 2.0*x*x*x + x; }
28    }
Note: See TracBrowser for help on using the repository browser.