|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.example.table.DataRow
com.rapidminer.example.table.DoubleArrayDataRow
public class DoubleArrayDataRow
Implementation of DataRow that is backed by a double array.
| Constructor Summary | |
|---|---|
DoubleArrayDataRow(double[] data)
Creates a new data row backed by an primitive array. |
|
| Method Summary | |
|---|---|
protected void |
ensureNumberOfColumns(int numberOfColumns)
Creates a new array of the given size if necessary and copies the data into the new array. |
protected double |
get(int index,
double defaultValue)
Returns the value for the given index. |
int |
getType()
This returns the type of this particular DataRow implementation according
to the list in the DataRowFactory. |
protected void |
set(int index,
double value,
double defaultValue)
Sets the given data for the given index. |
java.lang.String |
toString()
Returns a string representation of the data row. |
void |
trim()
Does nothing. |
| Methods inherited from class com.rapidminer.example.table.DataRow |
|---|
get, set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DoubleArrayDataRow(double[] data)
| Method Detail |
|---|
protected double get(int index,
double defaultValue)
DataRow
get in class DataRow
protected void set(int index,
double value,
double defaultValue)
set in class DataRowprotected void ensureNumberOfColumns(int numberOfColumns)
ensureNumberOfColumns in class DataRowpublic void trim()
trim in class DataRowpublic java.lang.String toString()
toString in class DataRowpublic int getType()
DataRowDataRow implementation according
to the list in the DataRowFactory.
getType in class DataRow
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||