|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFitnessEvaluation.externalInterpreters.SymbolicRegression.SymRegFunkBSF
public abstract class SymRegFunkBSF
help class for SymbolicRegression.java
| Constructor Summary | |
|---|---|
SymRegFunkBSF()
Creates a new instance of SymRegFunkBSF |
|
| Method Summary | |
|---|---|
double |
cos(double x)
Trigonometric cosine function |
double |
div(double n,
double d)
Protected division. |
double |
exp(double x)
Returns Euler's number e raised to the power of a double value. |
abstract double |
expr(double X)
Expression to evaluate |
double |
fun(double x)
Hardcoded quadratic target function |
double |
getFitness()
Calculating the fitness as the sum of errors. |
double |
inv(double x)
Method for inverting x. |
double |
log(double x)
Natural logarithm |
double |
pow(double x,
double y)
Method for x to the power of y |
double |
sin(double x)
Trigonometric sine function |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SymRegFunkBSF()
| Method Detail |
|---|
public abstract double expr(double X)
X - point
public double getFitness()
public double fun(double x)
x - value
public double inv(double x)
x - value to invert
public double pow(double x,
double y)
x - basey - exponent
public double div(double n,
double d)
n - dividendd - divisor
public double sin(double x)
x - angle in radians
public double cos(double x)
x - angle in radians
public double exp(double x)
x - exponent to raise e to
public double log(double x)
x - value to take the logarithm of
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||