|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.aerith.misao.util.RegressionEquation
The RegressionEquation represents a regression
equation:
y = gradient * x + constant
| Field Summary | |
private double |
constant
The constant. |
private int |
data_count
The number of (x,y) data to solve the simultaneous equation. |
private double |
gradient
The gradient. |
private SimultaneousEquation |
se
The simultaneous equation to solve this regression equation. |
| Constructor Summary | |
RegressionEquation()
Constructs an empty RegressionEquation. |
|
| Method Summary | |
java.lang.String |
getOutputString()
Returns a string representation of the state of this object. |
double |
getValue(double x)
Gets y value of the specified x. |
void |
setData(double x,
double y)
Adds a (x,y) data to solve the simultaneous equation. |
void |
solve()
Solves the simultaneous equation and calculates this regression equation in the least square method. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private double constant
private double gradient
private SimultaneousEquation se
private int data_count
| Constructor Detail |
public RegressionEquation()
RegressionEquation.| Method Detail |
public double getValue(double x)
x - the x value.
public void setData(double x,
double y)
x - the x value.y - the y value.public void solve()
public java.lang.String getOutputString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||