|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cloud9.io.array.Array2DOfDoublesWritable
public class Array2DOfDoublesWritable
| Constructor Summary | |
|---|---|
Array2DOfDoublesWritable()
Default constructor. |
|
Array2DOfDoublesWritable(double[][] array)
Constructor take in a two-dimensional array. |
|
Array2DOfDoublesWritable(int row,
int column)
Constructor that takes the size of the array as an argument. |
|
| Method Summary | |
|---|---|
double[][] |
getArray()
|
double[][] |
getClone()
|
int |
getNumberOfCols()
Returns the number of columns in the array. |
int |
getNumberOfRows()
Returns the number of rows in the float array. |
double |
getValueAt(int row,
int col)
Returns the double value at position i. |
void |
readFields(DataInput in)
|
void |
set(double[][] array)
Constructor take in a two-dimensional array. |
void |
setValueAt(int row,
int col,
double f)
Sets the double at position row and col to f. |
String |
toString()
|
void |
write(DataOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Array2DOfDoublesWritable()
public Array2DOfDoublesWritable(double[][] array)
array - input double array
public Array2DOfDoublesWritable(int row,
int column)
| Method Detail |
|---|
public void readFields(DataInput in)
throws IOException
readFields in interface WritableIOException
public void write(DataOutput out)
throws IOException
write in interface WritableIOExceptionpublic double[][] getClone()
public double[][] getArray()
public double getValueAt(int row,
int col)
row - row index of the double to be returnedcol - column index of the double to be returned
public void set(double[][] array)
array - input double array
public void setValueAt(int row,
int col,
double f)
f - double value to be setpublic int getNumberOfRows()
public int getNumberOfCols()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||