Package jsl.utilities.statistic
Class StatisticXY
- java.lang.Object
-
- jsl.utilities.statistic.StatisticXY
-
- All Implemented Interfaces:
GetNameIfc
,IdentityIfc
public class StatisticXY extends java.lang.Object implements IdentityIfc
-
-
Field Summary
Fields Modifier and Type Field Description protected double
avgx
protected double
avgy
protected double
covxy
protected int
myId
The id of this objectprotected java.lang.String
myName
Holds the name of the statistic for reporting purposes.protected double
nxy
protected double
sumxy
protected double
varx
protected double
vary
-
Constructor Summary
Constructors Constructor Description StatisticXY()
StatisticXY(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collectXY(double x, double y)
double
getAdjustedRSq()
double
getAverageX()
double
getAverageY()
double
getCoeffOfDetermination()
double
getCorrelationXY()
double
getCount()
double
getCovarianceXY()
int
getId()
Returns the id for this collectordouble
getIntercept()
double
getInterceptStdError()
double
getMSEResiduals()
java.lang.String
getName()
Gets the name.double
getRatioXY()
double
getRatioXYStdError()
double
getRatioXYVariance()
double
getSlope()
double
getSlopeStdError()
double
getSST()
double
getSSXX()
double
getSSXY()
double
getSSYY()
double
getSumSquareErrorResiduals()
double
getSumSquareErrorsRegression()
double
getSumX()
double
getSumXX()
double
getSumXY()
double
getSumY()
double
getSumYY()
double
getVarianceX()
double
getVarianceY()
static void
main(java.lang.String[] args)
StatisticXY
newInstance()
static StatisticXY
newInstance(StatisticXY stat)
void
reset()
void
setName(java.lang.String str)
Sets the namestatic void
test1()
static void
test2()
java.lang.String
toString()
-
-
-
Field Detail
-
myId
protected int myId
The id of this object
-
myName
protected java.lang.String myName
Holds the name of the statistic for reporting purposes.
-
avgx
protected double avgx
-
avgy
protected double avgy
-
varx
protected double varx
-
vary
protected double vary
-
sumxy
protected double sumxy
-
covxy
protected double covxy
-
nxy
protected double nxy
-
-
Method Detail
-
newInstance
public static StatisticXY newInstance(StatisticXY stat)
-
newInstance
public StatisticXY newInstance()
-
getName
public final java.lang.String getName()
Gets the name.- Specified by:
getName
in interfaceGetNameIfc
- Returns:
- The name of object.
-
setName
public final void setName(java.lang.String str)
Sets the name- Parameters:
str
- The name as a string.
-
getId
public final int getId()
Returns the id for this collector- Specified by:
getId
in interfaceIdentityIfc
- Returns:
-
getAverageX
public final double getAverageX()
-
getSumX
public final double getSumX()
-
getAverageY
public final double getAverageY()
-
getSumY
public final double getSumY()
-
getVarianceX
public final double getVarianceX()
-
getVarianceY
public final double getVarianceY()
-
getSumXY
public final double getSumXY()
-
getSumXX
public final double getSumXX()
-
getSumYY
public final double getSumYY()
-
getSSXX
public final double getSSXX()
-
getSSYY
public final double getSSYY()
-
getSSXY
public final double getSSXY()
-
getSumSquareErrorsRegression
public final double getSumSquareErrorsRegression()
-
getSST
public final double getSST()
-
getCoeffOfDetermination
public final double getCoeffOfDetermination()
-
getSumSquareErrorResiduals
public final double getSumSquareErrorResiduals()
-
getMSEResiduals
public final double getMSEResiduals()
-
getSlope
public final double getSlope()
-
getSlopeStdError
public final double getSlopeStdError()
-
getIntercept
public final double getIntercept()
-
getInterceptStdError
public final double getInterceptStdError()
-
getAdjustedRSq
public final double getAdjustedRSq()
-
getCovarianceXY
public final double getCovarianceXY()
-
getCount
public final double getCount()
-
getCorrelationXY
public final double getCorrelationXY()
-
reset
public void reset()
-
collectXY
public final void collectXY(double x, double y)
-
getRatioXY
public final double getRatioXY()
-
getRatioXYVariance
public final double getRatioXYVariance()
-
getRatioXYStdError
public final double getRatioXYStdError()
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
main
public static void main(java.lang.String[] args)
-
test1
public static void test1()
-
test2
public static void test2()
-
-