Package velo.ladaalpha.fields.math.stats
Class TwoVarStats
java.lang.Object
velo.ladaalpha.fields.math.stats.TwoVarStats
The Class TwoVarStats.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiondoublegetMaxX()Gets the max X.doublegetMaxY()Gets the max Y.doublegetMinX()Gets the min X.doublegetMinY()Gets the min Y.doublegetN()Gets the n.doublegetR()Gets the r.doublegetR2()Gets the r2.doublegetSumX()Gets the sum X.doublegetSumX2()Gets the sum X 2.doublegetSumXY()Gets the sum XY.doublegetSumY()Gets the sum Y.doublegetSumY2()Gets the sum Y 2.doublegetsX()Gets the s X.doublegetsY()Gets the s Y.double[]getX()Gets the x.doublegetxBar()Gets the x bar.double[]getY()Gets the y.doublegetyBar()Gets the y bar.voidsetMaxX(double maxX) Sets the max X.voidsetMaxY(double maxY) Sets the max Y.voidsetMinX(double minX) Sets the min X.voidsetMinY(double minY) Sets the min Y.voidsetN(double n) Sets the n.voidsetR(double r) Sets the r.voidsetR2(double r2) Sets the r2.voidsetSumX(double sumX) Sets the sum X.voidsetSumX2(double sumX2) Sets the sum X 2.voidsetSumXY(double sumXY) Sets the sum XY.voidsetSumY(double sumY) Sets the sum Y.voidsetSumY2(double sumY2) Sets the sum Y 2.voidsetsX(double sX) Sets the s X.voidsetsY(double sY) Sets the s Y.voidsetX(double[] x) Sets the x.voidsetxBar(double xBar) Sets the x bar.voidsetY(double[] y) Sets the y.voidsetyBar(double yBar) Sets the y bar.toString()To string. 
- 
Constructor Details
- 
TwoVarStats
public TwoVarStats(double[] x, double[] y) Instantiates a new two var stats.- Parameters:
 x- the xy- the y
 
 - 
 - 
Method Details
- 
toString
To string. - 
getxBar
public double getxBar()Gets the x bar.- Returns:
 - the x bar
 
 - 
setxBar
public void setxBar(double xBar) Sets the x bar.- Parameters:
 xBar- the new x bar
 - 
getSumX
public double getSumX()Gets the sum X.- Returns:
 - the sum X
 
 - 
setSumX
public void setSumX(double sumX) Sets the sum X.- Parameters:
 sumX- the new sum X
 - 
getSumX2
public double getSumX2()Gets the sum X 2.- Returns:
 - the sum X 2
 
 - 
setSumX2
public void setSumX2(double sumX2) Sets the sum X 2.- Parameters:
 sumX2- the new sum X 2
 - 
getsX
public double getsX()Gets the s X.- Returns:
 - the s X
 
 - 
setsX
public void setsX(double sX) Sets the s X.- Parameters:
 sX- the new s X
 - 
getN
public double getN()Gets the n.- Returns:
 - the n
 
 - 
setN
public void setN(double n) Sets the n.- Parameters:
 n- the new n
 - 
getyBar
public double getyBar()Gets the y bar.- Returns:
 - the y bar
 
 - 
setyBar
public void setyBar(double yBar) Sets the y bar.- Parameters:
 yBar- the new y bar
 - 
getSumY
public double getSumY()Gets the sum Y.- Returns:
 - the sum Y
 
 - 
setSumY
public void setSumY(double sumY) Sets the sum Y.- Parameters:
 sumY- the new sum Y
 - 
getSumY2
public double getSumY2()Gets the sum Y 2.- Returns:
 - the sum Y 2
 
 - 
setSumY2
public void setSumY2(double sumY2) Sets the sum Y 2.- Parameters:
 sumY2- the new sum Y 2
 - 
getsY
public double getsY()Gets the s Y.- Returns:
 - the s Y
 
 - 
setsY
public void setsY(double sY) Sets the s Y.- Parameters:
 sY- the new s Y
 - 
getSumXY
public double getSumXY()Gets the sum XY.- Returns:
 - the sum XY
 
 - 
setSumXY
public void setSumXY(double sumXY) Sets the sum XY.- Parameters:
 sumXY- the new sum XY
 - 
getMinX
public double getMinX()Gets the min X.- Returns:
 - the min X
 
 - 
setMinX
public void setMinX(double minX) Sets the min X.- Parameters:
 minX- the new min X
 - 
getMaxX
public double getMaxX()Gets the max X.- Returns:
 - the max X
 
 - 
setMaxX
public void setMaxX(double maxX) Sets the max X.- Parameters:
 maxX- the new max X
 - 
getMinY
public double getMinY()Gets the min Y.- Returns:
 - the min Y
 
 - 
setMinY
public void setMinY(double minY) Sets the min Y.- Parameters:
 minY- the new min Y
 - 
getMaxY
public double getMaxY()Gets the max Y.- Returns:
 - the max Y
 
 - 
setMaxY
public void setMaxY(double maxY) Sets the max Y.- Parameters:
 maxY- the new max Y
 - 
getR
public double getR()Gets the r.- Returns:
 - the r
 
 - 
setR
public void setR(double r) Sets the r.- Parameters:
 r- the new r
 - 
getR2
public double getR2()Gets the r2.- Returns:
 - the r2
 
 - 
setR2
public void setR2(double r2) Sets the r2.- Parameters:
 r2- the new r2
 - 
getX
public double[] getX()Gets the x.- Returns:
 - the x
 
 - 
setX
public void setX(double[] x) Sets the x.- Parameters:
 x- the new x
 - 
getY
public double[] getY()Gets the y.- Returns:
 - the y
 
 - 
setY
public void setY(double[] y) Sets the y.- Parameters:
 y- the new y
 
 -