Class MathTable.Row

java.lang.Object
dev.nm.misc.datastructure.MathTable.Row
Enclosing class:
MathTable

public class MathTable.Row extends Object
A row is indexed by a number and contains multiple values.

This class is immutable.

  • 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

      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 a double[], excluding the index.
      Returns:
      the double[] representation