|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ascape.util.data.DataPointConcrete
public abstract class DataPointConcrete
An class providing a data point for a given object. A data point is just some interpretation of an object's state as a double value.
Field Summary | |
---|---|
static double |
equalsEpsilon
|
static float |
equalsEpsilonFloat
|
Constructor Summary | |
---|---|
DataPointConcrete()
Constructs a concrete instantiation of a color feature. |
|
DataPointConcrete(java.lang.String name)
Constructs a concrete instantiation of a color feature with the supplied name. |
Method Summary | |
---|---|
static boolean |
equals(DataPoint dataPoint,
java.lang.Object o1,
java.lang.Object o2)
Return true if the objects as interprested by the supplied datapoint are equal within some tolerance defined by epsilon (10^-9) |
static boolean |
equals(double v1,
double v2)
Return true if the values supplied are equal within some tolerance defined by equalsEpsilon |
static boolean |
equals(float v1,
float v2)
Return true if the values supplied are equal within some tolerance defined by equalsEpsilonFloat |
boolean |
equals(java.lang.Object o1,
java.lang.Object o2)
Return true if the objects as interprested by this datapoint are equal within some tolerance defined by epsilon (10^-9) |
static double |
getEqualsEpsilon()
Gets the equalsEpsilon for the DataValue class. |
static double |
getEqualsEpsilonFloat()
Gets the equalsEpsilonFloat for the DataValue class. |
java.lang.String |
getName()
Returns a name for the object as defined by set name. |
abstract double |
getValue(java.lang.Object object)
Returns the value of a given data point from a given object. |
void |
setName(java.lang.String name)
Sets the name of this data point. |
double |
sum(java.util.Collection collection)
Calcualtes the total across the entire collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final float equalsEpsilonFloat
public static final double equalsEpsilon
Constructor Detail |
---|
public DataPointConcrete()
public DataPointConcrete(java.lang.String name)
name
- the user relevant name of the featureMethod Detail |
---|
public java.lang.String getName()
getName
in interface DataPoint
getName
in interface HasName
public final void setName(java.lang.String name)
name
- a user relevant name for this featurepublic abstract double getValue(java.lang.Object object)
getValue
in interface DataPoint
object
- the object to extract the value from.public double sum(java.util.Collection collection)
collection
-
public boolean equals(java.lang.Object o1, java.lang.Object o2)
public static final boolean equals(DataPoint dataPoint, java.lang.Object o1, java.lang.Object o2)
public static final boolean equals(double v1, double v2)
public static final boolean equals(float v1, float v2)
public static double getEqualsEpsilon()
public static double getEqualsEpsilonFloat()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |