Package dev.nm.misc.datastructure
Class MathTable.Row
java.lang.Object
dev.nm.misc.datastructure.MathTable.Row
- Enclosing class:
MathTable
A row is indexed by a number and contains multiple values.
This class is immutable.
-
Method Summary
-
Method Details
-
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
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
-