|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cloud9.io.array.Array2DOfFloatsWritable
public class Array2DOfFloatsWritable
| Constructor Summary | |
|---|---|
Array2DOfFloatsWritable()
Default constructor. |
|
Array2DOfFloatsWritable(float[][] array)
Constructor take in a two-dimensional array. |
|
Array2DOfFloatsWritable(int row,
int column)
Constructor that takes the size of the array as an argument. |
|
| Method Summary | |
|---|---|
float[][] |
getArray()
|
float[][] |
getClone()
|
int |
getNumberOfCols()
Returns the number of columns in the array. |
int |
getNumberOfRows()
Returns the number of rows in the float array. |
float |
getValueAt(int row,
int col)
Returns the float value at position i. |
void |
readFields(DataInput in)
|
void |
set(float[][] array)
Constructor take in a two-dimensional array. |
void |
setValueAt(int row,
int col,
float f)
Sets the float 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 Array2DOfFloatsWritable()
public Array2DOfFloatsWritable(float[][] array)
array - input float array
public Array2DOfFloatsWritable(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 float[][] getClone()
public float[][] getArray()
public float getValueAt(int row,
int col)
row - row index of the float to be returnedcol - column index of the float to be returned
public void set(float[][] array)
array - input float array
public void setValueAt(int row,
int col,
float f)
f - float 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 | |||||||||