00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef DEXPERIMENTRESULTRECORD_H
00026 #define DEXPERIMENTRESULTRECORD_H
00027
00028
00029 #include <QHash>
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 typedef double ClassProbabilityT;
00040 typedef QHash<int, ClassProbabilityT> ClassProbabilities;
00041 typedef QHashIterator<int, ClassProbabilityT> ClassProbabilitiesIterator;
00042 typedef QMutableHashIterator<int, ClassProbabilityT> MutableClassProbabilitiesIterator;
00043
00044
00045 #if 0 // update this to reflect the new system
00046
00073 class DExperimentResultRecord {
00074 public:
00075 DExperimentResultRecord( int experimentId = -1,
00076 int testGestureId = -1,
00077 int testClassId = -1,
00078 int resultClassId = -1,
00079 ClassProbabilityT resultClassProb = -1.0 )
00080 : experimentId(experimentId),
00081 testGestureId(testGestureId),
00082 testClassId(testClassId),
00083 resultClassId(resultClassId),
00084 resultClassProb(resultClassProb) {}
00085 int experimentId;
00086 int testGestureId;
00087 int testClassId;
00088 int resultClassId;
00089 ClassProbabilityT resultClassProb;
00090 };
00091 #endif
00092
00093
00094 #endif // ! DEXPERIMENTRESULTRECORD_H