|
|
com.kutsyy.util
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Field Summary | |
private static double |
CGOLD
|
private static int |
ITMAX
|
private static Function |
local_f
|
private static MvFunction |
local_mvF
|
private static boolean |
min
|
private static double |
tol
|
private static double |
ZEPS
|
| Constructor Summary | |
Numeric()
|
|
| Method Summary | |
private static double |
brent_(double ax,
double bx,
double cx,
double tol)
Insert the method's description here. |
static double |
brent(double ax,
double bx,
double cx,
Function _f,
double tol)
Function Minimizaton based on Brent method |
static double |
brent(double ax,
double bx,
double cx,
Function _f,
double tol,
String min_max)
Function Minimizaton based on Brent method |
private static double |
expQgauss(Function F,
int n)
Insert the method's description here. |
private static double |
f(double x)
Insert the method's description here. |
private static void |
gauher(double[] x,
double[] w)
Insert the method's description here. |
private static double |
golden_(double ax,
double bx,
double cx,
double tol)
Insert the method's description here. |
static double |
golden(double ax,
double bx,
double cx,
Function _f,
double tol)
Function Minmizaton based on golden search |
static double |
golden(double ax,
double bx,
double cx,
Function _f,
double tol,
String min_max)
Function Minmizaton based on golden search |
private static double |
min(double[] x)
Insert the method's description here. |
static double |
minimize(double ax,
double bx,
double cx,
Function _f,
double tol,
String min_max)
Insert the method's description here. |
private static void |
mnbrac_(double[] x,
double[] fx)
Insert the method's description here. |
private static double |
mvF(double[] x)
Insert the method's description here. |
static double[] |
mvGrid(double[] x,
double[] a,
double[] b,
MvFunction mvF,
double[] tol,
String min_max)
Multivariate minimizaton based on discrete grid. |
static double[] |
mvGrid(double[] x,
double[] a,
double[] b,
MvFunction mvF,
double tol,
String min_max)
Multivariate minimizaton based on discrete grid. |
private static double |
qgauss(Function F,
int n)
Insert the method's description here. |
private static double |
sign(double a,
double b)
Insert the method's description here. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static boolean min
private static Function local_f
private static MvFunction local_mvF
private static final double tol
private static final int ITMAX
private static final double CGOLD
private static final double ZEPS
| Constructor Detail |
public Numeric()
| Method Detail |
public static double brent(double ax,
double bx,
double cx,
Function _f,
double tol)
ax - double - lower limit for xbx - double - initial gess for xcx - double -upper limit for x_f - kutsyy.util.Function - inteface with function f(double) to
minimizetol - double - tolerance
public static double brent(double ax,
double bx,
double cx,
Function _f,
double tol,
String min_max)
ax - double - lower limit for xbx - double - initial gess for xcx - double -upper limit for x_f - kutsyy.util.Function - inteface with function f(double) to
minimizetol - double - tolerancemin_max - java.lang.String - "max" or "min" -to maximize or minimize
public static double golden(double ax,
double bx,
double cx,
Function _f,
double tol)
ax - double - lower limit for xbx - double - initial gess for xcx - double -upper limit for x_f - kutsyy.util.Function - inteface with function f(double) to
minimizetol - double - tolerance
public static double golden(double ax,
double bx,
double cx,
Function _f,
double tol,
String min_max)
ax - double - lower limit for xbx - double - initial gess for xcx - double -upper limit for x_f - kutsyy.util.Function - inteface with function f(double) to
minimizetol - double - tolerancemin_max - java.lang.String - "max" or "min" -to maximize or minimize
public static double minimize(double ax,
double bx,
double cx,
Function _f,
double tol,
String min_max)
ax - doublebx - doublecx - double_f - com.kutsyy.util.Functiontol - doublemin_max - java.lang.String
public static double[] mvGrid(double[] x,
double[] a,
double[] b,
MvFunction mvF,
double[] tol,
String min_max)
x - double[] - imput initial gues, output, value that
minimize/maximize functiona - double[] - lower limit for x;b - double[] - upper limit for x;mvF - kutsyy.util.MvFunction -inteface that contain f(double[]) to
be minimaze/maximizetol - double[] - tolerance for each dimentionmin_max - java.lang.String - "min" or "max" for minimizaton, or
maximization.
public static double[] mvGrid(double[] x,
double[] a,
double[] b,
MvFunction mvF,
double tol,
String min_max)
x - double[] - imput initial gues, output, value that
minimize/maximize functiona - double[] - lower limit for x;b - double[] - upper limit for x;mvF - kutsyy.util.MvFunction -inteface that contain f(double[]) to
be minimaze/maximizetol - double - tolerancemin_max - java.lang.String - "min" or "max" for minimizaton, or
maximization.
private static double brent_(double ax,
double bx,
double cx,
double tol)
ax - doublebx - doublecx - doubletol - doubleprivate static double expQgauss(Function F, int n)
n - intF - Description of Parameterprivate static double f(double x)
x - double
private static void gauher(double[] x,
double[] w)
x - double[]w - double[]
private static double golden_(double ax,
double bx,
double cx,
double tol)
ax - doublebx - doublecx - doubletol - doubleprivate static double min(double[] x)
x - double[]
private static void mnbrac_(double[] x,
double[] fx)
x - double[]fx - double[]private static double mvF(double[] x)
x - double[]private static double qgauss(Function F, int n)
n - intF - Description of Parameter
private static double sign(double a,
double b)
a - doubleb - double
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||