|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright (c) 2004
Institution:: Columbia University
| Method Summary | |
void |
addColumnName(java.lang.String s,
int index)
Add a column name associated with an index. |
void |
addRowName(java.lang.String s,
int index)
Add a row name associated with a row index. |
int |
columns()
Get the number of columns the matrix has. |
boolean |
containsColumnName(java.lang.String columnName)
|
boolean |
containsRowName(java.lang.String rowName)
|
int |
getColIndexByName(java.lang.String s)
Get the index of a column by name. |
java.lang.String |
getColName(int i)
Gte the column name for an index. |
java.util.List |
getColNames()
|
java.lang.Object[] |
getColObj(int i)
|
int |
getRowIndexByName(java.lang.String s)
Get the index of a row by name.. |
java.lang.String |
getRowName(int i)
Get the row name for an index |
java.util.Iterator |
getRowNameMapIterator()
|
java.util.List |
getRowNames()
|
java.lang.Object[] |
getRowObj(int i)
Get a row in the matrix as a generic Object[]. |
boolean |
hasColNames()
Check if this matrix has a valid set of column names. |
boolean |
hasRow(java.lang.String r)
|
boolean |
hasRowNames()
|
boolean |
isMissing(int i,
int j)
Check if the value at a given index is missing. |
int |
numMissing()
Return the number of missing values in the matrix. |
int |
rows()
Get the number of rows the matrix has |
void |
set(int i,
int j,
java.lang.Object val)
Set a value in the matrix. |
void |
setColumnNames(java.util.List v)
|
void |
setRowNames(java.util.List v)
|
| Method Detail |
public void addColumnName(java.lang.String s,
int index)
s - String a column nameindex - int the column index associated with this name
public void addRowName(java.lang.String s,
int index)
s - Stringindex - intpublic int getRowIndexByName(java.lang.String s)
s - String
public int getColIndexByName(java.lang.String s)
s - String
public java.lang.String getRowName(int i)
i - int
public java.lang.String getColName(int i)
i - int
public boolean hasRowNames()
public boolean hasColNames()
public void setRowNames(java.util.List v)
v - List a vector of Strings.public void setColumnNames(java.util.List v)
v - List a vector of Strings.public java.util.List getColNames()
public java.util.List getRowNames()
public boolean hasRow(java.lang.String r)
r - String
public java.util.Iterator getRowNameMapIterator()
public int rows()
public int columns()
public void set(int i,
int j,
java.lang.Object val)
i - intj - intval - Objectpublic java.lang.Object[] getRowObj(int i)
i - int row
public java.lang.Object[] getColObj(int i)
i - int column
public boolean isMissing(int i,
int j)
i - rowj - column
public int numMissing()
public boolean containsRowName(java.lang.String rowName)
rowName -
public boolean containsColumnName(java.lang.String columnName)
columnName -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||