public class Tool4LinearRegression
extends java.lang.Object
LinearRegression
class calculates the linear regression of numbers.Constructor and Description |
---|
Tool4LinearRegression()
Konstruktor der Klasse
|
Modifier and Type | Method and Description |
---|---|
double |
calcFunction(double x)
The method
calcFunction calculates the linear function. |
double |
getA()
get field: Koeffizient.
|
double |
getB()
get field: Koeffizient.
|
java.lang.String |
getCorrelationCoefficient()
The method
getCorrelationCoefficient returns the correlation coefficient. |
java.lang.String |
getLinearRegressionFunction(java.util.Vector points)
Die Methode
getLinearRegressionFunction berechnet eine lineare Funktion. |
java.lang.String |
getLinearRegressionFunction(java.util.Vector points,
int digits)
Die Methode
getLinearRegressionFunction berechnet eine lineare Funktion. |
public double getA()
public double getB()
public java.lang.String getLinearRegressionFunction(java.util.Vector points) throws java.lang.Exception
getLinearRegressionFunction
berechnet eine lineare Funktion.
y = a + b * x, bestimmt werden die Koeffizienten a und b.
Im Test-Modus wird nur eine Zahlungsreihe von 3 Zahlungen ber�cksichtigt.points
- Punkte in der Ebenejava.lang.Exception
- id errorpublic java.lang.String getLinearRegressionFunction(java.util.Vector points, int digits) throws java.lang.Exception
getLinearRegressionFunction
berechnet eine lineare Funktion.
y = a + b * x, bestimmt werden die Koeffizienten a und b.
Im Test-Modus wird nur eine Zahlungsreihe von 3 Zahlungen ber�cksichtigt.points
- Punkte in der Ebenedigits
- dezimalzahlen.java.lang.Exception
- id errorpublic double calcFunction(double x)
calcFunction
calculates the linear function.x
- the parameterpublic java.lang.String getCorrelationCoefficient()
getCorrelationCoefficient
returns the correlation coefficient.