public class MoveVariable extends Variable implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static boolean |
backward |
static boolean |
forward |
MoveDescriptives |
itsMDescriptives |
double |
paintScaleX |
double |
paintScaleY |
double |
width |
autoExtracted, hasDefaultColors, isSorted, itsDescriptives, itsFormula, itsLineColor, itsLocationColor, kEuclidian, kGower, kJaccard, kManhattan, kSquEuclidian, plotMarker, rand
Constructor and Description |
---|
MoveVariable(java.lang.String varName,
VariableOrganizer theOrganizer)
Standard constructor for the MovesVariable class using a VariableOrganizer
|
Modifier and Type | Method and Description |
---|---|
void |
asCircularGraph()
Creates a presenter and plots the movement vectors as a circular graph
|
void |
asSpatialMap()
Creates a presenter and plots the locations
|
void |
asSpatialMap(boolean xDirection,
boolean yDirection)
Creates a presenter and plots the locations
|
void |
colorCodeSpeeds()
obtains the speed statistics for the variable using the currently
selected set of rows and color codes the rows with it
|
void |
fill(NumberVariable x,
NumberVariable y,
NumberVariable z,
IntegerVariable time)
fills the variable with moves starting from 0,0,0.
|
void |
fillDescriptives(java.lang.Double hypMean)
fills the descriptive circular statistics for the angle variable with a comparison to an external mean
|
void |
fillDescriptives(java.lang.Double hypVal,
boolean extraStats)
fills the descriptive statistics for the variable, at the root level only a check
for valid data points is performed
|
void |
fillMoreDescriptives()
fills additional descriptive statistics for the move variable
|
AngleVariable |
getAngles()
returns an array of distances for the moves
|
Capture |
getCaptureAtDistanceOnPath(int startCaptureIndex,
double distance,
boolean direction)
obtains a coordinate along the path at a given travel distance
|
Capture |
getCaptureAtTimeOnPath(java.util.Date time)
obtains a coordinate along the path at a given time
|
Capture |
getCaptureAtTimeOnPath(int startCaptureIndex,
long timeMillis)
obtains a coordinate along the path at a given time
|
Capture |
getCaptureAtTimeOnPath(long time)
obtains a coordinate along the path at a given time
|
CircularDescriptives |
getCircularDescriptives()
lists the speed statistics for the variable using the currently
selected set of rows
|
double |
getCombinedPaintedPathAreaSize()
makes the polygon that is covered by all the moves at a given width.
|
double |
getCombinedPathArea()
makes the polygon that is covered by all the moves at a given width.
|
double |
getDirectionalErrorToGoal(SpatialVector goal)
lists the speed statistics for the variable using the currently
selected set of rows
|
NumberVariable |
getDistances()
returns an array of distances for the moves
|
NumberVariable |
getDurations()
returns an array of speeds for the moves
|
IntegerVariable |
getEndTimes()
creates and returns a variable containing the end times for these moves
|
MoveDescriptives |
getMoveDescriptives()
fills and returns the Descriptives with the default cutoff for movement
|
MoveDescriptives |
getMoveDescriptives(double aCutoff)
fills and returns the Descriptives
|
MoveVector |
getMoveVector(int row)
returns the Move stored at a given row of the Vector
|
NumberVariable |
getSpeeds()
returns an array of speeds for the moves
|
IntegerVariable |
getStartTimes()
creates and returns a variable containing the start times for these moves
|
java.lang.String |
getStringValue(int row)
returns the value from a given row in the array as a String object
|
double |
getTimeSum()
returns the amount of time covered by the moves
|
double |
getTotalPaintedPathAreaSize()
makes the polygon that is covered by all the moves at a given width.
|
void |
listCircularDescriptives()
lists the speed statistics for the variable using the currently
selected set of rows
|
void |
makeNewDescriptives()
create a new set of descriptives for the variable
|
java.awt.image.BufferedImage |
paintPathPoly(int w,
int h,
int moveX,
int moveY,
double scaleX,
double scaleY)
makes the polygon that is covered by all the moves at a given width
|
java.awt.image.BufferedImage |
paintPathSegment(int w,
int h,
int moveX,
int moveY,
double scaleX,
double scaleY,
int row)
makes the polygon that is covered by all the moves at a given width
|
void |
setMovementCutoff(double aCutoff)
fills and returns the Descriptives with the default cutoff for movement
|
void |
setWidth(double w)
sets the width of the path
|
CaptureVariable |
toCaptureVariable()
returns the Move stored at a given row of the Vector
|
addValue, addValue, addValue, addValue, append, asJAMAMatrix, asVariableOrganizer, checkAllUseRows, checkLocked, checkMatchingRows, checkMinUseRows, checkNumberIDs, checkSameIDs, checkSameNRows, checkSameNSelectRows, checkSameSelectRows, checkSameSelectRows, checkSameUseRows, checkSameUseRows, checkValidRowRange, clone, cloneEmpty, cloneSelectedRowsOnly, cloneVariableFrom, combineSelectedWithSavedSelectedRows, copyDescriptives, copySelectStateFrom, customColorFromData, customColorSelectedRows, customColorSelectedRows, deleteAllRows, deleteDuplicateRows, deleteMissingRows, deleteNonSelectedRows, deleteRow, deleteRowNoCheck, deleteSelectedRows, deselectAllRows, fill, fill, fill, fill, fill, fill, fillDescriptives, fillWithParser, fillWithParser, fillWithVariable, findFirstSelectRow, findFirstUseRow, findLastSelectRow, findLastUseRow, findNextNonMissingRow, findNextSelectRow, findNextUseRow, findNextValue, findPreviousSelectRow, findPreviousUseRow, getabasedintValue, getAbasedintValue, getArray, getbooleanValue, getcharValue, getCombinedIDs, getCrossTabulation, getCrossTabulation, getCustomColorRow, getDescriptives, getdoubleArray, getdoubleValue, getDoubleValue, getfloatValue, getFrequencies, getHighliteColor, getHighlitedRow, getIDMap, getIDs, getIDString, getIDStrings, getInteractions, getintValue, getJaccard, getLineColor, getLocationColor, getlongValue, getManhattan, getMissingRow, getName, getNIDs, getNMissingRows, getNotes, getNRows, getNSelectRows, getNUseRows, getOrganizer, getProximity, getProximity, getRandomValue, getResampledVariable, getRowNumbers, getRowOrder, getRowOrderRow, getSelectRow, getStringArray, getTransitions, getUseRow, getValue, getVariableDesignRole, getVariableDesignRoleString, getVariableFormat, getVariableType, highliteSelectedRows, highliteSelectedRows, invalidDescriptives, invertSelectedRows, isAngleType, isContinuousType, isDateTimeFormat, isLocationType, isLocked, isNominalType, isNumberFormat, isOrdinalType, isStringFormat, isValidRowRange, isXVariable, isYVariable, listDescriptives, listDescriptives, listGroupDescriptives, listGroupDescriptivesNoDia, listRow, listRowOrder, listRows, listRows, listRows, listRows, listSelectedRows, listSelectState, listSelectState, listUseRows, makeTableSubSet, matchedIDs, replaceSelectedRows, resample, restoreSelectedRows, restrictToMatchingUseRows, restrictToMatchingUseRows, restrictToValidRowsOnly, reverseRows, saveRowsToFile, saveRowsToFile, saveSelectedRows, selectAllRows, selectDuplicateRows, selectEveryNthRow, selectRows, selectUseRows, selectValue, setAnglesType, setCustomColorRow, setFormula, setHighliteColor, setHighlitedRow, setLineColor, setLocationColor, setLocationsType, setLock, setMissingRow, setName, setNominalType, setNotes, setNRows, setOrdinalType, setOrganizer, setRowOrder, setRowOrderRow, setSelectRow, setSelectRows, setSelectRowsToMissing, setValue, setValue, setValue, setValue, setValue, setValue, setVariableDesignRole, setVariableFormat, setVariableType, sort, sort, sort2, updateRowOrder
add, add, addAll, addAll, addElement, capacity, clear, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
public MoveDescriptives itsMDescriptives
public static final boolean forward
public static final boolean backward
public double width
public double paintScaleX
public double paintScaleY
public MoveVariable(java.lang.String varName, VariableOrganizer theOrganizer) throws java.lang.Exception
varName
- assigns a name (String) to the variabletheOrganizer
- an instance of VariableOrganizer
class coordinates a set of variables with respect to number of data points available
and the rows that are currently selectedjava.lang.Exception
public MoveVector getMoveVector(int row) throws java.lang.Exception
row
- marks the row in the vectorjava.lang.Exception
public void fill(NumberVariable x, NumberVariable y, NumberVariable z, IntegerVariable time) throws java.lang.Exception
x
- the x coordinatesy
- the y coordinatesz
- the y coordinates, set this to null if the moves are 2D onlytime
- the time stamp for the capturejava.lang.Exception
public java.lang.String getStringValue(int row) throws java.lang.Exception
getStringValue
in class Variable
row
- marks the row in the vectorjava.lang.Exception
- if ...public NumberVariable getDistances() throws java.lang.Exception
java.lang.Exception
public AngleVariable getAngles() throws java.lang.Exception
java.lang.Exception
public NumberVariable getSpeeds() throws java.lang.Exception
java.lang.Exception
public IntegerVariable getStartTimes() throws java.lang.Exception
java.lang.Exception
public IntegerVariable getEndTimes() throws java.lang.Exception
java.lang.Exception
public NumberVariable getDurations() throws java.lang.Exception
java.lang.Exception
public void setWidth(double w)
public double getTimeSum() throws java.lang.Exception
java.lang.Exception
public void makeNewDescriptives()
makeNewDescriptives
in class Variable
public void fillDescriptives(java.lang.Double hypMean) throws java.lang.Exception
fillDescriptives
in class Variable
hypMean
- the value of the a-priori hypothesis meanjava.lang.Exception
- if ...public void fillDescriptives(java.lang.Double hypVal, boolean extraStats) throws java.lang.Exception
hypVal
- the value of the a-priori hypothesis meanextraStats
- add additional descriptivesjava.lang.Exception
public java.awt.image.BufferedImage paintPathPoly(int w, int h, int moveX, int moveY, double scaleX, double scaleY) throws java.lang.Exception
java.lang.Exception
public java.awt.image.BufferedImage paintPathSegment(int w, int h, int moveX, int moveY, double scaleX, double scaleY, int row) throws java.lang.Exception
java.lang.Exception
public void fillMoreDescriptives() throws java.lang.Exception
fillMoreDescriptives
in class Variable
java.lang.Exception
- if ...public void setMovementCutoff(double aCutoff)
public MoveDescriptives getMoveDescriptives() throws java.lang.Exception
java.lang.Exception
public MoveDescriptives getMoveDescriptives(double aCutoff) throws java.lang.Exception
aCutoff
- the cutoff value below which moves are considered stationaryjava.lang.Exception
public CircularDescriptives getCircularDescriptives() throws java.lang.Exception
java.lang.Exception
public void listCircularDescriptives() throws java.lang.Exception
java.lang.Exception
public double getCombinedPathArea() throws java.lang.Exception
java.lang.Exception
public double getCombinedPaintedPathAreaSize() throws java.lang.Exception
java.lang.Exception
public double getTotalPaintedPathAreaSize() throws java.lang.Exception
java.lang.Exception
public double getDirectionalErrorToGoal(SpatialVector goal) throws java.lang.Exception
java.lang.Exception
public void colorCodeSpeeds() throws java.lang.Exception
java.lang.Exception
public Capture getCaptureAtTimeOnPath(long time) throws java.lang.Exception
time
- find a capture at this time (in milliseconds)java.lang.Exception
public Capture getCaptureAtTimeOnPath(java.util.Date time) throws java.lang.Exception
time
- find a capture at this timejava.lang.Exception
public Capture getCaptureAtTimeOnPath(int startCaptureIndex, long timeMillis) throws java.lang.Exception
startCaptureIndex
- start from this pointtimeMillis
- find a capture at this time (milliseconds)java.lang.Exception
public Capture getCaptureAtDistanceOnPath(int startCaptureIndex, double distance, boolean direction) throws java.lang.Exception
startCaptureIndex
- start from this pointdistance
- find a capture at this distancedirection
- search in the direction of the path or against itjava.lang.Exception
public CaptureVariable toCaptureVariable() throws java.lang.Exception
java.lang.Exception
public void asSpatialMap()
public void asSpatialMap(boolean xDirection, boolean yDirection)
xDirection
- do x values increase from left to right?yDirection
- do y values increase from top to bottom?public void asCircularGraph()
RH, 2017