|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fsmvis.data.DataItemCollection
Field Summary | |
protected double[] |
average
|
protected java.util.ArrayList |
columns
|
protected java.util.ArrayList |
dataItems
|
static int |
DATE
|
protected double[][] |
desiredDist
|
static int |
DOUBLE
|
protected java.util.ArrayList |
fields
|
static int |
INTEGER
|
protected boolean |
isNormalized
|
static boolean |
KMEANS
|
protected double |
layoutBounds
|
protected double |
maxDist
|
protected java.util.ArrayList |
maximums
|
protected double |
mean
|
protected double |
minDist
|
protected java.util.ArrayList |
minimums
|
static boolean |
NO_KMEANS
|
protected boolean |
normalising
|
protected double |
ORD_FACTOR
|
protected double |
sig
|
protected double[] |
sigma
|
protected int |
size
|
protected double |
STANDARD_DEVS
|
static int |
STRING
|
protected double |
sumHDSquares
|
protected double |
sumHDVals
|
protected double[] |
sumOfSquares
|
protected double[] |
sumOfVals
|
protected java.util.ArrayList |
types
|
protected double |
unrelatedDist
|
protected boolean |
useSamples
|
Constructor Summary | |
DataItemCollection()
Constructor |
Method Summary | |
void |
addItem(DataItem data)
adds a DataItem to this collection of dataItems |
void |
calcDesiredDistances()
Calculates the desired distances array by using a similarity metric on every object with every other object. |
void |
calcNormValues()
Calculates approximations of sigma and mean needed to normalise distance data by taking a sample of distances from the full data set |
void |
calcNormValues(java.util.ArrayList sample)
Calculates approximations of sigma and mean needed to normalise distance data by taking a sample of distances from the subset |
double |
getAverageError()
Returns the average error in the system, this is the average distance that a dataItem is from its desired distance |
double |
getAvgVelocity()
Returns the average velocity of dataItems in the collection |
java.util.ArrayList |
getColumn(int colNum)
Returns the data from a specified "column". |
DataItem |
getDataItem(int index)
Returns the data item stored at location with index int index |
java.util.ArrayList |
getDataItems()
Accessor method for the main collection held within this class |
double |
getDesiredDist(int item1,
int item2)
Returns the desired distance between these two objects. |
double |
getDesiredDist(int item1,
int item2,
java.lang.String s)
Returns the desired distance between these two objects. |
java.util.ArrayList |
getFields()
Returns the names of the fields that this collection contains |
java.lang.Object |
getMaximum(int col)
Returns the maximum value for a particular column, this will either be of type Integer, Double or Date. |
java.util.ArrayList |
getMaximums()
Returns the arraylist of the maximum values for each column in the data set. |
java.lang.Object |
getMinimum(int col)
Returns the minimum value for a particular column, this will either be of type Integer, Double or Date. |
java.util.ArrayList |
getMinimums()
Returns the arraylist of the minimum values for each column in the data set. |
int |
getNumFields()
Returns the number of fields in each of the records under analysis. |
int |
getSize()
Returns the size of this data item collection |
java.util.ArrayList |
getTypes()
Returns the arrayList of types that this class contains |
double |
getUnrelatedDist()
Returns the distance after which two objects are considered to be unrelated. |
void |
normalizeDesiredDists(double layoutBounds)
Normalizes the desired distance data to be within layoutBounds, does this by normalizing by STANDARD_DEVS standard deviations. |
void |
refresh()
Called when deserialized, refreshes any data item values which were not stored with serialization. |
void |
setFields(java.util.ArrayList fields)
Sets the fields that this collection represents to be fields |
void |
setNormalizeData(double[] sumOfVals,
double[] sumOfSquares)
Sets the values used for data normalization, the arrays contain values for each column in the data set, which contains numeric data. |
void |
setTypes(java.util.ArrayList types)
Sets the types that this collection represents to be types |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.util.ArrayList types
protected java.util.ArrayList fields
protected java.util.ArrayList dataItems
protected java.util.ArrayList columns
protected java.util.ArrayList maximums
protected java.util.ArrayList minimums
protected int size
protected boolean isNormalized
protected boolean normalising
protected boolean useSamples
protected double layoutBounds
protected double mean
protected double sig
protected double[][] desiredDist
protected double[] sumOfVals
protected double[] sumOfSquares
protected double[] average
protected double[] sigma
protected double sumHDVals
protected double sumHDSquares
protected double maxDist
protected double minDist
protected double unrelatedDist
protected final double ORD_FACTOR
protected final double STANDARD_DEVS
public static final int STRING
public static final int DATE
public static final int INTEGER
public static final int DOUBLE
public static final boolean KMEANS
public static final boolean NO_KMEANS
Constructor Detail |
public DataItemCollection()
Method Detail |
public void addItem(DataItem data)
data
- The data item to be addedpublic void setTypes(java.util.ArrayList types)
types
- The collection of types to be usedpublic java.util.ArrayList getTypes()
public void setFields(java.util.ArrayList fields)
fields
- The collection of fields to be usedpublic java.util.ArrayList getFields()
public void setNormalizeData(double[] sumOfVals, double[] sumOfSquares)
sumOfVals
- The sum of all values in each columnsumOfSquares
- The sum of squares of all values in each columnpublic void normalizeDesiredDists(double layoutBounds)
layoutBounds
- public void calcDesiredDistances()
public void refresh()
public double getDesiredDist(int item1, int item2)
item1
- The first object in the distance relationitem2
- The second objectpublic double getDesiredDist(int item1, int item2, java.lang.String s)
item1
- The first object in the distance relationitem2
- The second objectpublic void calcNormValues()
public void calcNormValues(java.util.ArrayList sample)
subset
- The subset of values being initially laid outpublic double getAverageError()
public double getAvgVelocity()
public java.util.ArrayList getDataItems()
public DataItem getDataItem(int index)
index
- The index of the dataItem that is requiredpublic java.util.ArrayList getColumn(int colNum)
colNum
- The required column numberpublic java.util.ArrayList getMaximums()
public java.lang.Object getMaximum(int col)
col
- The column number of the maximum requiredpublic java.util.ArrayList getMinimums()
public java.lang.Object getMinimum(int col)
col
- The column number of the minimum requiredpublic int getSize()
public int getNumFields()
public double getUnrelatedDist()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |