|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.util.Cubics
The Cubics
represents a cubic function of x and y. It
consists of 10 coefficients from A to J which represent:
z = A + Bx + Cy + Dxx + Exy + Fyy + Gxxx + Hxxy + Ixyy + Jyyy
Field Summary | |
private double |
A
The constant item. |
private double |
B
The coefficient of x. |
private double |
C
The coefficient of y. |
private double |
D
The coefficient of x^2. |
private int |
data_count
The number of (x,y,z) data to solve the simultaneous equation. |
private double |
E
The coefficient of x y. |
private double |
F
The coefficient of y^2. |
private double |
G
The coefficient of x^3. |
private double |
H
The coefficient of x^2 y. |
private double |
I
The coefficient of x y^2. |
private double |
J
The coefficient of y^3. |
private SimultaneousEquation |
se
The simultaneous equation to solve this cubic function. |
Constructor Summary | |
Cubics()
Constructs an empty Cubics . |
Method Summary | |
static Cubics |
create(java.lang.String string)
Creates a Cubics object from the String
object which represents the cubic function. |
java.lang.String |
getOutputString()
Returns a string representation of the state of this object. |
double |
getValue(double x,
double y)
Gets z value of the specified (x,y). |
Cubics |
negative()
Creates a negative cubic function of this one. |
void |
setData(double x,
double y,
double z)
Adds a (x,y,z) data to solve the simultaneous equation. |
void |
solve()
Solves the simultaneous equation and calculates this cubic function in the least square method. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private double A
private double B
private double C
private double D
private double E
private double F
private double G
private double H
private double I
private double J
private SimultaneousEquation se
private int data_count
Constructor Detail |
public Cubics()
Cubics
.Method Detail |
public double getValue(double x, double y)
x
- the x value.y
- the y value.public void setData(double x, double y, double z)
x
- the x value.y
- the y value.z
- the z value.public void solve()
public Cubics negative()
public static Cubics create(java.lang.String string)
Cubics
object from the String
object which represents the cubic function.string
- the string which represents the cubic function.Cubics
of the specified string.public java.lang.String getOutputString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |