Java.problem
Class Experiment

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

public class Experiment
extends java.lang.Object

Description of an experiment

Since:
1.0

Constructor Summary
Experiment(int N_VARIABLES, int line_no)
          Constricts an experiment
 
Method Summary
 void addInitialBound(InitialBound ib, Variable v)
          Add initial bound
 void addSample(Sample s)
          Add one sample
 double getLowerInitialBound(int ivar)
          Get lower initial bound for variable i
 double getMaxTime()
          Get the max time point over all samples
 double getMaxValue()
          Get the max data value over all samples
 double getMaxValue(int ivar)
          Get the max data value over all samples for variable i
 double getMinTime()
          Get the min time point over all samples
 double getMinValue()
          Get the min data value over all samples
 double getMinValue(int ivar)
          Get the min data value over all samples for variable i
 int getNumberOfSamples()
          Get the number of samples
 Sample getSample(int i)
          Get sample i
 double[] getSdevArray(int ivar)
          Get data standard deviations for variable i
 double[] getTimeArray()
          Get time-points
 double getUpperInitialBound(int ivar)
          Get upper initial bound for variable i
 double[] getValueArray(int ivar)
          Get data values for variable i
 boolean hasPerfectData()
          Indication if data is perfect
 int read(java.lang.String[] commands, java.io.BufferedReader in, int line_no, int debug)
          Read range from input file in form of a buffered reader
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Experiment

public Experiment(int N_VARIABLES,
                  int line_no)
Constricts an experiment

Parameters:
N_VARIABLES - number of variables
line_no - current line in the buffered reader (i.e., problem file)
Method Detail

read

public int read(java.lang.String[] commands,
                java.io.BufferedReader in,
                int line_no,
                int debug)
Read range 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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getTimeArray

public double[] getTimeArray()
Get time-points

Returns:
vector of time-points

getValueArray

public double[] getValueArray(int ivar)
Get data values for variable i

Parameters:
ivar - the variable i
Returns:
vector of data

getSdevArray

public double[] getSdevArray(int ivar)
Get data standard deviations for variable i

Parameters:
ivar - the variable i
Returns:
vector of standard deviations

getMaxValue

public double getMaxValue()
Get the max data value over all samples

Returns:
the max value

getMinValue

public double getMinValue()
Get the min data value over all samples

Returns:
the min value

getMaxValue

public double getMaxValue(int ivar)
Get the max data value over all samples for variable i

Parameters:
ivar - the variable i
Returns:
the max value

getMinValue

public double getMinValue(int ivar)
Get the min data value over all samples for variable i

Parameters:
ivar - the variable i
Returns:
the min value

getMaxTime

public double getMaxTime()
Get the max time point over all samples

Returns:
the max time point

getMinTime

public double getMinTime()
Get the min time point over all samples

Returns:
the min time point

addSample

public void addSample(Sample s)
Add one sample

Parameters:
s - the sample

getSample

public Sample getSample(int i)
Get sample i

Parameters:
i - index of the sample
Returns:
the sample

getNumberOfSamples

public int getNumberOfSamples()
Get the number of samples

Returns:
the number of samples

hasPerfectData

public boolean hasPerfectData()
Indication if data is perfect

Returns:
true if experiment has perfect data (artificial test data without noise), o.w. false

addInitialBound

public void addInitialBound(InitialBound ib,
                            Variable v)
Add initial bound

Parameters:
ib - the initial bound
v - variable to add initial bound to

getLowerInitialBound

public double getLowerInitialBound(int ivar)
Get lower initial bound for variable i

Parameters:
ivar - the variable index
Returns:
the lower initial bound

getUpperInitialBound

public double getUpperInitialBound(int ivar)
Get upper initial bound for variable i

Parameters:
ivar - the variable index
Returns:
the upper initial bound