|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| Method Summary | |
int |
columns()
Returns the number of columns in the matrix. |
double |
get(int row,
int col)
Gets the value at row, col. |
double |
getAvgDegree()
Gets the average degree of this matrix. |
String |
getComment()
Gets the comment, if any, associated with this matrix. |
double |
getDensity()
Gets (computes) the density of this matrix. |
List |
getLabels()
Gets the node labels for this matrix. |
String |
getMatrixLabel()
Gets the label for this matrix. |
cern.colt.matrix.impl.DenseDoubleMatrix1D |
getRow(int row)
Gets the specified row of data for this matrix. |
String |
matrixToString()
Returns a String representation of only the actual data matrix. |
int |
rows()
Returns the number of rows int matrix. |
void |
set(int row,
int col,
double val)
Sets a data value in this matrix. |
void |
setComment(String comment)
Associates a comment with this matrix (e.g. |
void |
setMatrix(cern.colt.matrix.impl.DenseDoubleMatrix2D m)
Sets the actual matrix for this AdjacencyMatrix. |
void |
setMatrixLabel(String mLabel)
Sets the label for this matrix. |
| Method Detail |
public void setMatrixLabel(String mLabel)
mLabel - the label for this matrixpublic String getMatrixLabel()
public void setMatrix(cern.colt.matrix.impl.DenseDoubleMatrix2D m)
m - the actual matrix data for this AdjacencyMatrixpublic void setComment(String comment)
comment - the commentpublic String getComment()
public List getLabels()
public cern.colt.matrix.impl.DenseDoubleMatrix1D getRow(int row)
row - the index of the row to getpublic double getDensity()
public double getAvgDegree()
public void set(int row,
int col,
double val)
row - the row index (i)col - the col index (j)
public double get(int row,
int col)
row - the row index (i)col - the col index (j)
public int rows()
public int columns()
public String matrixToString()
|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||