|
|||||||||
| 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 | |
|---|---|
java.lang.Object[] |
allData
|
boolean |
autoExtracted
|
java.text.DecimalFormat |
df
|
Descriptives |
itsDescriptives
|
java.awt.Color |
itsHighlitedColor
|
java.awt.Color |
itsLineColor
|
java.awt.Color |
itsLocationColor
|
RHRandomNumberGenerator |
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 |
void |
append(java.lang.Object[] theData)
appends the variable to the end of the variable |
void |
appendVariable(Variable aVar)
appends the variable 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 |
checkMatchingRows(ContingencyTable aMat)
examine whether this variables has the same number of rows as the provided ContingencyTable |
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 |
java.lang.Object |
clone()
clone the object |
Variable |
cloneSelectedRowsOnly()
returns a clone of the Variable with selected rows only |
void |
cloneVariableFrom(Variable aVar)
fills the variable as a clone of the variable |
void |
combineSelectedWithSavedSelectedRows()
invert select rows |
Descriptives |
copyDescriptives()
returns the descriptives for the variable |
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 |
deleteAllRows()
delete all rows from the Variable |
void |
deleteDuplicateRows()
sets the select flag for all duplicate 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 |
deleteSelectedRows()
deletes all selected rows |
void |
deselectAllRows()
sets the select flag for all rows to false |
Variable |
fill(double[] theData)
fills the variable with individual datavalues from a double array |
Variable |
fill(int[] theData)
fills the variable with individual datavalues from a double array |
void |
fill(int nRows,
double aValue)
fills the variable with a constant |
void |
fill(int nRows,
java.lang.Object aValue)
fills the variable with the given value in every row. |
Variable |
fill(java.lang.Object[] theData)
fills the variable with the given value in every row. |
Variable |
fill(java.lang.Object[] theData,
boolean ascending)
fills the variable with the given value in every row. |
void |
fillDescriptives()
fills the descriptive statistics for the variable, at the root level only a check for valid data points is performed |
void |
fillDescriptives(java.lang.Double hypVal)
fills the descriptive statistics for the variable, at the root level only a check for valid data points is performed |
void |
fillIDs()
fills a TreeMap with different values found in the variable using the currently selected set of rows |
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 |
findNextValue(int startSearchAt,
java.lang.Object aValue)
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' |
java.lang.Object[] |
getArray(boolean validRows)
returns an array of double values of the Vector |
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 validRows)
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 |
int[] |
getFrequencies()
returns the frequencies for different instances of the variable using the currently selected set of rows up to the specified number of maxInstances |
java.awt.Color |
getHighliteColor()
returns the highlite color for the animal |
boolean |
getHighlitedRow(int row)
returns whether a given row is currently highlited. |
java.util.TreeMap |
getIDMap()
returns a TreeMap containing all different values found in the variable using the currently selected set of rows |
java.lang.Object[] |
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 |
java.awt.Color |
getLineColor()
returns the line color for the variable |
java.awt.Color |
getLocationColor()
returns the location color for the 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 |
java.util.Vector |
getRowOrder()
returns the Notes of the Variable |
double |
getRowOrderRow(int row)
returns whether a given row is currently selected. |
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()
highlites the selected rows only |
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 |
listDescriptives()
lists the descriptive statistics for the variable using the currently selected set of rows |
void |
listDescriptives(java.lang.Double Mean)
lists the descriptive statistics for the variable using the currently selected set of rows |
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 |
listRowOrder(int startLine,
int endLine,
boolean selectedOnly)
lists data values for a range of rows |
void |
listRows()
lists all data values in the variable |
void |
listRows(boolean selectedOnly)
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 |
void |
makeNewDescriptives()
create a new set of descriptives for the variable the object |
ContingencyTable |
makeTableSubSet(ContingencyTable aTable)
returns a subset of row data values for the ContingencyTable as a ContingencyTable. |
boolean |
matchedIDs(java.util.TreeMap theOtherIDs)
returns whether there is a value in this variable that is not present in a given TreeMap |
void |
replaceSelectedRows(java.lang.Object whichValue)
sets the select flag for all rows based on select state of another variable |
void |
restoreSelectedRows()
restores the select flag for all rows from a previously saved set |
void |
restrictToMatchingUseRows(Variable aVar)
restricts the select 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 |
restrictToValidRowsOnly()
sets the select flag for all valid (non-missing) rows to true |
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 |
selectDuplicateRows()
sets the select flag for all duplicate rows |
void |
selectRows(int start,
int end)
sets the select flag for all rows to true |
void |
selectUseRows()
restricts the select 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 custom color 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 |
setLocationsType()
sets the variable to type LOCATIONS |
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 |
setRowOrder(java.util.Vector rowOrder)
sets the rowOrder for the variable |
void |
setRowOrderRow(int row,
double rowNum)
sets the number of rows for the Variable |
void |
setSelectRow(int row,
boolean select)
sets the select flag for a given row |
void |
setSelectRows(java.lang.Object aVal)
sets all selected rows to a particular value |
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 |
Variable |
sort()
sorts the values for all rows using a map of hashcodes |
Variable |
sort(boolean ascending)
sorts the values for all rows using a map of hashcodes |
Variable |
sort2(boolean ascending)
sorts the values for all rows using a map of hashcodes |
void |
updateRowOrder()
updates the row order for the variable |
| 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 |
| Field Detail |
|---|
public RHRandomNumberGenerator rand
public java.text.DecimalFormat df
public Descriptives itsDescriptives
public boolean autoExtracted
public java.awt.Color itsHighlitedColor
public java.awt.Color itsLocationColor
public java.awt.Color itsLineColor
public java.lang.Object[] allData
| 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 cloneVariableFrom(Variable aVar)
aVar - the variable to clone
public Variable cloneSelectedRowsOnly()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Object clone()
clone in class java.util.Vectorpublic 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 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 setpublic java.awt.Color getHighliteColor()
public java.awt.Color getLocationColor()
public java.awt.Color getLineColor()
public void setFormula(java.lang.String aFormula)
throws java.lang.Exception
aFormula - the formula to use
java.lang.Exception
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.Exception
public void setLocationsType()
throws java.lang.Exception
java.lang.Exception
public void setVariableType(int vType)
throws java.lang.Exception
vType - the variable type to set
java.lang.Exceptionpublic int getVariableType()
public boolean isNominalType()
public boolean isOrdinalType()
public boolean isContinuousType()
public boolean isLocationType()
public boolean isAngleType()
public 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 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 void setRowOrder(java.util.Vector rowOrder)
rowOrder - the new rowOrder for the Variablepublic java.util.Vector getRowOrder()
public void setNRows(int rows)
throws java.lang.Exception
rows - new number of rows for the variable
java.lang.Exceptionpublic int getNRows()
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 java.lang.Object getValue(int row)
row - marks the row in the vectorpublic 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.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 vector
public java.lang.Object[] getArray(boolean validRows)
throws java.lang.Exception
validRows - marks whether only valid rows should be included
java.lang.Exception
public double[] getdoubleArray(boolean validRows)
throws java.lang.Exception
validRows - marks whether only valid rows 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.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,
double aValue)
throws java.lang.Exception
nRows - the number of rows to fillaValue - the double value to place in every row
java.lang.Exception
public Variable fill(java.lang.Object[] theData,
boolean ascending)
throws java.lang.Exception
theData - the values to place in the rowsascending - from top to bottom?
java.lang.Exception
public Variable fill(java.lang.Object[] theData)
throws java.lang.Exception
theData - the values to place in the rows
java.lang.Exception
public Variable fill(double[] theData)
throws java.lang.Exception
theData - a double array of data
java.lang.Exception
public Variable fill(int[] theData)
throws java.lang.Exception
theData - an int 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 clone
public void append(java.lang.Object[] theData)
throws java.lang.Exception
theData - the array of Objects to add to the end of the variable
java.lang.Exceptionpublic void appendVariable(Variable aVar)
aVar - the variable to clone
public void addValue(java.lang.Object anObject)
throws java.lang.Exception
anObject - the object to add
java.lang.Exceptionpublic java.lang.Object getRandomValue()
public int getNSelectRows()
throws java.lang.Exception
java.lang.Exception
public int getNValidRows()
throws java.lang.Exception
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.Exceptionpublic boolean getSelectRow(int row)
row - marks the row in the vector
public void selectValue(java.lang.Object whichValue,
boolean fromPrevSelected)
throws java.lang.Exception
whichValue - the object to match
java.lang.Exception
public void selectRows(int start,
int end)
throws java.lang.Exception
java.lang.Exception
public void setSelectRowsToMissing()
throws java.lang.Exception
java.lang.Exception
public void setSelectRows(java.lang.Object aVal)
throws java.lang.Exception
aVal - new value to use
java.lang.Exception
public void restrictToValidRowsOnly()
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 selectUseRows()
throws java.lang.Exception
java.lang.Exception
public void selectAllRows()
throws java.lang.Exception
java.lang.Exception
public void deselectAllRows()
throws java.lang.Exception
java.lang.Exception
public void copySelectStateFrom(Variable aVar)
throws java.lang.Exception
java.lang.Exception
public void replaceSelectedRows(java.lang.Object whichValue)
throws java.lang.Exception
whichValue - the object to match
java.lang.Exception
public void selectDuplicateRows()
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 int findNextValue(int startSearchAt,
java.lang.Object aValue)
throws java.lang.Exception
startSearchAt - start searching at this rowaValue - search for such an object
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 void deleteRow(int row)
throws java.lang.Exception
row - the row to delete
java.lang.Exception
public void deleteAllRows()
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 deleteDuplicateRows()
throws java.lang.Exception
java.lang.Exception
public Variable sort()
throws java.lang.Exception
java.lang.Exception
public Variable sort(boolean ascending)
throws java.lang.Exception
ascending - sort in ascending order?
java.lang.Exception
public Variable sort2(boolean ascending)
throws java.lang.Exception
ascending - sort 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.Exception
public void updateRowOrder()
throws java.lang.Exception
java.lang.Exception
public void setRowOrderRow(int row,
double rowNum)
throws java.lang.Exception
row - marks the row in the vectorrowNum - the ordered number for the row
java.lang.Exception
public double getRowOrderRow(int row)
throws java.lang.Exception
row - marks the row in the vector
java.lang.Exception
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 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()
throws java.lang.Exception
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.Exceptionpublic void makeNewDescriptives()
public Descriptives getDescriptives()
throws java.lang.Exception
java.lang.Exception
public Descriptives copyDescriptives()
throws java.lang.Exception
java.lang.Exceptionpublic void invalidDescriptives()
public void fillDescriptives()
throws java.lang.Exception
java.lang.Exception
public void fillDescriptives(java.lang.Double hypVal)
throws java.lang.Exception
hypVal - the value of the a-priori hypothesis mean
java.lang.Exception
public void fillIDs()
throws java.lang.Exception
java.lang.Exceptionpublic int getNIDs()
public java.lang.String getIDString(int theIndex)
throws java.lang.Exception
theIndex - marks the position in the TreeMap
java.lang.Exception
public java.lang.String[] getIDStrings()
throws java.lang.Exception
java.lang.Exceptionpublic java.util.TreeMap getIDMap()
public java.lang.Object[] 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.Exception
public int[] getFrequencies()
throws java.lang.Exception
java.lang.Exceptionpublic void listSelectedRows()
public void listUseRows()
throws java.lang.Exception
java.lang.Exceptionpublic void listRows()
public void listRows(boolean selectedOnly)
selectedOnly - restrict to selected rows?
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 listRowOrder(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 row
public void listDescriptives()
throws java.lang.Exception
java.lang.Exception
public void listDescriptives(java.lang.Double Mean)
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.Exception
public boolean checkMatchingRows(ContingencyTable aMat)
throws java.lang.Exception
aMat - the ContingencyTable to compare with
java.lang.Exception
public boolean checkMinUseRows(int minRows)
throws java.lang.Exception
minRows - the minimum number of rows
java.lang.Exception
public boolean checkSameSelectRows(Variable theVar)
throws java.lang.Exception
theVar - the other variable to compare with
java.lang.Exception
public boolean checkSameSelectRows(VariableOrganizer theVarOrganizer)
throws java.lang.Exception
theVarOrganizer - the VariableOrganizer to compare with
java.lang.Exception
public boolean checkSameUseRows(Variable theVar)
throws java.lang.Exception
theVar - the Variable to compare with
java.lang.Exception
public boolean checkSameUseRows(VariableOrganizer theVarOrganizer)
throws java.lang.Exception
theVarOrganizer - the VariableOrganizer to compare with
java.lang.Exception
public void checkNumberIDs(int compareTo)
throws java.lang.Exception
compareTo - number of distinct IDs to compare to
java.lang.Exception
public void checkSameIDs(Variable theOtherVariable)
throws java.lang.Exception
theOtherVariable - the other variable to compare with
java.lang.Exception
public boolean checkValidRowRange(int row)
throws java.lang.Exception
row - marks the row in the vector
java.lang.Exception
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.Exception
public Matrix asJAMAMatrix()
throws java.lang.Exception
java.lang.Exception
public VariableOrganizer asVariableOrganizer()
throws java.lang.Exception
java.lang.Exception
public ContingencyTable makeTableSubSet(ContingencyTable aTable)
throws java.lang.Exception
aTable - the independent ContingencyTable
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||