|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fsmvis.data.DataItem
Field Summary | |
protected static double[] |
average
|
protected java.awt.Color |
color
|
static java.awt.Color |
DEFAULT_COLOR
|
protected Vect |
force
|
protected static java.util.ArrayList |
idfValues
|
protected double |
ORD_FACTOR
|
protected Coordinate |
position
|
protected static double[] |
sigma
|
protected static double |
stdDevs
|
protected java.lang.Object[] |
values
|
protected Vect |
velocity
|
Constructor Summary | |
DataItem(java.lang.Object[] values)
constructor: takes an array of values |
Method Summary | |
static double[] |
average()
|
java.awt.Color |
getColor()
Returns the color of this data item |
double |
getDistanceTo(DataItem other,
boolean withKMeans)
Calculates the distance metric to another data item |
Vect |
getForce()
Returns the vector force object associated with this object |
Coordinate |
getPosition()
Returns the current position coordinate of this data item |
java.lang.Object[] |
getValues()
Returns the collection of values that this DataItem contains |
Vect |
getVelocity()
Returns the current velocity of this object |
void |
setColor(java.awt.Color color)
Sets the color of this data item |
void |
setForce(Vect force)
Sets the forces associated with this object to be force |
static void |
setNormalizeData(double[] sigma,
double[] average,
double stdDevs)
sets up the normalization data that all data item will use |
void |
setPosition(Coordinate position)
Sets the layout position for this object to be the point |
void |
setVelocity(Vect velocity)
Sets the velocity of this object to be the new value velocity |
static double[] |
sigma()
|
static double |
stdDevs()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.lang.Object[] values
protected Coordinate position
protected Vect force
protected Vect velocity
protected java.awt.Color color
protected static double[] sigma
protected static double[] average
protected static double stdDevs
protected static java.util.ArrayList idfValues
public static final java.awt.Color DEFAULT_COLOR
protected final double ORD_FACTOR
Constructor Detail |
public DataItem(java.lang.Object[] values)
values
- The array of object valuesMethod Detail |
public static double[] sigma()
public static double[] average()
public static double stdDevs()
public java.lang.Object[] getValues()
public Coordinate getPosition()
public void setPosition(Coordinate position)
position
- The coordinate for the position of this objectpublic Vect getForce()
public void setForce(Vect force)
force
- The new force value to associate with this objectpublic Vect getVelocity()
public void setVelocity(Vect velocity)
velocity
- The new velocity of this objectpublic java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- the new color for this data itempublic double getDistanceTo(DataItem other, boolean withKMeans)
other
- public static void setNormalizeData(double[] sigma, double[] average, double stdDevs)
sigma
- average
- stdDevs
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |