mondrian.olap.fun
Class LinReg.Value

java.lang.Object
  extended by mondrian.olap.fun.LinReg.Value
Enclosing class:
LinReg

static class LinReg.Value
extends Object

 

Field Summary
(package private)  double intercept
          The intercept for the linear regression model.
(package private)  double rSquared
          the coefficient of determination
(package private)  double slope
          The slope for the linear regression model.
(package private)  double variance
          variance = sum square diff mean / n - 1
 
Constructor Summary
LinReg.Value(double intercept, double slope, List xs, List ys)
           
 
Method Summary
 double getIntercept()
           
 double getRSquared()
           
 double getSlope()
           
 double getVariance()
           
 void setRSquared(double rSquared)
          strength of the correlation
 void setVariance(double variance)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

intercept

double intercept
The intercept for the linear regression model. Initialized following a call to accuracy.


slope

double slope
The slope for the linear regression model. Initialized following a call to accuracy.


rSquared

double rSquared
the coefficient of determination


variance

double variance
variance = sum square diff mean / n - 1

Constructor Detail

LinReg.Value

LinReg.Value(double intercept,
             double slope,
             List xs,
             List ys)
Method Detail

getIntercept

public double getIntercept()

getSlope

public double getSlope()

getRSquared

public double getRSquared()

setRSquared

public void setRSquared(double rSquared)
strength of the correlation

Parameters:
rSquared -

getVariance

public double getVariance()

setVariance

public void setVariance(double variance)

toString

public String toString()
Overrides:
toString in class Object

SourceForge.net_Logo