|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.co.agena.minerva.util.model.DataPoint
uk.co.agena.minerva.util.model.IntervalDataPoint
public class IntervalDataPoint
This class represents DataPoints that have an interval (e.g. [4.0, 4.5]) as their "x" value.
Field Summary |
---|
Fields inherited from class uk.co.agena.minerva.util.model.DataPoint |
---|
connObjectId, label, value, version |
Fields inherited from interface uk.co.agena.minerva.util.model.Writable |
---|
FIELD_SEPARATOR |
Constructor Summary | |
---|---|
IntervalDataPoint()
Default constructor. |
|
IntervalDataPoint(double intervalLowerBound,
double intervalUpperBound)
|
|
IntervalDataPoint(double value,
int connObjectId,
double intervalLowerBound,
double intervalUpperBound)
Constructs an IntervalDataPoint with the supplied value, connected object ID, lower bound and upper bound. |
|
IntervalDataPoint(java.lang.String label,
double intervalLowerBound,
double intervalUpperBound)
|
|
IntervalDataPoint(java.lang.String label,
double value,
int connObjectId,
double intervalLowerBound,
double intervalUpperBound)
Constructs an IntervalDataPoint with the supplied label, value, connected object ID, lower bound and upper bound. |
Method Summary | |
---|---|
double |
area()
This returns the "area" of the DataPoint i.e. |
java.lang.Object |
clone()
Makes a copy of the IntervalDataPoint. |
double |
getAdjustedValue()
This method will return the value adjusted for its probability mass. |
double |
getIntervalLowerBound()
Returns the lower bound of the "x" interval. |
double |
getIntervalUpperBound()
Returns the upper bound of the "x" interval. |
double |
getMidPoint()
Returns the mid point of the interval |
protected void |
readRestOfFields(java.util.StringTokenizer st)
|
void |
setIntervalLowerBound(double intervalLowerBound)
Sets the lower bound of the "x" interval. |
void |
setIntervalUpperBound(double intervalUpperBound)
Sets the upper bound of the "x" interval. |
java.lang.String |
toString()
Returns a String representation of the IntervalDataPoint. |
protected void |
writeRestOfFields(java.lang.StringBuffer sb)
|
Methods inherited from class uk.co.agena.minerva.util.model.DataPoint |
---|
getConnObjectId, getLabel, getValue, getVersion, read, setConnObjectId, setLabel, setValue, setVersion, toHTMLString, toString, write |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IntervalDataPoint()
public IntervalDataPoint(double value, int connObjectId, double intervalLowerBound, double intervalUpperBound) throws MinervaRangeException
value
- the "y" valueconnObjectId
- the ID of the object to which this IntervalDataPoint is connectedintervalLowerBound
- the lower bound of the "x" intervalintervalUpperBound
- the upper bound of the "x" interval
MinervaRangeException
- if the lower bound is greater than the upper boundpublic IntervalDataPoint(java.lang.String label, double value, int connObjectId, double intervalLowerBound, double intervalUpperBound) throws MinervaRangeException
label
- the IntervalDataPoint's labelvalue
- the "y" valueconnObjectId
- the ID of the object to which this IntervalDataPoint is connectedintervalLowerBound
- the lower bound of the "x" intervalintervalUpperBound
- the upper bound of the "x" interval
MinervaRangeException
- if the lower bound is greater than the upper boundpublic IntervalDataPoint(java.lang.String label, double intervalLowerBound, double intervalUpperBound)
public IntervalDataPoint(double intervalLowerBound, double intervalUpperBound)
Method Detail |
---|
public double getIntervalLowerBound()
public void setIntervalLowerBound(double intervalLowerBound)
intervalLowerBound
- the new lower bound of the intervalpublic double getIntervalUpperBound()
public void setIntervalUpperBound(double intervalUpperBound)
intervalUpperBound
- the new lower bound of the intervalpublic java.lang.Object clone()
clone
in class DataPoint
protected void readRestOfFields(java.util.StringTokenizer st)
readRestOfFields
in class DataPoint
protected void writeRestOfFields(java.lang.StringBuffer sb)
writeRestOfFields
in class DataPoint
public double area()
public double getMidPoint()
public double getAdjustedValue()
getAdjustedValue
in class DataPoint
public java.lang.String toString()
toString
in class DataPoint
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |