|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.brook.ascape.util.Function
A one-dimensional function.
| Field Summary | |
protected static double |
f2
The result value for the second measurement. |
protected static double |
f3
The result value for the third measurement. |
protected double |
gap1
The X axis gap between the first and second measurements |
protected double |
gap2
The X axis gap between the second and third measurements (after one measurement has been dropped, leaving three total.) |
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. |
protected static double |
x1
The first measurement of the current interval. |
protected static double |
x2
The second measurement of the current interval. |
protected static double |
x3
The third measurement of the current interval. |
protected static double |
x4
The fourth measurement of the current interval. |
| 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
protected static double x1
protected static double x2
protected static double x3
protected static double x4
protected static double f2
protected static double f3
protected double gap1
protected double gap2
| Constructor Detail |
public Function()
| Method Detail |
public double maximize()
public double solveFor(double x)
x - the variable input parameterpublic java.lang.Object clone()
|
(c) 1998-2000 The Brookings Insitution Webpage |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||