|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
JavaGrinders.Variable
JavaGrinders.NumberVariable
JavaGrinders.spatial.AngleVariable
public class AngleVariable
handles things that a general variable containing angles should do or know about. Based on a more generic Variable it supports ways to select rows using a variety of criteria, and reports descriptive (parametric) statistics. All numbers are stored and handled as Doubles.
| Field Summary |
|---|
| Fields inherited from class JavaGrinders.NumberVariable |
|---|
validDataSorted |
| Fields inherited from class JavaGrinders.Variable |
|---|
allData, autoExtracted, df, itsDescriptives, itsHighlitedColor, itsLineColor, itsLocationColor, rand |
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
AngleVariable(java.lang.String varName,
VariableOrganizer theOrganizer)
Standard constructor for the root number Variable class using a VariableOrganizer |
|
| Method Summary | |
|---|---|
void |
asCircularGraph()
Creates a presenter and plots the movement vectors as a circular graph |
double |
betweenAngle(double AngleFrom,
double AngleTo)
find the angle that is halfway between the two angles in a clockwise direction |
java.lang.Object |
clone()
clone the object |
CircularDescriptives |
copyCircularDescriptives()
returns descriptive Circular Statistic for the variable using the currently selected set of rows |
int |
countNEq(double AngleFrom,
double AngleTo)
find the number of angles that are between or equal the two angles in a clockwise direction |
int |
countNLe(double AngleFrom,
double AngleTo)
find the number of angles that are between or equal the two angles in a clockwise direction |
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 hypMean,
boolean extraStats)
fills the descriptive circular statistics for the angle variable with a comparison to an external mean |
AngleVariable |
fillInterestingAngles()
fills a variable with angles that should be examined |
AngleVariable |
fillInterestingMedianAngles()
fills a variable with angles that should be examined as median |
void |
fillMoreDescriptives()
fills the descriptive circular statistics for the angle variable |
void |
fillWithParser(DataFileParser aParser,
int varNum,
boolean firstRowAsLabels)
fills the variable with individual data values read from a textfile using a DataFileParser object |
void |
fillWithRandomFromDistribution(NumberVariable theDistribution)
fills the variable with random values from a Gaussian Distribution |
void |
fillWithUniformRandom()
fills the variable with random values from a uniform distribution between 0 and 360 |
int[] |
getAngleFrequencies()
creates and returns a variable containing the series of time distances between captures |
CircularDescriptives |
getCircularDescriptives()
returns descriptive Circular Statistic for the variable using the currently selected set of rows |
Descriptives |
getDescriptives()
returns the descriptives for the variable |
Descriptives |
getDescriptives(boolean extraStats)
returns the descriptives for the variable |
double |
getDistance(double AngleFrom,
double AngleTo)
find the angle that is halfway between the two angles in a clockwise direction |
Descriptives[] |
getGroupDescriptives(Variable theXVar)
lists the descriptives for the groups identified by X |
double |
getHodgesN()
fills the descriptive circular statistics for the angle variable |
double |
getHodgesP(double HodgesN)
returns the angle where the maximum number of angles are clustered within a range of 180 degrees |
double |
getMedian()
fills the descriptive circular statistics for the angle variable |
double |
getRaoSpacing()
returns Rao's Spacing Statistic for the variable using the currently selected set of rows. |
double |
getRayleighR()
returns Rayleigh's R Statistic for the variable using the currently selected set of rows |
double |
getRayleighZ()
returns Rayleigh's Z Statistic for the variable using the currently selected set of rows |
double |
getV(java.lang.Double hypothDegrees)
returns V for the Modified Rayleigh Test for Uniformity vs. |
ANOVAResults |
getWatsonU2Results(Variable theXVar)
returns the results from an analysis of differences in mean angles for a variable of locations |
ANOVAResults |
getWatsonWilliamsFResults(Variable theXVar)
returns the results from an analysis of differences in mean angles for a variable of locations |
ANOVAResults |
getWheelerWResults(Variable theXVar)
returns the results from an analysis of differences in mean angles for a variable of locations |
void |
listGroupDescriptiveItem()
lists the descriptives for the groups identified by X |
void |
listGroupDescriptives(Variable theXVar)
lists the descriptives for the groups identified by X |
void |
listGroupDescriptiveTitles()
lists the descriptives for the groups identified by X |
void |
makeNewDescriptives()
create a new set of descriptives for the variable the object |
double |
selectAngleRangeN(double AngleFrom,
double AngleTo)
select all rows with a value between the lower and upper limits provided. |
void |
selectRange(double AngleFrom,
double AngleTo,
boolean fromPrevSelected)
select all rows with a value between the lower and upper limits provided when moving in a clockwise fashion. |
void |
selectRange(double AngleFrom,
double AngleTo,
boolean clockWise,
boolean fromPrevSelected)
select all rows with a value between the lower and upper limits provided. |
void |
setAnglesType()
sets the variable to type ANGLES |
void |
setValue(int row,
java.lang.Object anObject)
sets a general object for a given row of the Vector |
void |
subtract(AngleVariable aAngleVar)
sets a double value for a given row of the Vector |
| Methods inherited from class java.util.Vector |
|---|
add, add, addAll, addAll, addElement, capacity, clear, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
iterator, listIterator, listIterator |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
iterator, listIterator, listIterator |
| Constructor Detail |
|---|
public AngleVariable(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 selected
java.lang.Exception| Method Detail |
|---|
public java.lang.Object clone()
clone in class Variable
public void setAnglesType()
throws java.lang.Exception
setAnglesType in class Variablejava.lang.Exception
public void fillWithParser(DataFileParser aParser,
int varNum,
boolean firstRowAsLabels)
throws java.lang.Exception
fillWithParser in class NumberVariableaParser - the DataFileParser that was used to
read data values from a text filevarNum - marks the number of the column to be filled into the variablefirstRowAsLabels - whether the first row contains a variable label
java.lang.Exception
public void fillWithUniformRandom()
throws java.lang.Exception
fillWithUniformRandom in class NumberVariablejava.lang.Exception
public void fillWithRandomFromDistribution(NumberVariable theDistribution)
throws java.lang.Exception
fillWithRandomFromDistribution in class NumberVariabletheDistribution - a distribution from which to sample random numbers
java.lang.Exception
public void setValue(int row,
java.lang.Object anObject)
throws java.lang.Exception
setValue in class Variablerow - marks the row in the vector for which to set the valueanObject - lists the Object to set for the row
java.lang.Exception
public void selectRange(double AngleFrom,
double AngleTo,
boolean fromPrevSelected)
throws java.lang.Exception
selectRange in class NumberVariableAngleFrom - the one limitAngleTo - the other limitfromPrevSelected - notes whether the search should only be performed on
currently selected rows
java.lang.Exception
public void selectRange(double AngleFrom,
double AngleTo,
boolean clockWise,
boolean fromPrevSelected)
throws java.lang.Exception
AngleFrom - the one limitAngleTo - the other limitclockWise - notes whether the search should be performed on in a clockwise fashionfromPrevSelected - notes whether the search should only be performed on
currently selected rows
java.lang.Exception
public double selectAngleRangeN(double AngleFrom,
double AngleTo)
throws java.lang.Exception
AngleFrom - the one limitAngleTo - the other limit
java.lang.Exception
public void listGroupDescriptives(Variable theXVar)
throws java.lang.Exception
listGroupDescriptives in class NumberVariabletheXVar - variable that contains information on group assignment
java.lang.Exceptionpublic void listGroupDescriptiveTitles()
public void listGroupDescriptiveItem()
throws java.lang.Exception
java.lang.Exceptionpublic void makeNewDescriptives()
makeNewDescriptives in class NumberVariable
public void fillDescriptives(java.lang.Double hypMean)
throws java.lang.Exception
fillDescriptives in class NumberVariablehypMean - the value of the a-priori hypothesis mean
java.lang.Exception
public void fillDescriptives(java.lang.Double hypMean,
boolean extraStats)
throws java.lang.Exception
hypMean - the value of the a-priori hypothesis meanextraStats - calculate additional circular statistics
java.lang.Exception
public void fillMoreDescriptives()
throws java.lang.Exception
java.lang.Exception
public CircularDescriptives getCircularDescriptives()
throws java.lang.Exception
java.lang.Exception
public CircularDescriptives copyCircularDescriptives()
throws java.lang.Exception
java.lang.Exception
public Descriptives[] getGroupDescriptives(Variable theXVar)
throws java.lang.Exception
getGroupDescriptives in class NumberVariabletheXVar - variable that contains information on group assignment
java.lang.Exception
public Descriptives getDescriptives()
throws java.lang.Exception
getDescriptives in class Variablejava.lang.Exception
public Descriptives getDescriptives(boolean extraStats)
throws java.lang.Exception
extraStats - calculate additional circular statistics
java.lang.Exception
public int countNEq(double AngleFrom,
double AngleTo)
throws java.lang.Exception
AngleFrom - the one limitAngleTo - the other limit
java.lang.Exception
public int countNLe(double AngleFrom,
double AngleTo)
throws java.lang.Exception
AngleFrom - the one limitAngleTo - the other limit
java.lang.Exception
public void subtract(AngleVariable aAngleVar)
throws java.lang.Exception
aAngleVar - the angles to subtract
java.lang.Exception
public double getDistance(double AngleFrom,
double AngleTo)
throws java.lang.Exception
AngleFrom - the one limitAngleTo - the other limit
java.lang.Exception
public double betweenAngle(double AngleFrom,
double AngleTo)
throws java.lang.Exception
AngleFrom - the one limitAngleTo - the other limit
java.lang.Exception
public int[] getAngleFrequencies()
throws java.lang.Exception
java.lang.Exception
public double getRayleighR()
throws java.lang.Exception
java.lang.Exception
public double getRayleighZ()
throws java.lang.Exception
java.lang.Exception
public double getRaoSpacing()
throws java.lang.Exception
java.lang.Exception
public double getV(java.lang.Double hypothDegrees)
throws java.lang.Exception
hypothDegrees - the degrees under the hypothesis
java.lang.Exception
public ANOVAResults getWatsonWilliamsFResults(Variable theXVar)
throws java.lang.Exception
theXVar - variable that contains information on group assignment
java.lang.Exception
public ANOVAResults getWatsonU2Results(Variable theXVar)
throws java.lang.Exception
theXVar - variable that contains information on group assignment
java.lang.Exception
public ANOVAResults getWheelerWResults(Variable theXVar)
throws java.lang.Exception
theXVar - variable that contains information on group assignment
java.lang.Exception
public AngleVariable fillInterestingAngles()
throws java.lang.Exception
java.lang.Exception
public AngleVariable fillInterestingMedianAngles()
throws java.lang.Exception
java.lang.Exception
public double getHodgesP(double HodgesN)
throws java.lang.Exception
HodgesN - the number of angles
java.lang.Exception
public double getHodgesN()
throws java.lang.Exception
java.lang.Exception
public double getMedian()
throws java.lang.Exception
java.lang.Exceptionpublic void asCircularGraph()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||