Java.problem
Class Sample

java.lang.Object
  extended by Java.problem.Sample

public class Sample
extends java.lang.Object

Description of a sample:
Vector of data-points (values) and standard deviations (sdevs) for each variable at time-point time.
isAvailable is false if data-point is missing.

Since:
1.0

Constructor Summary
Sample()
           
 
Method Summary
 double getSdev(int ivar)
          Get standard deviation of the sample for variable i
 double getTime()
          Get time-point of the sample
 double getValue(int ivar)
          Get value of the sample for variable i
 int read(java.lang.String[] commands, java.io.BufferedReader in, int line_no, int debug, java.util.Vector<Variable> variables, java.util.Vector<Experiment> experiments)
          Read sample from input file in form of a buffered reader
 java.lang.String toString()
          Get string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Sample

public Sample()
Method Detail

read

public int read(java.lang.String[] commands,
                java.io.BufferedReader in,
                int line_no,
                int debug,
                java.util.Vector<Variable> variables,
                java.util.Vector<Experiment> experiments)
Read sample from input file in form of a buffered reader

Parameters:
commands - vector of strings on first line to read
in - buffered reader
line_no - current line in the buffered reader (i.e., problem file)
debug - debug level
variables - vector of variables
experiments - vector of experiments

toString

public java.lang.String toString()
Get string representation

Overrides:
toString in class java.lang.Object
Returns:
the string

getTime

public double getTime()
Get time-point of the sample

Returns:
the time-point

getValue

public double getValue(int ivar)
Get value of the sample for variable i

Returns:
the value for variable i

getSdev

public double getSdev(int ivar)
Get standard deviation of the sample for variable i

Returns:
the standard deviation for variable i