org.limn.data
Class SimpleData
java.lang.Object
|
+--org.limn.data.SimpleData
- All Implemented Interfaces:
- LimnData
- public class SimpleData
- extends java.lang.Object
- implements LimnData
SimpleData is a very basic implementation of the LimnData interface. Unlike
the random access file data object (RAFData) it will load the entire data
file into memory.
|
Constructor Summary |
SimpleData(double[][] d,
double[][] m,
java.lang.String[] cn)
|
SimpleData(double[][] d,
java.lang.String[] cn)
|
|
Method Summary |
int |
getNumCol()
|
int |
getNumRow()
|
double[] |
getRow(int x)
|
double |
getValue(int y,
int x)
|
void |
setActive(java.lang.String[] s)
setActive will reduce the data to only the rows
named in the string array |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SimpleData
public SimpleData(double[][] d,
java.lang.String[] cn)
SimpleData
public SimpleData(double[][] d,
double[][] m,
java.lang.String[] cn)
setActive
public void setActive(java.lang.String[] s)
- Description copied from interface: LimnData
- setActive will reduce the data to only the rows
named in the string array
- Specified by:
- setActive in interface LimnData
getNumRow
public int getNumRow()
- Specified by:
- getNumRow in interface LimnData
getNumCol
public int getNumCol()
- Specified by:
- getNumCol in interface LimnData
getRow
public double[] getRow(int x)
- Specified by:
- getRow in interface LimnData
getValue
public double getValue(int y,
int x)
- Specified by:
- getValue in interface LimnData