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 doubleavgxprotected doubleavgyprotected doublecovxyprotected intmyIdThe id of this objectprotected java.lang.StringmyNameHolds the name of the statistic for reporting purposes.protected doublenxyprotected doublesumxyprotected doublevarxprotected doublevary
-
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 voidcollectXY(double x, double y)doublegetAdjustedRSq()doublegetAverageX()doublegetAverageY()doublegetCoeffOfDetermination()doublegetCorrelationXY()doublegetCount()doublegetCovarianceXY()intgetId()Returns the id for this collectordoublegetIntercept()doublegetInterceptStdError()doublegetMSEResiduals()java.lang.StringgetName()Gets the name.doublegetRatioXY()doublegetRatioXYStdError()doublegetRatioXYVariance()doublegetSlope()doublegetSlopeStdError()doublegetSST()doublegetSSXX()doublegetSSXY()doublegetSSYY()doublegetSumSquareErrorResiduals()doublegetSumSquareErrorsRegression()doublegetSumX()doublegetSumXX()doublegetSumXY()doublegetSumY()doublegetSumYY()doublegetVarianceX()doublegetVarianceY()static voidmain(java.lang.String[] args)StatisticXYnewInstance()static StatisticXYnewInstance(StatisticXY stat)voidreset()voidsetName(java.lang.String str)Sets the namestatic voidtest1()static voidtest2()java.lang.StringtoString()
-
-
-
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:
getNamein 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:
getIdin 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:
toStringin classjava.lang.Object
-
main
public static void main(java.lang.String[] args)
-
test1
public static void test1()
-
test2
public static void test2()
-
-