|
|||||||||
| 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
public class Variable
handles things that a general variable should do or know about. It is based on the Vector class. This class can query and set the number of entries in the array, find selected rows for analysis using a variety of criteria, list the content, report descriptive statistics, identify how many unique IDs there are, compares these with other IDs, and reports them, etc.
| Field Summary | |
|---|---|
boolean |
autoExtracted
|
java.text.DecimalFormat |
df
|
boolean |
doWarnings
|
Descriptives |
itsDescriptives
|
java.awt.Color |
itsHighlitedColor
|
java.awt.Color |
itsLineColor
|
java.awt.Color |
itsLocationColor
|
RandomNumberGenerator |
rand
|
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
Variable(java.lang.String varName,
VariableOrganizer theOwner)
Standard constructor for the root Variable class using a VariableOrganizer |
|
| Method Summary | |
|---|---|
void |
addValue(java.lang.Object anObject)
appends an Object to the end of the Variable |
Matrix |
asJAMAMatrix()
returns a matrix for the variables in the variableorganizer which have been selected as dependent variables (i.e., VariableDesignRole.Y) and which are ordinal or nominal |
VariableOrganizer |
asVariableOrganizer()
returns the variable as a variable organizer filled with this variable |
boolean |
checkMinUseRows(int minRows)
examines whether a minimum number rows is selected |
void |
checkNumberIDs(int compareTo)
checks whether there is a given number of distinct IDs present in the currently selected set of rows |
void |
checkSameIDs(Variable theOtherVariable)
checks whether two variables have identical sets of distinct IDs in the currently selected set of rows |
boolean |
checkSameSelectRows(Variable theVar)
examines whether the same rows are selected as in another variable |
boolean |
checkSameSelectRows(VariableOrganizer theVarOrganizer)
examines whether the same rows are selected as in another variable |
boolean |
checkSameUseRows(Variable theVar)
examines whether the same rows are selected and not missing as in another variable |
boolean |
checkSameUseRows(VariableOrganizer theVarOrganizer)
examines whether the same rows are selected and not missing as in another variable |
boolean |
checkValidRowRange(int row)
checks whether a given row is within a valid range |
void |
combineSelectedWithSavedSelectedRows()
invert select rows |
void |
copySelectStateFrom(Variable aVar)
sets the select flag for all rows based on select state of another variable |
void |
customColorSelectedRows(java.awt.Color aColor,
boolean addToPreviousSet)
sets a custom colors for all selected rows |
void |
deleteMissingRows()
deletes all missing rows |
void |
deleteNonSelectedRows()
delete all non-selected rows |
void |
deleteRow(int row)
delete a row from the Variable |
void |
deleteRows()
delete all rows from the Variable |
void |
deleteSelectedRows()
deletes all selected rows |
void |
deselectAllRows()
sets the select flag for all rows to false |
void |
deselectRows(java.lang.Object whichValue,
boolean fromPrevSelected)
deselects rows that match a given object from the currently selected set of rows |
void |
fill(double[] theData)
fills the variable with individual datavalues from a double array |
void |
fill(int[] theData)
fills the variable with individual datavalues from a double array |
void |
fill(int nRows,
java.lang.Object aValue)
fills the variable with the given value in every row. |
void |
fill(int nRows,
java.lang.Object[] theData)
fills the variable with the given value in every row. |
void |
fill(java.lang.String[] theData)
fills the variable with individual datavalues from a double array |
void |
fillDescriptives(Descriptives theDescriptives)
fills the descriptive statistics for the variable, at the root level only a check for valid data points is performed |
void |
fillWithParser(DataFileParser aParser,
int varNum)
fills the variable with individual datavalues read from a textfile using a DataFileParser object. |
void |
fillWithParser(DataFileParser aParser,
int varNum,
boolean firstRowAsLabels)
fills the variable with individual datavalues read from a textfile using a DataFileParser object. |
void |
fillWithVariable(Variable aVar)
fills the variable as a clone of the variable |
int |
findFirstValidRow()
returns the first selected row of the variable |
int |
findLastValidRow()
returns the last selected row of the variable |
int |
findNextNonMissingRow(int startSearchAt)
returns the next selected row after a given row |
int |
findNextValidRow(int startSearchAt)
returns the next selected row after a given row |
int |
findPreviousValidRow(int startSearchAt)
returns the next lower selected row before a given row |
int |
getabasedintValue(int row)
returns the instance of char stored at a given row of the Vector and converts it into an integer starting with 0 at a char of 'a' |
int |
getAbasedintValue(int row)
returns the instance of char stored at a given row of the Vector and converts it into an integer starting with 0 at a char of 'A' |
boolean |
getbooleanValue(int row)
returns the value stored at a given row of the Vector as a boolean |
char |
getcharValue(int row)
returns the instance of char stored at a given row in the Vector |
java.util.TreeMap |
getCombinedIDs(Variable theOtherVariable)
returns a TreeMap containing all different values found in either this variable using the currently selected set of rows or in the selected rows of a second variable |
ContingencyTable |
getCrossTabulation(Variable theXVariable,
boolean sameIDs,
boolean includeDiagonal)
returns a crosstabulation of values for two variables in form of a matrix |
ContingencyTable |
getCrossTabulation(Variable theXVariable,
java.util.TreeMap xHash,
java.util.TreeMap yHash,
boolean includeDiagonal)
returns a crosstabulation of values for two variables in form of a matrix |
java.awt.Color |
getCustomColorRow(int row)
returns the custom color for a given row. |
Descriptives |
getDescriptives()
returns the descriptives for the variable |
double[] |
getdoubleArray(boolean selected)
returns an array of double values of the Vector |
double |
getdoubleValue(int row)
returns the value stored at a given row of the Vector as a double |
float |
getfloatValue(int row)
returns the value stored at a given row of the Vector as a float |
boolean |
getHighlitedRow(int row)
returns whether a given row is currently highlited. |
java.util.TreeMap |
getIDs()
returns a TreeMap containing all different values found in the variable using the currently selected set of rows |
java.lang.String |
getIDString(int theIndex)
returns a single entry for a key in the TreeMap as a String |
java.lang.String[] |
getIDStrings()
returns the keys in the TreeMap as strings |
InteractionTable |
getInteractions(Variable theXVariable)
returns a crosstabulation of values for two variables in form of an interaction matrix |
int |
getintValue(int row)
returns the value stored at a given row of the Vector as an int |
double |
getJaccard(Variable aVar)
returns the Manhattan proximity measure to another variable |
long |
getlongValue(int row)
returns the instance of long stored at a given row in the Vector |
double |
getManhattan(Variable aVar)
returns the Manhattan proximity measure to another variable |
boolean |
getMissingRow(int row)
returns whether a given row is currently missing. |
java.lang.String |
getName()
returns the name of the Variable |
int |
getNIDs()
returns the number of different values present in the currently selected set of rows |
int |
getNMissingRows()
returns the number of missing rows in the currently selected set |
java.lang.String |
getNotes()
returns the Notes of the Variable |
int |
getNRows()
returns the number of rows in the Variable |
int |
getNSelectRows()
returns the number of currently selected rows for the variable |
int |
getNUseRows()
returns the number of usable rows in the currently selected set |
int |
getNValidRows()
returns the number of currently selected rows for the variable which do not have missing values |
VariableOrganizer |
getOrganizer()
returns the VariableOrganizer for the Variable |
double |
getProximity(Variable aVar)
returns the proximity measure to another variable |
double |
getProximity(Variable aVar,
int How)
returns the proximity measure to another variable |
java.lang.Object |
getRandomValue()
returns the object stored at a randomly selected row of the Vector |
boolean |
getSelectRow(int row)
returns whether a given row is currently selected. |
double |
getSquEuclidian(Variable aVar)
returns the Euclidian proximity measure to another variable |
java.lang.String[] |
getStringArray(boolean selected)
returns the object stored at a given row of the Vector as a String |
java.lang.String |
getStringValue(int row)
returns the object stored at a given row of the Vector as a String |
ContingencyTable |
getTransitions()
returns the transitions among consecutive values in form of a matrix |
boolean |
getUseRow(int row)
returns whether a given row can be used. |
java.lang.Object |
getValue(int row)
returns the object stored at a given row of the Vector |
int |
getVariableDesignRole()
returns the variable design role |
java.lang.String |
getVariableDesignRoleString()
returns the variable design role as a character string |
int |
getVariableFormat()
returns the variable format |
int |
getVariableType()
returns the variable type |
void |
highliteSelectedRows(boolean addToPreviousSet)
highlites all selected rows |
void |
invalidDescriptives()
descriptive stats need to be updated |
void |
invertSelectedRows()
invert select rows |
boolean |
isAngleType()
returns whether the variable is of type ANGLES |
boolean |
isContinuousType()
returns whether the variable is of type CONTINUOUS |
boolean |
isLocationType()
returns whether the variable is of type LOCATIONS |
boolean |
isLocked()
returns whether a variable is locked for further selections, modifications, etc. |
boolean |
isNominalType()
returns whether the variable is of type NOMINAL |
boolean |
isOrdinalType()
returns whether the variable is of type ORDINAL |
boolean |
isXVariable()
is the variable selected as an independent variable |
boolean |
isYVariable()
is the variable selected as a dependent variable |
void |
listBasics()
lists the basic info for the variable using the currently selected set of rows |
void |
listDescriptives()
lists the descriptive statistics for the variable using the currently selected set of rows |
void |
listFrequencies(int maxInstances)
lists the frequencies for different instances of the variable using the currently selected set of rows up to the specified number of maxInstances |
void |
listGroupDescriptives(Variable theXVariable)
lists the descriptives for the groups identified by X |
void |
listGroupDescriptivesNoDia(Variable theXVariable)
lists the descriptives for the groups identified by X |
void |
listIDs()
lists the different values found in the currently selected rows of the variable |
void |
listRows()
lists all data values in the variable |
void |
listRows(int startLine,
int endLine,
boolean selectedOnly)
lists data values for a range of rows |
void |
listSelectedRows()
lists data values for all selected rows in the variable |
void |
listSelectState()
lists for each row whether it is selected or not |
void |
listSelectState(int startLine,
int endLine)
lists for a range of rows whether it is selected or not |
void |
listUseRows()
lists data values for all selected rows in the variable |
boolean |
matchedIDs(java.util.TreeMap theOtherIDs)
returns whether there is a value in this variable that is not present in a given TreeMap |
boolean |
reportWarnings()
should warnings be reported? |
void |
restoreSelectedRows()
restores the select flag for all rows from a previously saved set |
void |
restrictToMatchingUseRows(Variable aVar)
restricts the use flag to those rows that are usable in both variables |
void |
restrictToMatchingUseRows(VariableOrganizer aVarOrg)
restricts the use flag to those rows that are usable in the variables as well as in the Organizer |
void |
reverseRows(int a1,
int a2,
boolean checkForOrganizer)
reverses the values of two given rows |
void |
saveSelectedRows()
saves the select flag for all rows |
void |
selectAllRows()
sets the select flag for all rows to true |
void |
selectRows(int start,
int end)
sets the select flag for all rows to true |
void |
selectStringValue(java.lang.Object whichValue,
boolean fromPrevSelected)
selects all rows that match a given value in a given variable with the option to select from the previous set, all comparisons are made on Strings, irrespective of what format the data are in |
void |
selectUseRows()
restricts the use flag to those rows that are usable in both variables |
void |
selectValue(java.lang.Object whichValue,
boolean fromPrevSelected)
selects rows that match a given object from the currently selected set of rows |
void |
setAnglesType()
sets the variable to type ANGLES |
void |
setCustomColorRow(int row,
java.awt.Color aColor)
sets the highlite flag for a given row |
void |
setFormula(java.lang.String aFormula)
sets a formula for a given vector |
void |
setHighliteColor(java.awt.Color aColor)
sets a highlite color for the animal |
void |
setHighlitedRow(int row,
boolean highlite)
sets the highlite flag for a given row |
void |
setLineColor(java.awt.Color aColor)
sets a line color for the animal |
void |
setLocationColor(java.awt.Color aColor)
sets a location color for the animal |
void |
setLock(boolean lock)
sets whether a variable is locked for further selections, modifications, etc. |
void |
setMissingRow(int row,
boolean missing)
sets the missing flag for a given row |
void |
setName(java.lang.String varName)
sets the name of the variable to the String provided |
void |
setNominalType()
sets the variable to type NOMINAL |
void |
setNotes(java.lang.String varNotes)
sets the notes for the variable |
void |
setNRows(int rows)
sets the number of rows for the Variable |
void |
setOrdinalType()
sets the variable to type ORDINAL |
void |
setOrganizer(VariableOrganizer theOrganizer)
sets a VariableOrganizer for the Variable |
void |
setSelectRow(int row,
boolean select)
sets the select flag for a given row |
void |
setSelectRowsToMissing()
sets all selected rows to missing |
void |
setValue(int row,
boolean aBoolean)
sets a boolean value for a given row of the Vector |
void |
setValue(int row,
char aChar)
sets a char value for a given row in the Vector |
void |
setValue(int row,
double aDouble)
sets a double value for a given row of the Vector |
void |
setValue(int row,
float aFloat)
sets a float value for a given row of the Vector |
void |
setValue(int row,
int aInt)
sets an integer value for a given row of the Vector |
void |
setValue(int row,
java.lang.Object anObject)
sets a general object for a given row of the Vector |
void |
setVariableDesignRole(int vDesignRole)
sets the design role for the variable |
void |
setVariableFormat(int vFormat)
sets the variable format |
void |
setVariableType(int vType)
sets the variable type |
void |
setWarnings(boolean doWarnings)
sets the report for warning |
void |
sort(boolean ascending)
sorts the values for all rows (this is a place holder for all subclasses) |
| Methods inherited from class java.util.Vector |
|---|
add, add, addAll, addAll, addElement, capacity, clear, clone, 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 |
| Field Detail |
|---|
public RandomNumberGenerator rand
public java.text.DecimalFormat df
public boolean doWarnings
public Descriptives itsDescriptives
public boolean autoExtracted
public java.awt.Color itsHighlitedColor
public java.awt.Color itsLocationColor
public java.awt.Color itsLineColor
| Constructor Detail |
|---|
public Variable(java.lang.String varName,
VariableOrganizer theOwner)
throws java.lang.Exception
varName - assigns a name (String) to the variabletheOwner - 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 void setOrganizer(VariableOrganizer theOrganizer)
theOrganizer - an instance of VariableOrganizer
class coordinates a set of variables with respect to number of data points available
and the rows that are currently selectedpublic VariableOrganizer getOrganizer()
public void setNRows(int rows)
throws java.lang.Exception
rows - new number of rows for the variable
java.lang.Exception
public void fill(int nRows,
java.lang.Object aValue)
throws java.lang.Exception
nRows - the number of rows to fillaValue - the value to place in every row
java.lang.Exception
public void fill(int nRows,
java.lang.Object[] theData)
throws java.lang.Exception
nRows - the number of rows to filltheData - the values to place in the rows
java.lang.Exception
public void fill(double[] theData)
throws java.lang.Exception
theData - a double array of data
java.lang.Exception
public void fill(int[] theData)
throws java.lang.Exception
theData - an int array of data
java.lang.Exception
public void fill(java.lang.String[] theData)
throws java.lang.Exception
theData - a String array of data
java.lang.Exception
public void fillWithParser(DataFileParser aParser,
int varNum,
boolean firstRowAsLabels)
throws java.lang.Exception
aParser - 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 fillWithParser(DataFileParser aParser,
int varNum)
throws java.lang.Exception
aParser - the DataFileParser that was used to
read data values from a text filevarNum - marks the number of the column to be filled into the variable
java.lang.Exceptionpublic void fillWithVariable(Variable aVar)
aVar - the variable to clonepublic void setLock(boolean lock)
lock - marks whether a variable will be lockedpublic boolean isLocked()
public void setHighliteColor(java.awt.Color aColor)
aColor - the color to setpublic void setLocationColor(java.awt.Color aColor)
aColor - the color to setpublic void setLineColor(java.awt.Color aColor)
aColor - the color to set
public void setFormula(java.lang.String aFormula)
throws java.lang.Exception
aFormula - the formula to use
java.lang.Exception
public void addValue(java.lang.Object anObject)
throws java.lang.Exception
anObject - the object to add
java.lang.Exceptionpublic java.lang.Object getValue(int row)
row - marks the row in the vector
public void setValue(int row,
java.lang.Object anObject)
throws java.lang.Exception
row - 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 setValue(int row,
int aInt)
throws java.lang.Exception
row - marks the row in the vector for which to set the valueaInt - the int value to set for the row
java.lang.Exception
public void setValue(int row,
float aFloat)
throws java.lang.Exception
row - marks the row in the vector for which to set the valueaFloat - the float value to set for the row
java.lang.Exception
public void setValue(int row,
double aDouble)
throws java.lang.Exception
row - marks the row in the vector for which to set the valueaDouble - the double value to set for the row
java.lang.Exception
public void setValue(int row,
char aChar)
throws java.lang.Exception
row - marks the row in the vector for which to set the charaChar - the char to set for the row
java.lang.Exception
public void setValue(int row,
boolean aBoolean)
throws java.lang.Exception
row - marks the row in the vector for which to set the valueaBoolean - lists the boolean value to set for the row
java.lang.Exceptionpublic boolean getbooleanValue(int row)
row - marks the row in the vector
public double getdoubleValue(int row)
throws java.lang.Exception
row - marks the row in the vector
java.lang.Exception
public double[] getdoubleArray(boolean selected)
throws java.lang.Exception
selected - marks whether only selected row should be included
java.lang.Exception
public java.lang.String[] getStringArray(boolean selected)
throws java.lang.Exception
selected - marks whether only selected row should be included
java.lang.Exceptionpublic java.lang.String getStringValue(int row)
row - marks the row in the vectorpublic char getcharValue(int row)
row - marks the row in the vector
public int getintValue(int row)
throws java.lang.Exception
row - marks the row in the vector
java.lang.Exceptionpublic float getfloatValue(int row)
row - marks the row in the vectorpublic long getlongValue(int row)
row - marks the row in the vectorpublic int getAbasedintValue(int row)
row - marks the row in the vectorpublic int getabasedintValue(int row)
row - marks the row in the vectorpublic java.lang.Object getRandomValue()
public void setNominalType()
throws java.lang.Exception
java.lang.Exception
public void setOrdinalType()
throws java.lang.Exception
java.lang.Exception
public void setAnglesType()
throws java.lang.Exception
java.lang.Exceptionpublic int getVariableType()
public void setVariableType(int vType)
throws java.lang.Exception
vType - the variable type to set
java.lang.Exceptionpublic int getVariableFormat()
public void setVariableFormat(int vFormat)
throws java.lang.Exception
vFormat - the variable format to set
java.lang.Exceptionpublic boolean isXVariable()
public boolean isYVariable()
public int getVariableDesignRole()
public java.lang.String getVariableDesignRoleString()
public void setVariableDesignRole(int vDesignRole)
throws java.lang.Exception
vDesignRole - the variable design role
java.lang.Exceptionpublic boolean isNominalType()
public boolean isOrdinalType()
public boolean isContinuousType()
public boolean isLocationType()
public boolean isAngleType()
public void setWarnings(boolean doWarnings)
doWarnings - report the warnings?public boolean reportWarnings()
public void deleteRow(int row)
throws java.lang.Exception
row - the row to delete
java.lang.Exception
public void deleteRows()
throws java.lang.Exception
java.lang.Exception
public void deleteMissingRows()
throws java.lang.Exception
java.lang.Exception
public void deleteSelectedRows()
throws java.lang.Exception
java.lang.Exception
public void deleteNonSelectedRows()
throws java.lang.Exception
java.lang.Exception
public void setSelectRowsToMissing()
throws java.lang.Exception
java.lang.Exceptionpublic int getNRows()
public void setName(java.lang.String varName)
varName - new name of the Variablepublic java.lang.String getName()
public void setNotes(java.lang.String varNotes)
varNotes - new Notes for the Variablepublic java.lang.String getNotes()
public int getNMissingRows()
throws java.lang.Exception
java.lang.Exception
public void setMissingRow(int row,
boolean missing)
throws java.lang.Exception
row - marks the row in the vectormissing - missing flag for the row
java.lang.Exceptionpublic boolean getMissingRow(int row)
row - marks the row in the vector
public int getNUseRows()
throws java.lang.Exception
java.lang.Exceptionpublic boolean getUseRow(int row)
row - marks the row in the vector
public void selectUseRows()
throws java.lang.Exception
java.lang.Exception
public void restrictToMatchingUseRows(Variable aVar)
throws java.lang.Exception
aVar - the other variable
java.lang.Exception
public void restrictToMatchingUseRows(VariableOrganizer aVarOrg)
throws java.lang.Exception
aVarOrg - the VariableOrganizer
java.lang.Exception
public void setHighlitedRow(int row,
boolean highlite)
throws java.lang.Exception
row - marks the row in the vectorhighlite - highlite flag for the row
java.lang.Exception
public boolean getHighlitedRow(int row)
throws java.lang.Exception
row - marks the row in the vector
java.lang.Exception
public void highliteSelectedRows(boolean addToPreviousSet)
throws java.lang.Exception
addToPreviousSet - combine with previously highlited set
java.lang.Exception
public void setCustomColorRow(int row,
java.awt.Color aColor)
throws java.lang.Exception
row - marks the row in the vectoraColor - the color to use for the row
java.lang.Exception
public java.awt.Color getCustomColorRow(int row)
throws java.lang.Exception
row - marks the row in the vector
java.lang.Exception
public void customColorSelectedRows(java.awt.Color aColor,
boolean addToPreviousSet)
throws java.lang.Exception
aColor - the color to use for the rowsaddToPreviousSet - combine with previously highlited set
java.lang.Exception
public void selectStringValue(java.lang.Object whichValue,
boolean fromPrevSelected)
throws java.lang.Exception
whichValue - the object to matchfromPrevSelected - boolean that controls whether the seach applies to the
previously selected set only
java.lang.Exception
public void selectAllRows()
throws java.lang.Exception
java.lang.Exception
public void copySelectStateFrom(Variable aVar)
throws java.lang.Exception
java.lang.Exception
public void selectRows(int start,
int end)
throws java.lang.Exception
java.lang.Exception
public void combineSelectedWithSavedSelectedRows()
throws java.lang.Exception
java.lang.Exception
public void invertSelectedRows()
throws java.lang.Exception
java.lang.Exception
public void saveSelectedRows()
throws java.lang.Exception
java.lang.Exception
public void restoreSelectedRows()
throws java.lang.Exception
java.lang.Exception
public void deselectAllRows()
throws java.lang.Exception
java.lang.Exception
public void selectValue(java.lang.Object whichValue,
boolean fromPrevSelected)
throws java.lang.Exception
whichValue - the object to match
java.lang.Exception
public void deselectRows(java.lang.Object whichValue,
boolean fromPrevSelected)
throws java.lang.Exception
whichValue - the object to matchfromPrevSelected - boolean that controls whether the seach applies to the
previously selected set only
java.lang.Exception
public void setSelectRow(int row,
boolean select)
throws java.lang.Exception
row - marks the row in the vectorselect - select flag for the row
java.lang.Exception
public boolean getSelectRow(int row)
throws java.lang.Exception
row - marks the row in the vector
java.lang.Exception
public int findNextValidRow(int startSearchAt)
throws java.lang.Exception
startSearchAt - start searching at this row
java.lang.Exception
public int findNextNonMissingRow(int startSearchAt)
throws java.lang.Exception
startSearchAt - start searching at this row
java.lang.Exception
public int findPreviousValidRow(int startSearchAt)
throws java.lang.Exception
startSearchAt - start searching at this row
java.lang.Exception
public int findFirstValidRow()
throws java.lang.Exception
java.lang.Exception
public int findLastValidRow()
throws java.lang.Exception
java.lang.Exception
public int getNSelectRows()
throws java.lang.Exception
java.lang.Exception
public int getNValidRows()
throws java.lang.Exception
java.lang.Exception
public void sort(boolean ascending)
throws java.lang.Exception
ascending - in ascending order
java.lang.Exception
public void reverseRows(int a1,
int a2,
boolean checkForOrganizer)
throws java.lang.Exception
a1 - row onea2 - row twocheckForOrganizer - should the function yield control to the VariableOrganizer
java.lang.Exceptionpublic void listSelectedRows()
public void listUseRows()
throws java.lang.Exception
java.lang.Exceptionpublic void listRows()
public void listRows(int startLine,
int endLine,
boolean selectedOnly)
startLine - start listing from this row onendLine - stop listing at this rowselectedOnly - restrict to selected rows?public void listSelectState()
public void listSelectState(int startLine,
int endLine)
startLine - start listing from this row onendLine - stop listing at this rowpublic void invalidDescriptives()
public void fillDescriptives(Descriptives theDescriptives)
throws java.lang.Exception
java.lang.Exception
public Descriptives getDescriptives()
throws java.lang.Exception
java.lang.Exception
public void listBasics()
throws java.lang.Exception
java.lang.Exceptionpublic void listFrequencies(int maxInstances)
maxInstances - report frequencies for that many instances
public void listDescriptives()
throws java.lang.Exception
java.lang.Exception
public void listGroupDescriptives(Variable theXVariable)
throws java.lang.Exception
theXVariable - provides the information on how to form the groups
java.lang.Exception
public void listGroupDescriptivesNoDia(Variable theXVariable)
throws java.lang.Exception
theXVariable - provides the information on how to form the groups
java.lang.Exceptionpublic int getNIDs()
public java.lang.String getIDString(int theIndex)
theIndex - marks the position in the TreeMappublic java.lang.String[] getIDStrings()
public java.util.TreeMap getIDs()
public java.util.TreeMap getCombinedIDs(Variable theOtherVariable)
theOtherVariable - the other variable to combine with this one
public boolean matchedIDs(java.util.TreeMap theOtherIDs)
throws java.lang.Exception
theOtherIDs - a second TreeMap
java.lang.Exceptionpublic void listIDs()
public ContingencyTable getCrossTabulation(Variable theXVariable,
boolean sameIDs,
boolean includeDiagonal)
theXVariable - the variable contains information on how to form the groupssameIDs - do the same variable states exist in both x and y variableincludeDiagonal - should it include the diagonal?
public ContingencyTable getCrossTabulation(Variable theXVariable,
java.util.TreeMap xHash,
java.util.TreeMap yHash,
boolean includeDiagonal)
theXVariable - the variable contains information on how to form the groupsxHash - use these states for the x variableyHash - use these states for the y variableincludeDiagonal - should it include the diagonal?
public InteractionTable getInteractions(Variable theXVariable)
throws java.lang.Exception
theXVariable - a second variable
java.lang.Exceptionpublic ContingencyTable getTransitions()
public double getSquEuclidian(Variable aVar)
throws java.lang.Exception
aVar - a second variable
java.lang.Exception
public double getManhattan(Variable aVar)
throws java.lang.Exception
aVar - a second variable
java.lang.Exception
public double getJaccard(Variable aVar)
throws java.lang.Exception
aVar - a second variable
java.lang.Exception
public double getProximity(Variable aVar)
throws java.lang.Exception
aVar - a second variable
java.lang.Exception
public double getProximity(Variable aVar,
int How)
throws java.lang.Exception
aVar - a second variable
java.lang.Exceptionpublic Matrix asJAMAMatrix()