public class Variable
extends java.util.Vector<java.lang.Object>
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
boolean |
autoExtracted |
boolean |
hasDefaultColors |
boolean |
isSorted |
Descriptives |
itsDescriptives |
java.lang.String |
itsFormula |
java.awt.Color |
itsLineColor |
java.awt.Color |
itsLocationColor |
static int |
kEuclidian |
static int |
kGower |
static int |
kJaccard |
static int |
kManhattan |
static int |
kSquEuclidian |
boolean |
plotMarker |
com.lobsterman.JavaGrinders.RHUtilities.RHRandomNumberGenerator |
rand |
Constructor and Description |
---|
Variable()
empty constructor for the root Variable class
|
Variable(java.lang.String varName,
VariableOrganizer theOwner)
Standard constructor for the root Variable class using a VariableOrganizer
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(double aDouble)
appends a number to the end of the Variable
|
void |
addValue(float aFloat)
appends a number to the end of the Variable
|
void |
addValue(int anInt)
appends a number to the end of the Variable
|
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
|
com.lobsterman.JavaGrinders.Jama.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 |
checkAllUseRows()
examines whether all rows contain valid and selected data
|
void |
checkLocked()
examine whether this variables is locked
|
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 |
checkSameNRows(Variable theVar)
examines whether the variable has the same number of rows as another variable
|
boolean |
checkSameNSelectRows(Variable theVar)
examines whether the same rows are selected as in another variable
|
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()
combines the current set of selected rows with that set that has been saved earlier using saveSelectedRows()
|
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 |
customColorFromData(NumberVariable aVar,
java.awt.Color baseColor)
sets a custom colors for all selected rows
|
void |
customColorSelectedRows(java.awt.Color aColor)
sets a custom colors for all selected rows
|
void |
customColorSelectedRows(java.awt.Color aColor,
boolean resetOtherColors)
sets a custom colors for all selected rows
|
void |
deleteAllRows()
delete all rows from the Variable
|
void |
deleteDuplicateRows()
deletes 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 |
deleteRowNoCheck(int row)
delete a row from the Variable without coordinating a VartiableOrganizer
|
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 |
fillMoreDescriptives()
fills additional descriptive statistics for the variable
|
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 |
findFirstSelectRow()
returns the first selected row of the variable
|
int |
findFirstUseRow()
returns the first selected row of the variable
|
int |
findLastSelectRow()
returns the last selected row of the variable
|
int |
findLastUseRow()
returns the last selected row of the variable
|
int |
findNextNonMissingRow(int startSearchAt)
returns the next selected row after a given row
|
int |
findNextSelectRow(int startSearchAt)
returns the next selected row after a given row
|
int |
findNextUseRow(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 |
findPreviousSelectRow(int startSearchAt)
returns the next lower selected row before a given row
|
int |
findPreviousUseRow(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<java.lang.Object,java.lang.Integer> |
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<java.lang.Object,java.lang.Integer> xHash,
java.util.TreeMap<java.lang.Object,java.lang.Integer> 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
|
java.lang.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<java.lang.Object,java.lang.Integer> |
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 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 proxType)
returns the proximity measure to another variable
|
java.lang.Object |
getRandomValue()
returns the object stored at a randomly selected row of the Vector
|
NumberVariable |
getRowNumbers()
returns the number of currently selected rows for the variable
|
java.util.Vector<java.lang.Object> |
getRowOrder()
returns the row order for the Variable
|
double |
getRowOrderRow(int row)
returns the row order
|
boolean |
getSelectRow(int row)
returns whether a given row is currently selected.
|
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 statistics 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 |
isDateTimeFormat()
returns whether the variable is of type DATETIME
|
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 |
isNumberFormat()
returns whether the variable is of type NUMBER
|
boolean |
isOrdinalType()
returns whether the variable is of type ORDINAL
|
boolean |
isStringFormat()
returns whether the variable is of type STRING
|
boolean |
isValidRowRange(int row)
checks whether a given row is within a valid range
|
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 hypMean)
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 |
listRow(int row)
lists data value for a single row
|
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)
lists data values for a range of rows regardless of selection
|
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<java.lang.Object,java.lang.Integer> 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 |
saveRowsToFile(int startLine,
int endLine,
boolean selectedOnly,
java.lang.String name)
saves data values for a range of rows to a text file
|
void |
saveRowsToFile(java.lang.String name)
saves all data values to a text file
|
void |
saveSelectedRows()
saves the select flag for all currently selected rows
|
void |
selectAllRows()
sets the select flag for all rows to true
|
void |
selectDuplicateRows()
sets the select flag for all duplicate rows
|
void |
selectEveryNthRow(int n)
sets the select flag for every nth row to true
|
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<java.lang.Object> 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
|
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 static final int kSquEuclidian
public static final int kEuclidian
public static final int kManhattan
public static final int kJaccard
public static final int kGower
public com.lobsterman.JavaGrinders.RHUtilities.RHRandomNumberGenerator rand
public Descriptives itsDescriptives
public boolean isSorted
public java.lang.String itsFormula
public boolean autoExtracted
public boolean hasDefaultColors
public java.awt.Color itsLocationColor
public java.awt.Color itsLineColor
public boolean plotMarker
public Variable() throws java.lang.Exception
java.lang.Exception
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 selectedjava.lang.Exception
public void cloneVariableFrom(Variable aVar)
aVar
- the variable to clonepublic Variable cloneSelectedRowsOnly() throws java.lang.Exception
java.lang.Exception
- if ...public java.lang.Object clone()
clone
in class java.util.Vector<java.lang.Object>
public void setNRows(int rows) throws java.lang.Exception
rows
- new number of rows for the variablejava.lang.Exception
- if ...public int getNRows()
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 setLock(boolean lock)
lock
- marks whether a variable will be lockedpublic boolean isLocked()
public void setFormula(java.lang.String aFormula) throws java.lang.Exception
aFormula
- the formula to usejava.lang.Exception
- if ...public void setNominalType() throws java.lang.Exception
java.lang.Exception
- if ...public void setOrdinalType() throws java.lang.Exception
java.lang.Exception
- if ...public void setAnglesType() throws java.lang.Exception
java.lang.Exception
- if ...public void setLocationsType() throws java.lang.Exception
java.lang.Exception
- if ...public void setVariableType(int vType) throws java.lang.Exception
vType
- the variable type to setjava.lang.Exception
- if ...public 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 setjava.lang.Exception
- if ...public boolean isStringFormat()
public boolean isNumberFormat()
public boolean isDateTimeFormat()
public int getVariableDesignRole()
public java.lang.String getVariableDesignRoleString()
public void setVariableDesignRole(int vDesignRole) throws java.lang.Exception
vDesignRole
- the variable design rolejava.lang.Exception
- if ...public boolean isXVariable()
public boolean isYVariable()
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 void setRowOrder(java.util.Vector<java.lang.Object> rowOrder)
rowOrder
- the new rowOrder for the Variablepublic java.util.Vector<java.lang.Object> getRowOrder()
public void addValue(int anInt) throws java.lang.Exception
anInt
- the number to addjava.lang.Exception
- if ...public void addValue(double aDouble) throws java.lang.Exception
aDouble
- the number to addjava.lang.Exception
- if ...public void addValue(float aFloat) throws java.lang.Exception
aFloat
- the number to addjava.lang.Exception
- if ...public void addValue(java.lang.Object anObject) throws java.lang.Exception
anObject
- the object to addjava.lang.Exception
- if ...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 rowjava.lang.Exception
- if ...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 rowjava.lang.Exception
- if ...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 rowjava.lang.Exception
- if ...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 rowjava.lang.Exception
- if ...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 rowjava.lang.Exception
- if ...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 rowjava.lang.Exception
- if ...public java.lang.Object getValue(int row) throws java.lang.Exception
row
- marks the row in the vectorjava.lang.Exception
- if ...public boolean getbooleanValue(int row) throws java.lang.Exception
row
- marks the row in the vectorjava.lang.Exception
- if ...public java.lang.String getStringValue(int row) throws java.lang.Exception
row
- marks the row in the vectorjava.lang.Exception
- if ...public char getcharValue(int row) throws java.lang.Exception
row
- marks the row in the vectorjava.lang.Exception
- if ...public int getAbasedintValue(int row) throws java.lang.Exception
row
- marks the row in the vectorjava.lang.Exception
- if ...public int getabasedintValue(int row) throws java.lang.Exception
row
- marks the row in the vectorjava.lang.Exception
- if ...public java.lang.Double getDoubleValue(int row) throws java.lang.Exception
row
- marks the row in the vectorjava.lang.Exception
- if ...public double getdoubleValue(int row) throws java.lang.Exception
row
- marks the row in the vectorjava.lang.Exception
- if ...public int getintValue(int row) throws java.lang.Exception
row
- marks the row in the vectorjava.lang.Exception
- if ...public float getfloatValue(int row) throws java.lang.Exception
row
- marks the row in the vectorjava.lang.Exception
- if ...public long getlongValue(int row) throws java.lang.Exception
row
- marks the row in the vectorjava.lang.Exception
- if ...public java.lang.Object[] getArray(boolean validRows) throws java.lang.Exception
validRows
- marks whether only valid rows should be includedjava.lang.Exception
- if ...public double[] getdoubleArray(boolean validRows) throws java.lang.Exception
validRows
- marks whether only valid rows should be includedjava.lang.Exception
- if ...public java.lang.String[] getStringArray(boolean selected) throws java.lang.Exception
selected
- marks whether only selected row should be includedjava.lang.Exception
- if ...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 rowjava.lang.Exception
- if ...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 rowjava.lang.Exception
- if ...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
- if ...public Variable fill(java.lang.Object[] theData) throws java.lang.Exception
theData
- the values to place in the rowsjava.lang.Exception
- if ...public Variable fill(double[] theData) throws java.lang.Exception
theData
- a double array of datajava.lang.Exception
- if ...public Variable fill(int[] theData) throws java.lang.Exception
theData
- an int array of datajava.lang.Exception
- if ...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 labeljava.lang.Exception
- if ...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 variablejava.lang.Exception
- if ...public void fillWithVariable(Variable aVar) throws java.lang.Exception
aVar
- the variable to clonejava.lang.Exception
- if ...public void append(java.lang.Object[] theData) throws java.lang.Exception
theData
- the array of Objects to add to the end of the variablejava.lang.Exception
- if ...public java.lang.Object getRandomValue() throws java.lang.Exception
java.lang.Exception
- if ...public int getNSelectRows() throws java.lang.Exception
java.lang.Exception
- if ...public int getNUseRows() throws java.lang.Exception
java.lang.Exception
- if ...public void setSelectRow(int row, boolean select) throws java.lang.Exception
row
- marks the row in the vectorselect
- select flag for the rowjava.lang.Exception
- if ...public boolean getSelectRow(int row)
row
- marks the row in the vectorpublic void selectValue(java.lang.Object whichValue, boolean fromPrevSelected) throws java.lang.Exception
whichValue
- the object to matchfromPrevSelected
- use selected set?java.lang.Exception
- if ...public void selectRows(int start, int end) throws java.lang.Exception
start
- starting row to selectend
- ending row to selectjava.lang.Exception
- if ...public void selectEveryNthRow(int n) throws java.lang.Exception
n
- select every nth rowjava.lang.Exception
- if ...public void setSelectRowsToMissing() throws java.lang.Exception
java.lang.Exception
- if ...public void setSelectRows(java.lang.Object aVal) throws java.lang.Exception
aVal
- new value to usejava.lang.Exception
- if ...public void restrictToValidRowsOnly() throws java.lang.Exception
java.lang.Exception
- if ...public void restrictToMatchingUseRows(Variable aVar) throws java.lang.Exception
aVar
- the other variablejava.lang.Exception
- if ...public void restrictToMatchingUseRows(VariableOrganizer aVarOrg) throws java.lang.Exception
aVarOrg
- the VariableOrganizerjava.lang.Exception
- if ...public void selectUseRows() throws java.lang.Exception
java.lang.Exception
- if ...public void selectAllRows() throws java.lang.Exception
java.lang.Exception
- if ...public void deselectAllRows() throws java.lang.Exception
java.lang.Exception
- if ...public void copySelectStateFrom(Variable aVar) throws java.lang.Exception
aVar
- the Variable to copy fromjava.lang.Exception
- if ...public void replaceSelectedRows(java.lang.Object whichValue) throws java.lang.Exception
whichValue
- the object to matchjava.lang.Exception
- if ...public void selectDuplicateRows() throws java.lang.Exception
java.lang.Exception
- if ...public void combineSelectedWithSavedSelectedRows() throws java.lang.Exception
java.lang.Exception
- if ...public void invertSelectedRows() throws java.lang.Exception
java.lang.Exception
- if ...public void saveSelectedRows() throws java.lang.Exception
java.lang.Exception
- if ...public void restoreSelectedRows() throws java.lang.Exception
java.lang.Exception
- if ...public int findNextValue(int startSearchAt, java.lang.Object aValue) throws java.lang.Exception
startSearchAt
- start searching at this rowaValue
- search for such an objectjava.lang.Exception
- if ...public int findNextNonMissingRow(int startSearchAt) throws java.lang.Exception
startSearchAt
- start searching at this rowjava.lang.Exception
- if ...public int findNextSelectRow(int startSearchAt) throws java.lang.Exception
startSearchAt
- start searching at this rowjava.lang.Exception
- if ...public int findPreviousSelectRow(int startSearchAt) throws java.lang.Exception
startSearchAt
- start searching at this rowjava.lang.Exception
- if ...public int findFirstUseRow() throws java.lang.Exception
java.lang.Exception
- if ...public int findLastUseRow() throws java.lang.Exception
java.lang.Exception
- if ...public int findNextUseRow(int startSearchAt) throws java.lang.Exception
startSearchAt
- start searching at this rowjava.lang.Exception
- if ...public int findPreviousUseRow(int startSearchAt) throws java.lang.Exception
startSearchAt
- start searching at this rowjava.lang.Exception
- if ...public int findFirstSelectRow() throws java.lang.Exception
java.lang.Exception
- if ...public int findLastSelectRow() throws java.lang.Exception
java.lang.Exception
- if ...public NumberVariable getRowNumbers() throws java.lang.Exception
java.lang.Exception
- if ...public void deleteRow(int row) throws java.lang.Exception
row
- the row to deletejava.lang.Exception
- if ...public void deleteRowNoCheck(int row) throws java.lang.Exception
row
- the row to deletejava.lang.Exception
- if ...public void deleteAllRows() throws java.lang.Exception
java.lang.Exception
- if ...public void deleteMissingRows() throws java.lang.Exception
java.lang.Exception
- if ...public void deleteSelectedRows() throws java.lang.Exception
java.lang.Exception
- if ...public void deleteNonSelectedRows() throws java.lang.Exception
java.lang.Exception
- if ...public void deleteDuplicateRows() throws java.lang.Exception
java.lang.Exception
- if ...public Variable sort() throws java.lang.Exception
java.lang.Exception
- if ...public Variable sort(boolean ascending) throws java.lang.Exception
ascending
- sort in ascending order?java.lang.Exception
- if ...public Variable sort2(boolean ascending) throws java.lang.Exception
ascending
- sort in ascending order?java.lang.Exception
- if ...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 VariableOrganizerjava.lang.Exception
- if ...public void updateRowOrder() throws java.lang.Exception
java.lang.Exception
- if ...public void setRowOrderRow(int row, double rowNum) throws java.lang.Exception
row
- marks the row in the vectorrowNum
- the ordered number for the rowjava.lang.Exception
- if ...public double getRowOrderRow(int row) throws java.lang.Exception
row
- marks the row in the vectorjava.lang.Exception
- if ...public int getNMissingRows() throws java.lang.Exception
java.lang.Exception
- if ...public void setMissingRow(int row, boolean missing) throws java.lang.Exception
row
- marks the row in the vectormissing
- missing flag for the rowjava.lang.Exception
- if ...public boolean getMissingRow(int row)
row
- marks the row in the vectorpublic boolean getUseRow(int row)
row
- marks the row in the vectorpublic java.awt.Color getHighliteColor()
public void setHighliteColor(java.awt.Color aColor)
aColor
- the color to setpublic java.awt.Color getLocationColor()
public void setLocationColor(java.awt.Color aColor)
aColor
- the color to setpublic java.awt.Color getLineColor()
public void setLineColor(java.awt.Color aColor)
aColor
- the color to setpublic void setHighlitedRow(int row, boolean highlite) throws java.lang.Exception
row
- marks the row in the vectorhighlite
- highlite flag for the rowjava.lang.Exception
- if ...public boolean getHighlitedRow(int row) throws java.lang.Exception
row
- marks the row in the vectorjava.lang.Exception
- if ...public void highliteSelectedRows() throws java.lang.Exception
java.lang.Exception
- if ...public void highliteSelectedRows(boolean addToPreviousSet) throws java.lang.Exception
addToPreviousSet
- combine with previously highlited setjava.lang.Exception
- if ...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 rowjava.lang.Exception
- if ...public java.awt.Color getCustomColorRow(int row) throws java.lang.Exception
row
- marks the row in the vectorjava.lang.Exception
- if ...public void customColorSelectedRows(java.awt.Color aColor) throws java.lang.Exception
aColor
- the color to use for the rowsjava.lang.Exception
- if ...public void customColorSelectedRows(java.awt.Color aColor, boolean resetOtherColors) throws java.lang.Exception
aColor
- the color to use for the rowsresetOtherColors
- combine with previously highlited setjava.lang.Exception
- if ...public void customColorFromData(NumberVariable aVar, java.awt.Color baseColor) throws java.lang.Exception
aVar
- values in the variable determine the row's particular colorbaseColor
- values in the variable determine the row's particular colorjava.lang.Exception
- if ...public void makeNewDescriptives()
public Descriptives getDescriptives() throws java.lang.Exception
java.lang.Exception
- if ...public Descriptives copyDescriptives() throws java.lang.Exception
java.lang.Exception
- if ...public void invalidDescriptives()
public void fillDescriptives() throws java.lang.Exception
java.lang.Exception
- if ...public void fillDescriptives(java.lang.Double hypVal) throws java.lang.Exception
hypVal
- the value of the a-priori hypothesis meanjava.lang.Exception
- if ...public void fillMoreDescriptives() throws java.lang.Exception
java.lang.Exception
- if ...public int getNIDs()
public java.lang.String getIDString(int theIndex) throws java.lang.Exception
theIndex
- marks the position in the TreeMapjava.lang.Exception
- if ...public java.lang.String[] getIDStrings() throws java.lang.Exception
java.lang.Exception
- if ...public java.util.TreeMap<java.lang.Object,java.lang.Integer> getIDMap()
public java.lang.Object[] getIDs()
public java.util.TreeMap<java.lang.Object,java.lang.Integer> getCombinedIDs(Variable theOtherVariable)
theOtherVariable
- the other variable to combine with this onepublic boolean matchedIDs(java.util.TreeMap<java.lang.Object,java.lang.Integer> theOtherIDs) throws java.lang.Exception
theOtherIDs
- a second TreeMapjava.lang.Exception
- if ...public int[] getFrequencies() throws java.lang.Exception
java.lang.Exception
- if ...public void listSelectedRows()
public void listUseRows() throws java.lang.Exception
java.lang.Exception
- if ...public void listRow(int row) throws java.lang.Exception
row
- start listing from this row onjava.lang.Exception
- if ...public void listRows()
public void listRows(boolean selectedOnly)
selectedOnly
- restrict to selected rows?public void listRows(int startLine, int endLine)
startLine
- start listing from this row onendLine
- stop listing at this rowpublic 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 saveRowsToFile(java.lang.String name) throws java.lang.Exception
name
- the name of the text filejava.lang.Exception
- if ...public void saveRowsToFile(int startLine, int endLine, boolean selectedOnly, java.lang.String name) throws java.lang.Exception
startLine
- start listing from this row onendLine
- stop listing at this rowselectedOnly
- restrict to selected rows?name
- the name of the text filejava.lang.Exception
- if ...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 rowpublic void listDescriptives() throws java.lang.Exception
java.lang.Exception
- if ...public void listDescriptives(java.lang.Double hypMean) throws java.lang.Exception
hypMean
- the hypothetical meanjava.lang.Exception
- if ...public void listGroupDescriptives(Variable theXVariable) throws java.lang.Exception
theXVariable
- provides the information on how to form the groupsjava.lang.Exception
- if ...public void listGroupDescriptivesNoDia(Variable theXVariable) throws java.lang.Exception
theXVariable
- provides the information on how to form the groupsjava.lang.Exception
- if ...public void checkLocked() throws java.lang.Exception
java.lang.Exception
- if ...public boolean checkAllUseRows() throws java.lang.Exception
java.lang.Exception
- if ...public boolean checkMatchingRows(ContingencyTable aMat) throws java.lang.Exception
aMat
- the ContingencyTable to compare withjava.lang.Exception
- if ...public boolean checkMinUseRows(int minRows) throws java.lang.Exception
minRows
- the minimum number of rowsjava.lang.Exception
- if ...public boolean checkSameNRows(Variable theVar) throws java.lang.Exception
theVar
- the Variable to compare withjava.lang.Exception
- if ...public boolean checkSameNSelectRows(Variable theVar) throws java.lang.Exception
theVar
- the Variable to compare withjava.lang.Exception
- if ...public boolean checkSameSelectRows(Variable theVar) throws java.lang.Exception
theVar
- the other variable to compare withjava.lang.Exception
- if ...public boolean checkSameSelectRows(VariableOrganizer theVarOrganizer) throws java.lang.Exception
theVarOrganizer
- the VariableOrganizer to compare withjava.lang.Exception
- if ...public boolean checkSameUseRows(Variable theVar) throws java.lang.Exception
theVar
- the Variable to compare withjava.lang.Exception
- if ...public boolean checkSameUseRows(VariableOrganizer theVarOrganizer) throws java.lang.Exception
theVarOrganizer
- the VariableOrganizer to compare withjava.lang.Exception
- if ...public void checkNumberIDs(int compareTo) throws java.lang.Exception
compareTo
- number of distinct IDs to compare tojava.lang.Exception
- if ...public void checkSameIDs(Variable theOtherVariable) throws java.lang.Exception
theOtherVariable
- the other variable to compare withjava.lang.Exception
- if ...public boolean checkValidRowRange(int row) throws java.lang.Exception
row
- marks the row in the vectorjava.lang.Exception
- if ...public boolean isValidRowRange(int row) throws java.lang.Exception
row
- marks the row in the vectorjava.lang.Exception
- if ...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<java.lang.Object,java.lang.Integer> xHash, java.util.TreeMap<java.lang.Object,java.lang.Integer> 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 variablejava.lang.Exception
- if ...public ContingencyTable getTransitions()
public double getManhattan(Variable aVar) throws java.lang.Exception
aVar
- a second variablejava.lang.Exception
- if ...public double getJaccard(Variable aVar) throws java.lang.Exception
aVar
- a second variablejava.lang.Exception
- if ...public double getProximity(Variable aVar) throws java.lang.Exception
aVar
- a second variablejava.lang.Exception
- if ...public double getProximity(Variable aVar, int proxType) throws java.lang.Exception
aVar
- a second variableproxType
- the type of proximity to calculatejava.lang.Exception
- if ...public com.lobsterman.JavaGrinders.Jama.Matrix asJAMAMatrix() throws java.lang.Exception
java.lang.Exception
- if ...public VariableOrganizer asVariableOrganizer() throws java.lang.Exception
java.lang.Exception
- if ...public ContingencyTable makeTableSubSet(ContingencyTable aTable) throws java.lang.Exception
aTable
- the independent ContingencyTablejava.lang.Exception
- if ...Copyright 2016