Package dev.nm.misc.datastructure
Class MathTable.Row
- java.lang.Object
-
- dev.nm.misc.datastructure.MathTable.Row
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
get(int j)
Gets the value in the row by column index.double
get(String header)
Gets the value in the row by column name.double[]
toArray()
Converts the row to adouble[]
, excluding the index.
-
-
-
Method Detail
-
get
public double get(int j)
Gets the value in the row by column index.- Parameters:
j
- a column index, counting from 1- Returns:
- the corresponding column value
-
get
public double get(String header)
Gets the value in the row by column name.- Parameters:
header
- the column name- Returns:
- the corresponding column value
-
toArray
public double[] toArray()
Converts the row to adouble[]
, excluding the index.- Returns:
- the
double[]
representation
-
-