|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ascape.util.Function
public abstract class Function
A one-dimensional function.
| Field Summary | |
|---|---|
static double |
resolution
Desired resolution of maximization. |
static double |
sectLarge
Large end of golden section. |
static double |
sectSmall
Small end of golden section. |
static double |
tau
Tau "magic" number. |
| Constructor Summary | |
|---|---|
Function()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones this function. |
double |
maximize()
Maximize the output of this function, assuming function is unimodal, using a golden section search strategy. |
double |
solveFor(double x)
Solve this (single-variable) function. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double tau
public static final double sectLarge
public static final double sectSmall
public static final double resolution
| Constructor Detail |
|---|
public Function()
| Method Detail |
|---|
public double maximize()
public double solveFor(double x)
x - the variable input parameter
public java.lang.Object clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||