00001
00002
00003 #ifndef RINTERFACE_H
00004 #define RINTERFACE_H
00005
00006 #include "tests.h"
00007
00008 class RInterface
00009 {
00010 public:
00011 RInterface();
00012 double evalCommand(char *cmd, double *data, int size);
00013 void evalCommandList(char *cmd, double *data, int size);
00014 double evalCommandValue(char *cmd, double *data, int size,int n);
00015 void evalTest(RTESTS test, double *data, int size, char *buf);
00016 void evalTest(RTESTS test, double *data1, double *data2, int size, char *buf);
00017 void getVal(void* val, char *buf);
00018
00019 void setMu(double v) { mu=v; }
00020 double Mu() { return mu; }
00021 void setAlternative(int v) { alt=v; }
00022 int Alternative() { return alt; }
00023 void setPaired(bool v) { paired=v; }
00024 bool Paired() { return paired; }
00025 void setEqual(bool v) { equal=v; }
00026 bool Equal() { return equal; }
00027 void setConfLevel(double v) { conf_level=v; }
00028 double ConfLevel() { return conf_level; }
00029 void setCorrect(bool v) { correct=v; }
00030 bool Correct() { return correct; }
00031 void setConfInt(bool v) { conf_int=v; }
00032 bool ConfInt() { return conf_int; }
00033 void setRatio(double v) { ratio=v; }
00034 double Ratio() { return ratio; }
00035 private:
00036 double mu;
00037 int alt;
00038 bool paired;
00039 bool equal;
00040 double conf_level;
00041 bool correct;
00042 bool conf_int;
00043 double ratio;
00044 };
00045
00046 #endif //RINTERFACE_H