|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fsmvis.engine.SpringModel | +--fsmvis.engine.NeighbourAndSampleModel | +--fsmvis.engine.SubsetNeighbourAndSampleModel
Field Summary | |
protected boolean |
kmeans
|
protected java.util.HashSet |
numbers
|
protected static java.lang.String |
ROOT_N_FACTOR
|
protected static int |
rootNFactor
|
protected java.util.ArrayList |
subset
|
protected java.util.HashSet |
subsetContents
|
protected int |
subsetSize
|
Fields inherited from class fsmvis.engine.NeighbourAndSampleModel |
NEIGHBOUR_SIZE,
neighbours,
neighbourSize,
SAMPLE_SIZE,
samples,
sampleSize |
Fields inherited from class fsmvis.engine.SpringModel |
dampingFactor,
dataItems,
dataSizeFactor,
deltaTime,
endC,
force,
freeness,
gravityDampingForce,
gravityForce,
kMeansTime,
layoutBounds,
numIterations,
position,
properties,
rangeHi,
rangeLo,
runningTime,
springForce,
startTime,
timeDampingForce,
timeForce,
unrelatedDist,
velocity,
viewParent |
Constructor Summary | |
SubsetNeighbourAndSampleModel(DataItemCollection dataItems,
EndCriteria ec,
Viewer v)
constructor: specifies the data item collection to be used |
|
SubsetNeighbourAndSampleModel(DataItemCollection dataItems,
int[] intSubSet,
EndCriteria ec,
Viewer v,
int kTime)
2nd constructor: specifies the data item collection to be used and the subset. |
Method Summary | |
void |
doIteration()
Method to perform one iteration of the layout algorithm for this layout model |
void |
doNormalise()
Instruction to normalise data for spring model |
double |
getApproxError()
Calculates the approximate error in this layout, does this by calcing the value for a subset of the data set to get an approximation of the error without slowing down the layout too much. |
double |
getApproxVelocity()
Returns an approximation of the average error in the data set |
double |
getAvgError()
Returns the average error in the data set |
double |
getAvgVelocity()
Returns the average velocity in the data set |
double |
getStress()
Calculates stress over sample |
int |
getSubsetSize()
Returns the subset size that is being used for this layout |
void |
initValues()
Initialises the values for this class, over rides the method in Spring model. |
void |
iterateFullSet()
Method to perform one iteration of the layout algorithm for the full data set |
void |
loadProperties()
Initialises the properties for this object to be the properties held for this object |
protected void |
randomizeSample(int index)
Creates a new arrayList of random numbers to be used by the samples ArrayList. |
void |
setSubset(java.util.ArrayList subset)
Sets the subset of dataItems to be used with this layout model to be the arraylist of integers subset |
void |
setSubsetSize(int subsetSize)
Sets the subsetSize to be subsetSize |
Methods inherited from class fsmvis.engine.NeighbourAndSampleModel |
calcForces,
findNewNeighbours,
randomizeSample,
setSizes |
Methods inherited from class fsmvis.engine.SpringModel |
addForces,
calcGravityForce,
calcTimeForce,
getDataItem,
getDataItemCollection,
getDisplayableItems,
getExecutionTime,
getNumIterations,
getPosition,
getProperties,
init,
integrateChanges,
randomizePositions,
resetIterations,
setDataItemCollection,
updateValues |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.util.ArrayList subset
protected java.util.HashSet subsetContents
protected int subsetSize
protected static int rootNFactor
protected static final java.lang.String ROOT_N_FACTOR
protected boolean kmeans
protected java.util.HashSet numbers
Constructor Detail |
public SubsetNeighbourAndSampleModel(DataItemCollection dataItems, EndCriteria ec, Viewer v)
dataItems
- The data item collection to be used with this layout
modelpublic SubsetNeighbourAndSampleModel(DataItemCollection dataItems, int[] intSubSet, EndCriteria ec, Viewer v, int kTime)
dataItems
- The data item collection to be used with this layout
modelMethod Detail |
public void doNormalise()
public void loadProperties()
public void initValues()
public void setSubset(java.util.ArrayList subset)
subset
- The subset to be usedpublic void iterateFullSet()
public void doIteration() throws TooManyIterationsException
protected void randomizeSample(int index)
index
- The index of the samples arrayList to store the resultpublic int getSubsetSize()
public void setSubsetSize(int subsetSize)
subsetSize
- The new size of the subsetpublic double getApproxError()
public double getAvgError()
public double getApproxVelocity()
public double getAvgVelocity()
public double getStress()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |