net.esper.view.stat
Class RegressionBean

java.lang.Object
  extended by net.esper.view.stat.BaseStatisticsBean
      extended by net.esper.view.stat.RegressionBean
All Implemented Interfaces:
Serializable, Cloneable

public final class RegressionBean
extends BaseStatisticsBean

Bean for calculating the regression slope and y intercept (same to Microsoft Excel LINEST function).

See Also:
Serialized Form

Constructor Summary
RegressionBean()
           
 
Method Summary
 double getSlope()
          Returns the slope.
 double getYIntercept()
          Returns the Y intercept.
 
Methods inherited from class net.esper.view.stat.BaseStatisticsBean
addPoint, addPoint, clone, getN, getSumXSq, getSumXY, getSumYSq, getXAverage, getXStandardDeviationPop, getXStandardDeviationSample, getXSum, getXVariance, getYAverage, getYStandardDeviationPop, getYStandardDeviationSample, getYSum, getYVariance, removePoint, removePoint, setDataPoints, setSumX, setSumXSq, setSumXY, setSumY, setSumYSq, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegressionBean

public RegressionBean()
Method Detail

getYIntercept

public double getYIntercept()
Returns the Y intercept.

Returns:
Y intercept

getSlope

public double getSlope()
Returns the slope.

Returns:
regression slope