|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.fhkoeln.zra.statix.data.StatCustomSequence
Nested Class Summary | |
private class |
StatCustomSequence.DoubleArrayEnumeration
|
Field Summary | |
private double |
avg
|
private int |
count
|
private Double[] |
data
|
private Integer |
firstIndex
|
private double |
stddev
|
private double |
sum
|
private double |
variance
|
Constructor Summary | |
StatCustomSequence(double[] data)
|
|
StatCustomSequence(Double[] data)
|
Method Summary | |
private void |
calculateValues()
Method calculateValues. |
private Double[] |
double2Double(double[] timeSequence)
|
double |
getAverage()
|
double |
getCorrelationCoefficient(StatSequence other)
|
int |
getCount()
|
Double[] |
getDataAsArray()
return all the Pairs as array |
double |
getLinearRegressionForecast(int in)
returns a forecast-value for in using linear regression |
double |
getMAE()
return the mean absolute error: |
Double |
getMax()
|
double |
getMedian()
|
Double |
getMin()
|
double |
getMSE()
returns the mean squared error |
double |
getRMSE()
returns the root of mean squared error |
double |
getStandardDeviation()
|
double |
getSum()
|
double |
getSumOfSquares()
returns the sum of squares |
Enumeration |
getTimeSequence()
returns an java.util.Enumeration which iterates over all Pairs |
double |
getVariance()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private Double[] data
private double sum
private double variance
private double stddev
private double avg
private int count
private Integer firstIndex
Constructor Detail |
public StatCustomSequence(double[] data)
public StatCustomSequence(Double[] data)
Method Detail |
private void calculateValues()
private Double[] double2Double(double[] timeSequence)
public Enumeration getTimeSequence()
StatSequence
getTimeSequence
in interface StatSequence
public Double[] getDataAsArray()
StatSequence
getDataAsArray
in interface StatSequence
public double getVariance()
getVariance
in interface StatSequence
public double getStandardDeviation()
getStandardDeviation
in interface StatSequence
public double getSum()
getSum
in interface StatSequence
public double getAverage()
getAverage
in interface StatSequence
public int getCount()
getCount
in interface StatSequence
public Double getMax()
getMax
in interface StatSequence
public Double getMin()
getMin
in interface StatSequence
public double getMedian()
getMedian
in interface StatSequence
public String toString()
toString
in class Object
public double getMAE()
getMAE
in interface StatSequence
public double getMSE()
getMSE
in interface StatSequence
public double getRMSE()
getRMSE
in interface StatSequence
public double getSumOfSquares()
getSumOfSquares
in interface StatSequence
public double getCorrelationCoefficient(StatSequence other)
getCorrelationCoefficient
in interface StatSequence
public double getLinearRegressionForecast(int in)
inusing linear regression
getLinearRegressionForecast
in interface StatSequence
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |