Class TwoVarStats

java.lang.Object
velo.ladaalpha.fields.math.stats.TwoVarStats

public class TwoVarStats extends Object
The Class TwoVarStats.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TwoVarStats(double[] x, double[] y)
    Instantiates a new two var stats.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Gets the max X.
    double
    Gets the max Y.
    double
    Gets the min X.
    double
    Gets the min Y.
    double
    Gets the n.
    double
    Gets the r.
    double
    Gets the r2.
    double
    Gets the sum X.
    double
    Gets the sum X 2.
    double
    Gets the sum XY.
    double
    Gets the sum Y.
    double
    Gets the sum Y 2.
    double
    Gets the s X.
    double
    Gets the s Y.
    double[]
    Gets the x.
    double
    Gets the x bar.
    double[]
    Gets the y.
    double
    Gets the y bar.
    void
    setMaxX(double maxX)
    Sets the max X.
    void
    setMaxY(double maxY)
    Sets the max Y.
    void
    setMinX(double minX)
    Sets the min X.
    void
    setMinY(double minY)
    Sets the min Y.
    void
    setN(double n)
    Sets the n.
    void
    setR(double r)
    Sets the r.
    void
    setR2(double r2)
    Sets the r2.
    void
    setSumX(double sumX)
    Sets the sum X.
    void
    setSumX2(double sumX2)
    Sets the sum X 2.
    void
    setSumXY(double sumXY)
    Sets the sum XY.
    void
    setSumY(double sumY)
    Sets the sum Y.
    void
    setSumY2(double sumY2)
    Sets the sum Y 2.
    void
    setsX(double sX)
    Sets the s X.
    void
    setsY(double sY)
    Sets the s Y.
    void
    setX(double[] x)
    Sets the x.
    void
    setxBar(double xBar)
    Sets the x bar.
    void
    setY(double[] y)
    Sets the y.
    void
    setyBar(double yBar)
    Sets the y bar.
    To string.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TwoVarStats

      public TwoVarStats(double[] x, double[] y)
      Instantiates a new two var stats.
      Parameters:
      x - the x
      y - the y
  • Method Details

    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Object
      Returns:
      the 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