nl.liacs.subdisc
Class RegressionMeasure
java.lang.Object
nl.liacs.subdisc.RegressionMeasure
public class RegressionMeasure
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
itsType
public static int itsType
RegressionMeasure
public RegressionMeasure(int theType,
Column thePrimaryColumn,
Column theSecondaryColumn)
RegressionMeasure
public RegressionMeasure(RegressionMeasure theBase,
java.util.BitSet theMembers)
getEvaluationMeasureValue
public double getEvaluationMeasureValue()
getSSD
public double getSSD()
calculate
public double calculate(Subgroup theNewSubgroup)
addObservation
public void addObservation(float theY,
float theX)
- Add a new datapoint to this measure, where the Y-value is the target variable.
Always call update() after all datapoints have been added.
- Parameters:
theY
- the Y-value, the targettheX
- the X-value
addObservation
public void addObservation(DataPoint theObservation)
getObservation
public DataPoint getObservation(int theIndex)
getSampleSize
public int getSampleSize()
getXSum
public double getXSum()
getYSum
public double getYSum()
getXYSum
public double getXYSum()
getXSquaredSum
public double getXSquaredSum()
getYSquaredSum
public double getYSquaredSum()
getCorrelation
public double getCorrelation()
- Computes and returns the correlation given the observations contained by CorrelationMeasure
- Returns:
- the computed correlation
getSlope
public double getSlope()
getIntercept
public double getIntercept()
getBaseFunctionValue
public double getBaseFunctionValue(double theX)
getNrBoundSeven
public int getNrBoundSeven()
getNrBoundSix
public int getNrBoundSix()
getNrBoundFive
public int getNrBoundFive()
getNrBoundFour
public int getNrBoundFour()
getNrRankDef
public int getNrRankDef()