Class PanelData.Row
- java.lang.Object
-
- dev.nm.stat.regression.linear.panel.PanelData.Row
-
- All Implemented Interfaces:
Comparable<PanelData.Row>
- Enclosing class:
- PanelData<S,T extends Comparable<? super T>>
public class PanelData.Row extends Object implements Comparable<PanelData.Row>
This is one row of the data in a panel. The key or index is a pair of (subject/individual, time). This data structure is read-only.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(PanelData.Row that)
double
get(String header)
S
subject()
Gets the subject of the row.String
time()
Gets the time of the row.String
toString()
double[]
values()
Gets the values of the row.
-
-
-
Method Detail
-
subject
public S subject()
Gets the subject of the row.- Returns:
- the subject
-
time
public String time()
Gets the time of the row.- Returns:
- the time
-
values
public double[] values()
Gets the values of the row.- Returns:
- the values
-
get
public double get(String header)
-
compareTo
public int compareTo(PanelData.Row that)
- Specified by:
compareTo
in interfaceComparable<PanelData.Row>
-
-