mixmod  3.2.0
Mixture models for clustering and classification
 All Classes Namespaces Files Functions Variables Enumerations Friends
ErrorEnumerations.h
Go to the documentation of this file.
1 /***************************************************************************
2  SRC/mixmod/Utilities/exceptions/ErrorEnumerations.h description
3  copyright : (C) MIXMOD Team - 2001-2016
4  email : contact@mixmod.org
5  ***************************************************************************/
6 
7 /***************************************************************************
8  This file is part of MIXMOD
9 
10  MIXMOD is free software: you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  MIXMOD is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with MIXMOD. If not, see <http://www.gnu.org/licenses/>.
22 
23  All informations available on : http://www.mixmod.org
24 ***************************************************************************/
30 #ifndef ERRORENUMERATIONS_H
31 #define ERRORENUMERATIONS_H
32 
33 namespace XEM {
34 
35 enum InputError {
36 
37  noError = 0,
38  nbLinesTooLarge,
39  nbLinesTooSmall,
40  pbDimensionTooLarge,
41  pbDimensionTooSmall,
42  nbCriterionTooLarge,
43  nbCriterionTooSmall,
44  wrongCriterionName,
45  nbNbClusterTooLarge,
46  nbNbClusterTooSmall,
47  nbModelTypeTooLarge,
48  nbModelTypeTooSmall,
49  wrongModelType,
50  wrongCVinitType,
51  wrongDCVinitType,
52  nbStrategyTypeTooLarge,
53  badNbParameterInInit,
54  badNbPartitionInInit,
55  nbStrategyTypeTooSmall,
56  wrongStrategyInitName,
57  errorInitParameter,
58  nbAlgoTooLarge,
59  nbAlgoTooSmall,
60  wrongAlgoType,
61  nbIterationTooLarge,
62  nbIterationTooSmall,
63  epsilonTooSmall,
64  epsilonTooLarge,
65  wrongDataFileName,
66  wrongWeightFileName,
67  wrongParamFileName,
68  wrongLabelFileName,
69  wrongPartitionFileName,
70  wrongAlgoStopName,
71  wrongOutputType,
72  wrongInputFileName,
73  wrongXEMNbParam,
74  errorNbLines,
75  errorPbDimension,
76  errorNbCriterion,
77  errorListCriterion,
78  errorNbNbCluster,
79  errorListNbCluster,
80  errorNbModel,
81  errorListModel,
82  errorNbStrategy,
83  errorInitType,
84  errorInitFile,
85  errorNbAlgo,
86  errorAlgo,
87  errorStopRule,
88  errorStopRuleValue,
89  errorDataFile,
90  nbAlgoTypeTooSmall,
91  badStrategyInitName,
92  errorOpenFile,
93  errorNbModality,
94  knownPartitionNeeded,
95  badKnownPartition,
96  endDataFileReach,
97  wrongNbKnownPartition,
98  SubDimensionFreeTooLarge,
99  SubDimensionFreeTooSmall,
100  SubDimensionEqualTooLarge,
101  SubDimensionEqualTooSmall,
102  weightTotalIsNotAnInteger,
103  ungivenSubDimension,
104  inputNotFinalized,
105  wrongNbAlgoWhenMorMAP,
106  BadInitialsationWhenM,
107  BadInitialsationWhenMAP,
108  partitionMustBeComplete,
109  algorithmMustBeM,
110  knownPartitionAndInitPartitionMustBeEqual,
111  nbStrategyMustBe1,
112  wrongNbKnownPartitionOrInitPartition,
113  tooManySampleInInitPartitionAndTooManyClusterNotRepresented,
114  notAvailableForPrediction,
115  ColumnTypeNotValid,
116  errorInPartitionInput,
117  wrongValueInMultinomialCase,
118  badNumberOfValuesInLabelInput,
119  notEnoughValuesInProbaInput,
120  badValueInLabelInput,
121 
122  badStopNameWithSEMAlgo,
123  badAlgorithmInHDContext,
124  differentSubDimensionsWithMAP,
125  wrongSubDimension,
126  missingRequiredInputs,
127  // the following errors should not be occur because they must have been see by MVCControler
128  wrongCriterionPositionInSet,
129  wrongCriterionPositionInGet,
130  wrongCriterionPositionInInsert,
131  wrongCriterionPositionInRemove,
132  wrongModelPositionInSet,
133  wrongModelPositionInGet,
134  wrongModelPositionInInsert,
135  wrongModelPositionInRemove,
136  wrongModelPositionInSetSubDimensionEqual,
137  wrongModelPositionInSetSubDimensionFree,
138  wrongModelInSetSubDimensionEqual,
139  wrongModelInSetSubDimensionFree,
140  wrongKnownPartitionPositionInSet,
141  wrongKnownPartitionPositionInRemove,
142  badSetKnownPartition,
143  wrongStrategyPositionInSetOrGetMethod,
144  nbTryInStrategyTooSmall,
145  nbTryInStrategyTooLarge,
146  nbTryInInitTooSmall,
147  nbTryInInitTooLarge,
148  epsilonInInitTooSmall,
149  epsilonInInitTooLarge,
150  nbIterationInInitTooSmall,
151  nbIterationInInitTooLarge,
152  wrongNbStrategyTryValue,
153  badInitPart,
154  badSetNbTry,
155  badSetNbTryInInit,
156  badSetNbIterationInInit,
157  badSetEpsilonInInit,
158 
159  badSetStopNameInInit,
160  badCriterion,
161  badAlgo,
162  badAlgoStop,
163  badInputType,
164  DAInput,
165  wrongModelName,
166  knownPartitionNotAvailable,
167  tooManyWeightColumnDescription,
168  badDataDescription,
169  badLabelDescription,
170  errorInColumnDescription,
171  errorInXEMInputSelector,
172  wrongIndexInGetMethod,
173  HDModelsAreNotAvailableInClusteringContext
174 };
175 
176 enum DCVError {
177 
178  wrongDCVinitBlocks,
179  wrongDCVnumberOfBlocks,
180  DCVmustBeDIAG,
181  forbiddenCallToGetBestCVModel
182 };
183 
184 enum DCVonlyInGaussianCaseError {
185 
186  allCVCriterionErrorForAnEstimationInDCVContext,
187  NbDCVBlocksTooSmall
188 };
189 
190 enum NumericError {
191 
192  int64_t_max_error,
193  CEM_INIT_error,
194  SEM_MAX_error,
195  SMALL_EM_error,
196  tabNkNotInteger,
197  sumFiNullAndfkTPrimNull,
198  sumFiNullInMultinomialCase,
199  nonPositiveDefiniteMatrix,
200  nullDeterminant,
201  randomProblem,
202  nullLikelihood,
203  noProbability,
204  pbNEC,
205  nullNk,
206 
207  numericError,
208  errorSigmaConditionNumber,
209  minDeterminantSigmaValueError,
210  minDeterminantWValueError,
211  minDeterminantDiagWkValueError,
212 
213  minDeterminantDiagWValueError,
214  minDeterminantBValueError,
215  minDeterminantRValueError,
216  minDeterminantWkValueError,
217  minDeterminantShapeValueError,
218  minDeterminantDiagQtmpValueError
219 };
220 
221 enum OtherError {
222 
223  badFormat,
224  nullPointerError,
225  wrongMatrixType,
226  wrongConstructorType,
227  nonImplementedMethod,
228  badBinaryParameterClass,
229  internalMixmodError,
230  FunctionNotYetImplemented,
231  AllTriesGotErros,
232  AllModelsGotErros,
233  UnknownReason
234 };
235 
236 }
237 
238 #endif /* ERRORENUMERATIONS_H_ */