SHOGUN
v1.1.0
|
00001 /* 00002 * THIS IS A GENERATED FILE! DO NOT CHANGE THIS FILE! CHANGE THE 00003 * CORRESPONDING TEMPLAT FILE, PLEASE! 00004 -e */ 00005 00006 /* 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 3 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * Written (W) 2009 Soeren Sonnenburg 00013 * Copyright (C) 2009 Fraunhofer Institute FIRST and Max-Planck-Society 00014 */ 00015 00016 #include "lib/common.h" 00017 #include "base/class_list.h" 00018 00019 #include <string.h> 00020 00021 #include "kernel/Kernel.h" 00022 00023 #include "features/DummyFeatures.h" 00024 #include "features/FKFeatures.h" 00025 #include "features/Alphabet.h" 00026 #include "features/ImplicitWeightedSpecFeatures.h" 00027 #include "features/SimpleFeatures.h" 00028 #include "features/SparseFeatures.h" 00029 #include "features/ExplicitSpecFeatures.h" 00030 #include "features/CombinedDotFeatures.h" 00031 #include "features/HashedWDFeatures.h" 00032 #include "features/CombinedFeatures.h" 00033 #include "features/WDFeatures.h" 00034 #include "features/StreamingStringFeatures.h" 00035 #include "features/Subset.h" 00036 #include "features/StreamingSimpleFeatures.h" 00037 #include "features/StringFileFeatures.h" 00038 #include "features/StreamingVwFeatures.h" 00039 #include "features/RealFileFeatures.h" 00040 #include "features/PolyFeatures.h" 00041 #include "features/SNPFeatures.h" 00042 #include "features/StreamingSparseFeatures.h" 00043 #include "features/LBPPyrDotFeatures.h" 00044 #include "features/Labels.h" 00045 #include "features/HashedWDFeaturesTransposed.h" 00046 #include "features/StringFeatures.h" 00047 #include "features/TOPFeatures.h" 00048 #include "features/SparsePolyFeatures.h" 00049 #include "mathematics/Math.h" 00050 #include "mathematics/Statistics.h" 00051 #include "classifier/KNN.h" 00052 #include "classifier/vw/VwEnvironment.h" 00053 #include "classifier/vw/learners/VwNonAdaptiveLearner.h" 00054 #include "classifier/vw/learners/VwAdaptiveLearner.h" 00055 #include "classifier/vw/VwParser.h" 00056 #include "classifier/vw/VwRegressor.h" 00057 #include "classifier/vw/cache/VwNativeCacheWriter.h" 00058 #include "classifier/vw/cache/VwNativeCacheReader.h" 00059 #include "classifier/vw/VowpalWabbit.h" 00060 #include "classifier/AveragedPerceptron.h" 00061 #include "classifier/mkl/MKLClassification.h" 00062 #include "classifier/mkl/MKLOneClass.h" 00063 #include "classifier/mkl/MKLMultiClass.h" 00064 #include "classifier/PluginEstimate.h" 00065 #include "classifier/GaussianNaiveBayes.h" 00066 #include "classifier/svm/LibSVMOneClass.h" 00067 #include "classifier/svm/SVMSGD.h" 00068 #include "classifier/svm/SGDQN.h" 00069 #include "classifier/svm/LibLinear.h" 00070 #include "classifier/svm/GPBTSVM.h" 00071 #include "classifier/svm/QPBSVMLib.h" 00072 #include "classifier/svm/MPDSVM.h" 00073 #include "classifier/svm/OnlineLibLinear.h" 00074 #include "classifier/svm/GMNPLib.h" 00075 #include "classifier/svm/LibSVMMultiClass.h" 00076 #include "classifier/svm/ScatterSVM.h" 00077 #include "classifier/svm/MultiClassSVM.h" 00078 #include "classifier/svm/GNPPLib.h" 00079 #include "classifier/svm/WDSVMOcas.h" 00080 #include "classifier/svm/DomainAdaptationSVMLinear.h" 00081 #include "classifier/svm/LibSVM.h" 00082 #include "classifier/svm/LaRank.h" 00083 #include "classifier/svm/SVMOcas.h" 00084 #include "classifier/svm/GNPPSVM.h" 00085 #include "classifier/svm/GMNPSVM.h" 00086 #include "classifier/svm/SVMLin.h" 00087 #include "classifier/svm/SubGradientSVM.h" 00088 #include "classifier/svm/SVM.h" 00089 #include "classifier/svm/Tron.h" 00090 #include "classifier/svm/OnlineSVMSGD.h" 00091 #include "classifier/LDA.h" 00092 #include "classifier/Perceptron.h" 00093 #include "clustering/KMeans.h" 00094 #include "clustering/Hierarchical.h" 00095 #include "clustering/GMM.h" 00096 #include "ui/GUIPreprocessor.h" 00097 #include "ui/GUIStructure.h" 00098 #include "ui/GUIDistance.h" 00099 #include "ui/GUIKernel.h" 00100 #include "ui/GUIHMM.h" 00101 #include "ui/GUIFeatures.h" 00102 #include "ui/GUIClassifier.h" 00103 #include "ui/GUIPluginEstimate.h" 00104 #include "ui/GUITime.h" 00105 #include "ui/GUILabels.h" 00106 #include "ui/GUIMath.h" 00107 #include "preprocessor/SortWordString.h" 00108 #include "preprocessor/NormOne.h" 00109 #include "preprocessor/LogPlusOne.h" 00110 #include "preprocessor/SortUlongString.h" 00111 #include "preprocessor/DimensionReductionPreprocessor.h" 00112 #include "preprocessor/DecompressString.h" 00113 #include "preprocessor/PCA.h" 00114 #include "preprocessor/PruneVarSubMean.h" 00115 #include "preprocessor/KernelPCA.h" 00116 #include "preprocessor/RandomFourierGaussPreproc.h" 00117 #include "modelselection/ParameterCombination.h" 00118 #include "modelselection/GridSearchModelSelection.h" 00119 #include "modelselection/ModelSelectionParameters.h" 00120 #include "distance/ChebyshewMetric.h" 00121 #include "distance/BrayCurtisDistance.h" 00122 #include "distance/EuclidianDistance.h" 00123 #include "distance/JensenMetric.h" 00124 #include "distance/HammingWordDistance.h" 00125 #include "distance/ManhattanMetric.h" 00126 #include "distance/CustomDistance.h" 00127 #include "distance/SparseEuclidianDistance.h" 00128 #include "distance/KernelDistance.h" 00129 #include "distance/CanberraMetric.h" 00130 #include "distance/ChiSquareDistance.h" 00131 #include "distance/CosineDistance.h" 00132 #include "distance/MinkowskiMetric.h" 00133 #include "distance/CanberraWordDistance.h" 00134 #include "distance/TanimotoDistance.h" 00135 #include "distance/GeodesicMetric.h" 00136 #include "distance/AttenuatedEuclidianDistance.h" 00137 #include "distance/ManhattanWordDistance.h" 00138 #include "structure/PlifMatrix.h" 00139 #include "structure/Plif.h" 00140 #include "structure/DynProg.h" 00141 #include "structure/SegmentLoss.h" 00142 #include "structure/IntronList.h" 00143 #include "structure/PlifArray.h" 00144 #include "io/SerializableAsciiFile.h" 00145 #include "io/StreamingFileFromFeatures.h" 00146 #include "io/BinaryFile.h" 00147 #include "io/BinaryStream.h" 00148 #include "io/AsciiFile.h" 00149 #include "io/StreamingFile.h" 00150 #include "io/ParseBuffer.h" 00151 #include "io/StreamingVwCacheFile.h" 00152 #include "io/StreamingFileFromStringFeatures.h" 00153 #include "io/SimpleFile.h" 00154 #include "io/MemoryMappedFile.h" 00155 #include "io/StreamingAsciiFile.h" 00156 #include "io/IOBuffer.h" 00157 #include "io/StreamingFileFromSparseFeatures.h" 00158 #include "io/StreamingFileFromSimpleFeatures.h" 00159 #include "io/StreamingVwFile.h" 00160 #include "loss/LogLoss.h" 00161 #include "loss/HingeLoss.h" 00162 #include "loss/SquaredLoss.h" 00163 #include "loss/SmoothHingeLoss.h" 00164 #include "loss/LogLossMargin.h" 00165 #include "loss/SquaredHingeLoss.h" 00166 #include "evaluation/MulticlassAccuracy.h" 00167 #include "evaluation/MeanSquaredError.h" 00168 #include "evaluation/CrossValidation.h" 00169 #include "evaluation/ContingencyTableEvaluation.h" 00170 #include "evaluation/PRCEvaluation.h" 00171 #include "evaluation/StratifiedCrossValidationSplitting.h" 00172 #include "evaluation/MeanAbsoluteError.h" 00173 #include "evaluation/ROCEvaluation.h" 00174 #include "distributions/GHMM.h" 00175 #include "distributions/HMM.h" 00176 #include "distributions/Gaussian.h" 00177 #include "distributions/PositionalPWM.h" 00178 #include "distributions/Histogram.h" 00179 #include "distributions/LinearHMM.h" 00180 #include "machine/KernelMachine.h" 00181 #include "machine/OnlineLinearMachine.h" 00182 #include "machine/LinearMachine.h" 00183 #include "machine/DistanceMachine.h" 00184 #include "converter/LinearLocalTangentSpaceAlignment.h" 00185 #include "converter/DiffusionMaps.h" 00186 #include "converter/LocallyLinearEmbedding.h" 00187 #include "converter/NeighborhoodPreservingEmbedding.h" 00188 #include "converter/LocalityPreservingProjections.h" 00189 #include "converter/HessianLocallyLinearEmbedding.h" 00190 #include "converter/LocalTangentSpaceAlignment.h" 00191 #include "converter/KernelLocallyLinearEmbedding.h" 00192 #include "converter/Isomap.h" 00193 #include "converter/LaplacianEigenmaps.h" 00194 #include "converter/MultidimensionalScaling.h" 00195 #include "converter/KernelLocalTangentSpaceAlignment.h" 00196 #include "regression/svr/MKLRegression.h" 00197 #include "regression/svr/LibSVR.h" 00198 #include "regression/KRR.h" 00199 #include "lib/List.h" 00200 #include "lib/Compressor.h" 00201 #include "lib/Set.h" 00202 #include "lib/Cache.h" 00203 #include "lib/Time.h" 00204 #include "lib/FibonacciHeap.h" 00205 #include "lib/DynamicArray.h" 00206 #include "lib/DynamicObjectArray.h" 00207 #include "lib/Array2.h" 00208 #include "lib/Hash.h" 00209 #include "lib/Signal.h" 00210 #include "lib/HashSet.h" 00211 #include "lib/Array3.h" 00212 #include "lib/BitString.h" 00213 #include "lib/Array.h" 00214 #include "kernel/ExponentialKernel.h" 00215 #include "kernel/CauchyKernel.h" 00216 #include "kernel/LogKernel.h" 00217 #include "kernel/MultitaskKernelTreeNormalizer.h" 00218 #include "kernel/SNPStringKernel.h" 00219 #include "kernel/ZeroMeanCenterKernelNormalizer.h" 00220 #include "kernel/Chi2Kernel.h" 00221 #include "kernel/WeightedDegreePositionStringKernel.h" 00222 #include "kernel/SimpleLocalityImprovedStringKernel.h" 00223 #include "kernel/SigmoidKernel.h" 00224 #include "kernel/HistogramIntersectionKernel.h" 00225 #include "kernel/TStudentKernel.h" 00226 #include "kernel/FirstElementKernelNormalizer.h" 00227 #include "kernel/SphericalKernel.h" 00228 #include "kernel/OligoStringKernel.h" 00229 #include "kernel/PolyMatchStringKernel.h" 00230 #include "kernel/AUCKernel.h" 00231 #include "kernel/LocalAlignmentStringKernel.h" 00232 #include "kernel/MultiquadricKernel.h" 00233 #include "kernel/SpectrumRBFKernel.h" 00234 #include "kernel/WaveletKernel.h" 00235 #include "kernel/DistantSegmentsKernel.h" 00236 #include "kernel/GaussianKernel.h" 00237 #include "kernel/LinearStringKernel.h" 00238 #include "kernel/ScatterKernelNormalizer.h" 00239 #include "kernel/RegulatoryModulesStringKernel.h" 00240 #include "kernel/MultitaskKernelMaskPairNormalizer.h" 00241 #include "kernel/BesselKernel.h" 00242 #include "kernel/CustomKernel.h" 00243 #include "kernel/TanimotoKernelNormalizer.h" 00244 #include "kernel/PolyKernel.h" 00245 #include "kernel/HistogramWordStringKernel.h" 00246 #include "kernel/MultitaskKernelPlifNormalizer.h" 00247 #include "kernel/SalzbergWordStringKernel.h" 00248 #include "kernel/RationalQuadraticKernel.h" 00249 #include "kernel/ConstKernel.h" 00250 #include "kernel/PowerKernel.h" 00251 #include "kernel/WeightedDegreeStringKernel.h" 00252 #include "kernel/IdentityKernelNormalizer.h" 00253 #include "kernel/LocalityImprovedStringKernel.h" 00254 #include "kernel/FixedDegreeStringKernel.h" 00255 #include "kernel/AvgDiagKernelNormalizer.h" 00256 #include "kernel/LinearKernel.h" 00257 #include "kernel/CombinedKernel.h" 00258 #include "kernel/CircularKernel.h" 00259 #include "kernel/MultitaskKernelNormalizer.h" 00260 #include "kernel/SpectrumMismatchRBFKernel.h" 00261 #include "kernel/GaussianShortRealKernel.h" 00262 #include "kernel/GaussianShiftKernel.h" 00263 #include "kernel/TensorProductPairKernel.h" 00264 #include "kernel/MultitaskKernelMaskNormalizer.h" 00265 #include "kernel/DistanceKernel.h" 00266 #include "kernel/RidgeKernelNormalizer.h" 00267 #include "kernel/MatchWordStringKernel.h" 00268 #include "kernel/WeightedCommWordStringKernel.h" 00269 #include "kernel/VarianceKernelNormalizer.h" 00270 #include "kernel/SparseSpatialSampleStringKernel.h" 00271 #include "kernel/InverseMultiQuadricKernel.h" 00272 #include "kernel/ANOVAKernel.h" 00273 #include "kernel/PyramidChi2.h" 00274 #include "kernel/WeightedDegreeRBFKernel.h" 00275 #include "kernel/GaussianMatchStringKernel.h" 00276 #include "kernel/DiagKernel.h" 00277 #include "kernel/PolyMatchWordStringKernel.h" 00278 #include "kernel/CommUlongStringKernel.h" 00279 #include "kernel/SplineKernel.h" 00280 #include "kernel/WaveKernel.h" 00281 #include "kernel/DiceKernelNormalizer.h" 00282 #include "kernel/CommWordStringKernel.h" 00283 #include "kernel/SqrtDiagKernelNormalizer.h" 00284 using namespace shogun; 00285 00286 static CSGObject* __new_CDummyFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDummyFeatures(): NULL; } 00287 static CSGObject* __new_CFKFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CFKFeatures(): NULL; } 00288 static CSGObject* __new_CAlphabet(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CAlphabet(): NULL; } 00289 static CSGObject* __new_CImplicitWeightedSpecFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CImplicitWeightedSpecFeatures(): NULL; } 00290 static CSGObject* __new_CExplicitSpecFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CExplicitSpecFeatures(): NULL; } 00291 static CSGObject* __new_CCombinedDotFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCombinedDotFeatures(): NULL; } 00292 static CSGObject* __new_CHashedWDFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHashedWDFeatures(): NULL; } 00293 static CSGObject* __new_CCombinedFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCombinedFeatures(): NULL; } 00294 static CSGObject* __new_CWDFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWDFeatures(): NULL; } 00295 static CSGObject* __new_CSubset(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSubset(): NULL; } 00296 static CSGObject* __new_CStreamingVwFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CStreamingVwFeatures(): NULL; } 00297 static CSGObject* __new_CRealFileFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CRealFileFeatures(): NULL; } 00298 static CSGObject* __new_CPolyFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPolyFeatures(): NULL; } 00299 static CSGObject* __new_CSNPFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSNPFeatures(): NULL; } 00300 static CSGObject* __new_CLBPPyrDotFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLBPPyrDotFeatures(): NULL; } 00301 static CSGObject* __new_CLabels(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLabels(): NULL; } 00302 static CSGObject* __new_CHashedWDFeaturesTransposed(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHashedWDFeaturesTransposed(): NULL; } 00303 static CSGObject* __new_CTOPFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTOPFeatures(): NULL; } 00304 static CSGObject* __new_CSparsePolyFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSparsePolyFeatures(): NULL; } 00305 static CSGObject* __new_CMath(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMath(): NULL; } 00306 static CSGObject* __new_CStatistics(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CStatistics(): NULL; } 00307 static CSGObject* __new_CKNN(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CKNN(): NULL; } 00308 static CSGObject* __new_CVwEnvironment(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CVwEnvironment(): NULL; } 00309 static CSGObject* __new_CVwNonAdaptiveLearner(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CVwNonAdaptiveLearner(): NULL; } 00310 static CSGObject* __new_CVwAdaptiveLearner(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CVwAdaptiveLearner(): NULL; } 00311 static CSGObject* __new_CVwParser(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CVwParser(): NULL; } 00312 static CSGObject* __new_CVwRegressor(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CVwRegressor(): NULL; } 00313 static CSGObject* __new_CVwNativeCacheWriter(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CVwNativeCacheWriter(): NULL; } 00314 static CSGObject* __new_CVwNativeCacheReader(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CVwNativeCacheReader(): NULL; } 00315 static CSGObject* __new_CVowpalWabbit(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CVowpalWabbit(): NULL; } 00316 static CSGObject* __new_CAveragedPerceptron(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CAveragedPerceptron(): NULL; } 00317 static CSGObject* __new_CMKLClassification(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMKLClassification(): NULL; } 00318 static CSGObject* __new_CMKLOneClass(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMKLOneClass(): NULL; } 00319 static CSGObject* __new_CMKLMultiClass(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMKLMultiClass(): NULL; } 00320 static CSGObject* __new_CPluginEstimate(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPluginEstimate(): NULL; } 00321 static CSGObject* __new_CGaussianNaiveBayes(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGaussianNaiveBayes(): NULL; } 00322 static CSGObject* __new_CLibSVMOneClass(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLibSVMOneClass(): NULL; } 00323 static CSGObject* __new_CSVMSGD(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSVMSGD(): NULL; } 00324 static CSGObject* __new_CSGDQN(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSGDQN(): NULL; } 00325 static CSGObject* __new_CLibLinear(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLibLinear(): NULL; } 00326 static CSGObject* __new_CGPBTSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGPBTSVM(): NULL; } 00327 static CSGObject* __new_CQPBSVMLib(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CQPBSVMLib(): NULL; } 00328 static CSGObject* __new_CMPDSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMPDSVM(): NULL; } 00329 static CSGObject* __new_COnlineLibLinear(EPrimitiveType g) { return g == PT_NOT_GENERIC? new COnlineLibLinear(): NULL; } 00330 static CSGObject* __new_CGMNPLib(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGMNPLib(): NULL; } 00331 static CSGObject* __new_CLibSVMMultiClass(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLibSVMMultiClass(): NULL; } 00332 static CSGObject* __new_CScatterSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CScatterSVM(): NULL; } 00333 static CSGObject* __new_CMultiClassSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMultiClassSVM(): NULL; } 00334 static CSGObject* __new_CGNPPLib(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGNPPLib(): NULL; } 00335 static CSGObject* __new_CWDSVMOcas(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWDSVMOcas(): NULL; } 00336 static CSGObject* __new_CDomainAdaptationSVMLinear(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDomainAdaptationSVMLinear(): NULL; } 00337 static CSGObject* __new_CLibSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLibSVM(): NULL; } 00338 static CSGObject* __new_CLaRank(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLaRank(): NULL; } 00339 static CSGObject* __new_CSVMOcas(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSVMOcas(): NULL; } 00340 static CSGObject* __new_CGNPPSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGNPPSVM(): NULL; } 00341 static CSGObject* __new_CGMNPSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGMNPSVM(): NULL; } 00342 static CSGObject* __new_CSVMLin(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSVMLin(): NULL; } 00343 static CSGObject* __new_CSubGradientSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSubGradientSVM(): NULL; } 00344 static CSGObject* __new_CSVM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSVM(): NULL; } 00345 static CSGObject* __new_CTron(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTron(): NULL; } 00346 static CSGObject* __new_COnlineSVMSGD(EPrimitiveType g) { return g == PT_NOT_GENERIC? new COnlineSVMSGD(): NULL; } 00347 static CSGObject* __new_CLDA(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLDA(): NULL; } 00348 static CSGObject* __new_CPerceptron(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPerceptron(): NULL; } 00349 static CSGObject* __new_CKMeans(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CKMeans(): NULL; } 00350 static CSGObject* __new_CHierarchical(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHierarchical(): NULL; } 00351 static CSGObject* __new_CGMM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGMM(): NULL; } 00352 static CSGObject* __new_CGUIPreprocessor(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUIPreprocessor(): NULL; } 00353 static CSGObject* __new_CGUIStructure(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUIStructure(): NULL; } 00354 static CSGObject* __new_CGUIDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUIDistance(): NULL; } 00355 static CSGObject* __new_CGUIKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUIKernel(): NULL; } 00356 static CSGObject* __new_CGUIHMM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUIHMM(): NULL; } 00357 static CSGObject* __new_CGUIFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUIFeatures(): NULL; } 00358 static CSGObject* __new_CGUIClassifier(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUIClassifier(): NULL; } 00359 static CSGObject* __new_CGUIPluginEstimate(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUIPluginEstimate(): NULL; } 00360 static CSGObject* __new_CGUITime(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUITime(): NULL; } 00361 static CSGObject* __new_CGUILabels(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUILabels(): NULL; } 00362 static CSGObject* __new_CGUIMath(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGUIMath(): NULL; } 00363 static CSGObject* __new_CSortWordString(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSortWordString(): NULL; } 00364 static CSGObject* __new_CNormOne(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CNormOne(): NULL; } 00365 static CSGObject* __new_CLogPlusOne(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLogPlusOne(): NULL; } 00366 static CSGObject* __new_CSortUlongString(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSortUlongString(): NULL; } 00367 static CSGObject* __new_CDimensionReductionPreprocessor(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDimensionReductionPreprocessor(): NULL; } 00368 static CSGObject* __new_CPCA(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPCA(): NULL; } 00369 static CSGObject* __new_CPruneVarSubMean(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPruneVarSubMean(): NULL; } 00370 static CSGObject* __new_CKernelPCA(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CKernelPCA(): NULL; } 00371 static CSGObject* __new_CRandomFourierGaussPreproc(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CRandomFourierGaussPreproc(): NULL; } 00372 static CSGObject* __new_CParameterCombination(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CParameterCombination(): NULL; } 00373 static CSGObject* __new_CGridSearchModelSelection(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGridSearchModelSelection(): NULL; } 00374 static CSGObject* __new_CModelSelectionParameters(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CModelSelectionParameters(): NULL; } 00375 static CSGObject* __new_CChebyshewMetric(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CChebyshewMetric(): NULL; } 00376 static CSGObject* __new_CBrayCurtisDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CBrayCurtisDistance(): NULL; } 00377 static CSGObject* __new_CEuclidianDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CEuclidianDistance(): NULL; } 00378 static CSGObject* __new_CJensenMetric(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CJensenMetric(): NULL; } 00379 static CSGObject* __new_CHammingWordDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHammingWordDistance(): NULL; } 00380 static CSGObject* __new_CManhattanMetric(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CManhattanMetric(): NULL; } 00381 static CSGObject* __new_CCustomDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCustomDistance(): NULL; } 00382 static CSGObject* __new_CSparseEuclidianDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSparseEuclidianDistance(): NULL; } 00383 static CSGObject* __new_CKernelDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CKernelDistance(): NULL; } 00384 static CSGObject* __new_CCanberraMetric(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCanberraMetric(): NULL; } 00385 static CSGObject* __new_CChiSquareDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CChiSquareDistance(): NULL; } 00386 static CSGObject* __new_CCosineDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCosineDistance(): NULL; } 00387 static CSGObject* __new_CMinkowskiMetric(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMinkowskiMetric(): NULL; } 00388 static CSGObject* __new_CCanberraWordDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCanberraWordDistance(): NULL; } 00389 static CSGObject* __new_CTanimotoDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTanimotoDistance(): NULL; } 00390 static CSGObject* __new_CGeodesicMetric(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGeodesicMetric(): NULL; } 00391 static CSGObject* __new_CAttenuatedEuclidianDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CAttenuatedEuclidianDistance(): NULL; } 00392 static CSGObject* __new_CManhattanWordDistance(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CManhattanWordDistance(): NULL; } 00393 static CSGObject* __new_CPlifMatrix(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPlifMatrix(): NULL; } 00394 static CSGObject* __new_CPlif(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPlif(): NULL; } 00395 static CSGObject* __new_CDynProg(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDynProg(): NULL; } 00396 static CSGObject* __new_CSegmentLoss(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSegmentLoss(): NULL; } 00397 static CSGObject* __new_CIntronList(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CIntronList(): NULL; } 00398 static CSGObject* __new_CPlifArray(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPlifArray(): NULL; } 00399 static CSGObject* __new_CSerializableAsciiFile(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSerializableAsciiFile(): NULL; } 00400 static CSGObject* __new_CStreamingFileFromFeatures(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CStreamingFileFromFeatures(): NULL; } 00401 static CSGObject* __new_CBinaryFile(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CBinaryFile(): NULL; } 00402 static CSGObject* __new_CAsciiFile(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CAsciiFile(): NULL; } 00403 static CSGObject* __new_CStreamingFile(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CStreamingFile(): NULL; } 00404 static CSGObject* __new_CStreamingVwCacheFile(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CStreamingVwCacheFile(): NULL; } 00405 static CSGObject* __new_CStreamingAsciiFile(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CStreamingAsciiFile(): NULL; } 00406 static CSGObject* __new_CIOBuffer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CIOBuffer(): NULL; } 00407 static CSGObject* __new_CStreamingVwFile(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CStreamingVwFile(): NULL; } 00408 static CSGObject* __new_CLogLoss(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLogLoss(): NULL; } 00409 static CSGObject* __new_CHingeLoss(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHingeLoss(): NULL; } 00410 static CSGObject* __new_CSquaredLoss(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSquaredLoss(): NULL; } 00411 static CSGObject* __new_CSmoothHingeLoss(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSmoothHingeLoss(): NULL; } 00412 static CSGObject* __new_CLogLossMargin(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLogLossMargin(): NULL; } 00413 static CSGObject* __new_CSquaredHingeLoss(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSquaredHingeLoss(): NULL; } 00414 static CSGObject* __new_CMulticlassAccuracy(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMulticlassAccuracy(): NULL; } 00415 static CSGObject* __new_CMeanSquaredError(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMeanSquaredError(): NULL; } 00416 static CSGObject* __new_CCrossValidation(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCrossValidation(): NULL; } 00417 static CSGObject* __new_CContingencyTableEvaluation(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CContingencyTableEvaluation(): NULL; } 00418 static CSGObject* __new_CAccuracyMeasure(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CAccuracyMeasure(): NULL; } 00419 static CSGObject* __new_CErrorRateMeasure(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CErrorRateMeasure(): NULL; } 00420 static CSGObject* __new_CBALMeasure(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CBALMeasure(): NULL; } 00421 static CSGObject* __new_CWRACCMeasure(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWRACCMeasure(): NULL; } 00422 static CSGObject* __new_CF1Measure(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CF1Measure(): NULL; } 00423 static CSGObject* __new_CCrossCorrelationMeasure(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCrossCorrelationMeasure(): NULL; } 00424 static CSGObject* __new_CRecallMeasure(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CRecallMeasure(): NULL; } 00425 static CSGObject* __new_CPrecisionMeasure(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPrecisionMeasure(): NULL; } 00426 static CSGObject* __new_CSpecificityMeasure(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSpecificityMeasure(): NULL; } 00427 static CSGObject* __new_CPRCEvaluation(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPRCEvaluation(): NULL; } 00428 static CSGObject* __new_CStratifiedCrossValidationSplitting(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CStratifiedCrossValidationSplitting(): NULL; } 00429 static CSGObject* __new_CMeanAbsoluteError(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMeanAbsoluteError(): NULL; } 00430 static CSGObject* __new_CROCEvaluation(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CROCEvaluation(): NULL; } 00431 static CSGObject* __new_CGHMM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGHMM(): NULL; } 00432 static CSGObject* __new_CHMM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHMM(): NULL; } 00433 static CSGObject* __new_CGaussian(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGaussian(): NULL; } 00434 static CSGObject* __new_CPositionalPWM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPositionalPWM(): NULL; } 00435 static CSGObject* __new_CHistogram(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHistogram(): NULL; } 00436 static CSGObject* __new_CLinearHMM(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLinearHMM(): NULL; } 00437 static CSGObject* __new_CKernelMachine(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CKernelMachine(): NULL; } 00438 static CSGObject* __new_COnlineLinearMachine(EPrimitiveType g) { return g == PT_NOT_GENERIC? new COnlineLinearMachine(): NULL; } 00439 static CSGObject* __new_CLinearMachine(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLinearMachine(): NULL; } 00440 static CSGObject* __new_CDistanceMachine(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDistanceMachine(): NULL; } 00441 static CSGObject* __new_CLinearLocalTangentSpaceAlignment(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLinearLocalTangentSpaceAlignment(): NULL; } 00442 static CSGObject* __new_CDiffusionMaps(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDiffusionMaps(): NULL; } 00443 static CSGObject* __new_CLocallyLinearEmbedding(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLocallyLinearEmbedding(): NULL; } 00444 static CSGObject* __new_CNeighborhoodPreservingEmbedding(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CNeighborhoodPreservingEmbedding(): NULL; } 00445 static CSGObject* __new_CLocalityPreservingProjections(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLocalityPreservingProjections(): NULL; } 00446 static CSGObject* __new_CHessianLocallyLinearEmbedding(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHessianLocallyLinearEmbedding(): NULL; } 00447 static CSGObject* __new_CLocalTangentSpaceAlignment(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLocalTangentSpaceAlignment(): NULL; } 00448 static CSGObject* __new_CKernelLocallyLinearEmbedding(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CKernelLocallyLinearEmbedding(): NULL; } 00449 static CSGObject* __new_CIsomap(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CIsomap(): NULL; } 00450 static CSGObject* __new_CLaplacianEigenmaps(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLaplacianEigenmaps(): NULL; } 00451 static CSGObject* __new_CMultidimensionalScaling(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMultidimensionalScaling(): NULL; } 00452 static CSGObject* __new_CKernelLocalTangentSpaceAlignment(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CKernelLocalTangentSpaceAlignment(): NULL; } 00453 static CSGObject* __new_CMKLRegression(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMKLRegression(): NULL; } 00454 static CSGObject* __new_CLibSVR(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLibSVR(): NULL; } 00455 static CSGObject* __new_CKRR(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CKRR(): NULL; } 00456 static CSGObject* __new_CListElement(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CListElement(): NULL; } 00457 static CSGObject* __new_CList(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CList(): NULL; } 00458 static CSGObject* __new_CCompressor(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCompressor(): NULL; } 00459 static CSGObject* __new_CTime(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTime(): NULL; } 00460 static CSGObject* __new_CFibonacciHeap(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CFibonacciHeap(): NULL; } 00461 static CSGObject* __new_CHash(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHash(): NULL; } 00462 static CSGObject* __new_CSignal(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSignal(): NULL; } 00463 static CSGObject* __new_CHashSet(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHashSet(): NULL; } 00464 static CSGObject* __new_CBitString(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CBitString(): NULL; } 00465 static CSGObject* __new_CExponentialKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CExponentialKernel(): NULL; } 00466 static CSGObject* __new_CCauchyKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCauchyKernel(): NULL; } 00467 static CSGObject* __new_CLogKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLogKernel(): NULL; } 00468 static CSGObject* __new_CNode(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CNode(): NULL; } 00469 static CSGObject* __new_CTaxonomy(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTaxonomy(): NULL; } 00470 static CSGObject* __new_CMultitaskKernelTreeNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMultitaskKernelTreeNormalizer(): NULL; } 00471 static CSGObject* __new_CSNPStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSNPStringKernel(): NULL; } 00472 static CSGObject* __new_CZeroMeanCenterKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CZeroMeanCenterKernelNormalizer(): NULL; } 00473 static CSGObject* __new_CChi2Kernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CChi2Kernel(): NULL; } 00474 static CSGObject* __new_CWeightedDegreePositionStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWeightedDegreePositionStringKernel(): NULL; } 00475 static CSGObject* __new_CSimpleLocalityImprovedStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSimpleLocalityImprovedStringKernel(): NULL; } 00476 static CSGObject* __new_CSigmoidKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSigmoidKernel(): NULL; } 00477 static CSGObject* __new_CHistogramIntersectionKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHistogramIntersectionKernel(): NULL; } 00478 static CSGObject* __new_CTStudentKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTStudentKernel(): NULL; } 00479 static CSGObject* __new_CFirstElementKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CFirstElementKernelNormalizer(): NULL; } 00480 static CSGObject* __new_CSphericalKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSphericalKernel(): NULL; } 00481 static CSGObject* __new_COligoStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new COligoStringKernel(): NULL; } 00482 static CSGObject* __new_CPolyMatchStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPolyMatchStringKernel(): NULL; } 00483 static CSGObject* __new_CAUCKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CAUCKernel(): NULL; } 00484 static CSGObject* __new_CLocalAlignmentStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLocalAlignmentStringKernel(): NULL; } 00485 static CSGObject* __new_CMultiquadricKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMultiquadricKernel(): NULL; } 00486 static CSGObject* __new_CSpectrumRBFKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSpectrumRBFKernel(): NULL; } 00487 static CSGObject* __new_CWaveletKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWaveletKernel(): NULL; } 00488 static CSGObject* __new_CDistantSegmentsKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDistantSegmentsKernel(): NULL; } 00489 static CSGObject* __new_CGaussianKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGaussianKernel(): NULL; } 00490 static CSGObject* __new_CLinearStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLinearStringKernel(): NULL; } 00491 static CSGObject* __new_CScatterKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CScatterKernelNormalizer(): NULL; } 00492 static CSGObject* __new_CRegulatoryModulesStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CRegulatoryModulesStringKernel(): NULL; } 00493 static CSGObject* __new_CMultitaskKernelMaskPairNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMultitaskKernelMaskPairNormalizer(): NULL; } 00494 static CSGObject* __new_CBesselKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CBesselKernel(): NULL; } 00495 static CSGObject* __new_CCustomKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCustomKernel(): NULL; } 00496 static CSGObject* __new_CTanimotoKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTanimotoKernelNormalizer(): NULL; } 00497 static CSGObject* __new_CPolyKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPolyKernel(): NULL; } 00498 static CSGObject* __new_CHistogramWordStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CHistogramWordStringKernel(): NULL; } 00499 static CSGObject* __new_CMultitaskKernelPlifNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMultitaskKernelPlifNormalizer(): NULL; } 00500 static CSGObject* __new_CSalzbergWordStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSalzbergWordStringKernel(): NULL; } 00501 static CSGObject* __new_CRationalQuadraticKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CRationalQuadraticKernel(): NULL; } 00502 static CSGObject* __new_CConstKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CConstKernel(): NULL; } 00503 static CSGObject* __new_CPowerKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPowerKernel(): NULL; } 00504 static CSGObject* __new_CWeightedDegreeStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWeightedDegreeStringKernel(): NULL; } 00505 static CSGObject* __new_CIdentityKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CIdentityKernelNormalizer(): NULL; } 00506 static CSGObject* __new_CLocalityImprovedStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLocalityImprovedStringKernel(): NULL; } 00507 static CSGObject* __new_CFixedDegreeStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CFixedDegreeStringKernel(): NULL; } 00508 static CSGObject* __new_CAvgDiagKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CAvgDiagKernelNormalizer(): NULL; } 00509 static CSGObject* __new_CLinearKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CLinearKernel(): NULL; } 00510 static CSGObject* __new_CCombinedKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCombinedKernel(): NULL; } 00511 static CSGObject* __new_CCircularKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCircularKernel(): NULL; } 00512 static CSGObject* __new_CMultitaskKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMultitaskKernelNormalizer(): NULL; } 00513 static CSGObject* __new_CSpectrumMismatchRBFKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSpectrumMismatchRBFKernel(): NULL; } 00514 static CSGObject* __new_CGaussianShortRealKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGaussianShortRealKernel(): NULL; } 00515 static CSGObject* __new_CGaussianShiftKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGaussianShiftKernel(): NULL; } 00516 static CSGObject* __new_CTensorProductPairKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CTensorProductPairKernel(): NULL; } 00517 static CSGObject* __new_CMultitaskKernelMaskNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMultitaskKernelMaskNormalizer(): NULL; } 00518 static CSGObject* __new_CDistanceKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDistanceKernel(): NULL; } 00519 static CSGObject* __new_CRidgeKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CRidgeKernelNormalizer(): NULL; } 00520 static CSGObject* __new_CMatchWordStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CMatchWordStringKernel(): NULL; } 00521 static CSGObject* __new_CWeightedCommWordStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWeightedCommWordStringKernel(): NULL; } 00522 static CSGObject* __new_CVarianceKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CVarianceKernelNormalizer(): NULL; } 00523 static CSGObject* __new_CSparseSpatialSampleStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSparseSpatialSampleStringKernel(): NULL; } 00524 static CSGObject* __new_CInverseMultiQuadricKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CInverseMultiQuadricKernel(): NULL; } 00525 static CSGObject* __new_CANOVAKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CANOVAKernel(): NULL; } 00526 static CSGObject* __new_CPyramidChi2(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPyramidChi2(): NULL; } 00527 static CSGObject* __new_CWeightedDegreeRBFKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWeightedDegreeRBFKernel(): NULL; } 00528 static CSGObject* __new_CGaussianMatchStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CGaussianMatchStringKernel(): NULL; } 00529 static CSGObject* __new_CDiagKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDiagKernel(): NULL; } 00530 static CSGObject* __new_CPolyMatchWordStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CPolyMatchWordStringKernel(): NULL; } 00531 static CSGObject* __new_CCommUlongStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCommUlongStringKernel(): NULL; } 00532 static CSGObject* __new_CSplineKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSplineKernel(): NULL; } 00533 static CSGObject* __new_CWaveKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CWaveKernel(): NULL; } 00534 static CSGObject* __new_CDiceKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CDiceKernelNormalizer(): NULL; } 00535 static CSGObject* __new_CCommWordStringKernel(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CCommWordStringKernel(): NULL; } 00536 static CSGObject* __new_CSqrtDiagKernelNormalizer(EPrimitiveType g) { return g == PT_NOT_GENERIC? new CSqrtDiagKernelNormalizer(): NULL; } 00537 static CSGObject* __new_CSimpleFeatures(EPrimitiveType g) 00538 { 00539 switch (g) 00540 { 00541 case PT_BOOL: return new CSimpleFeatures<bool>(); 00542 case PT_CHAR: return new CSimpleFeatures<char>(); 00543 case PT_INT8: return new CSimpleFeatures<int8_t>(); 00544 case PT_UINT8: return new CSimpleFeatures<uint8_t>(); 00545 case PT_INT16: return new CSimpleFeatures<int16_t>(); 00546 case PT_UINT16: return new CSimpleFeatures<uint16_t>(); 00547 case PT_INT32: return new CSimpleFeatures<int32_t>(); 00548 case PT_UINT32: return new CSimpleFeatures<uint32_t>(); 00549 case PT_INT64: return new CSimpleFeatures<int64_t>(); 00550 case PT_UINT64: return new CSimpleFeatures<uint64_t>(); 00551 case PT_FLOAT32: return new CSimpleFeatures<float32_t>(); 00552 case PT_FLOAT64: return new CSimpleFeatures<float64_t>(); 00553 case PT_FLOATMAX: return new CSimpleFeatures<floatmax_t>(); 00554 case PT_SGOBJECT: return NULL; 00555 } 00556 return NULL; 00557 } 00558 static CSGObject* __new_CSparseFeatures(EPrimitiveType g) 00559 { 00560 switch (g) 00561 { 00562 case PT_BOOL: return new CSparseFeatures<bool>(); 00563 case PT_CHAR: return new CSparseFeatures<char>(); 00564 case PT_INT8: return new CSparseFeatures<int8_t>(); 00565 case PT_UINT8: return new CSparseFeatures<uint8_t>(); 00566 case PT_INT16: return new CSparseFeatures<int16_t>(); 00567 case PT_UINT16: return new CSparseFeatures<uint16_t>(); 00568 case PT_INT32: return new CSparseFeatures<int32_t>(); 00569 case PT_UINT32: return new CSparseFeatures<uint32_t>(); 00570 case PT_INT64: return new CSparseFeatures<int64_t>(); 00571 case PT_UINT64: return new CSparseFeatures<uint64_t>(); 00572 case PT_FLOAT32: return new CSparseFeatures<float32_t>(); 00573 case PT_FLOAT64: return new CSparseFeatures<float64_t>(); 00574 case PT_FLOATMAX: return new CSparseFeatures<floatmax_t>(); 00575 case PT_SGOBJECT: return NULL; 00576 } 00577 return NULL; 00578 } 00579 static CSGObject* __new_CStreamingStringFeatures(EPrimitiveType g) 00580 { 00581 switch (g) 00582 { 00583 case PT_BOOL: return new CStreamingStringFeatures<bool>(); 00584 case PT_CHAR: return new CStreamingStringFeatures<char>(); 00585 case PT_INT8: return new CStreamingStringFeatures<int8_t>(); 00586 case PT_UINT8: return new CStreamingStringFeatures<uint8_t>(); 00587 case PT_INT16: return new CStreamingStringFeatures<int16_t>(); 00588 case PT_UINT16: return new CStreamingStringFeatures<uint16_t>(); 00589 case PT_INT32: return new CStreamingStringFeatures<int32_t>(); 00590 case PT_UINT32: return new CStreamingStringFeatures<uint32_t>(); 00591 case PT_INT64: return new CStreamingStringFeatures<int64_t>(); 00592 case PT_UINT64: return new CStreamingStringFeatures<uint64_t>(); 00593 case PT_FLOAT32: return new CStreamingStringFeatures<float32_t>(); 00594 case PT_FLOAT64: return new CStreamingStringFeatures<float64_t>(); 00595 case PT_FLOATMAX: return new CStreamingStringFeatures<floatmax_t>(); 00596 case PT_SGOBJECT: return NULL; 00597 } 00598 return NULL; 00599 } 00600 static CSGObject* __new_CStreamingSimpleFeatures(EPrimitiveType g) 00601 { 00602 switch (g) 00603 { 00604 case PT_BOOL: return new CStreamingSimpleFeatures<bool>(); 00605 case PT_CHAR: return new CStreamingSimpleFeatures<char>(); 00606 case PT_INT8: return new CStreamingSimpleFeatures<int8_t>(); 00607 case PT_UINT8: return new CStreamingSimpleFeatures<uint8_t>(); 00608 case PT_INT16: return new CStreamingSimpleFeatures<int16_t>(); 00609 case PT_UINT16: return new CStreamingSimpleFeatures<uint16_t>(); 00610 case PT_INT32: return new CStreamingSimpleFeatures<int32_t>(); 00611 case PT_UINT32: return new CStreamingSimpleFeatures<uint32_t>(); 00612 case PT_INT64: return new CStreamingSimpleFeatures<int64_t>(); 00613 case PT_UINT64: return new CStreamingSimpleFeatures<uint64_t>(); 00614 case PT_FLOAT32: return new CStreamingSimpleFeatures<float32_t>(); 00615 case PT_FLOAT64: return new CStreamingSimpleFeatures<float64_t>(); 00616 case PT_FLOATMAX: return new CStreamingSimpleFeatures<floatmax_t>(); 00617 case PT_SGOBJECT: return NULL; 00618 } 00619 return NULL; 00620 } 00621 static CSGObject* __new_CStringFileFeatures(EPrimitiveType g) 00622 { 00623 switch (g) 00624 { 00625 case PT_BOOL: return new CStringFileFeatures<bool>(); 00626 case PT_CHAR: return new CStringFileFeatures<char>(); 00627 case PT_INT8: return new CStringFileFeatures<int8_t>(); 00628 case PT_UINT8: return new CStringFileFeatures<uint8_t>(); 00629 case PT_INT16: return new CStringFileFeatures<int16_t>(); 00630 case PT_UINT16: return new CStringFileFeatures<uint16_t>(); 00631 case PT_INT32: return new CStringFileFeatures<int32_t>(); 00632 case PT_UINT32: return new CStringFileFeatures<uint32_t>(); 00633 case PT_INT64: return new CStringFileFeatures<int64_t>(); 00634 case PT_UINT64: return new CStringFileFeatures<uint64_t>(); 00635 case PT_FLOAT32: return new CStringFileFeatures<float32_t>(); 00636 case PT_FLOAT64: return new CStringFileFeatures<float64_t>(); 00637 case PT_FLOATMAX: return new CStringFileFeatures<floatmax_t>(); 00638 case PT_SGOBJECT: return NULL; 00639 } 00640 return NULL; 00641 } 00642 static CSGObject* __new_CStreamingSparseFeatures(EPrimitiveType g) 00643 { 00644 switch (g) 00645 { 00646 case PT_BOOL: return new CStreamingSparseFeatures<bool>(); 00647 case PT_CHAR: return new CStreamingSparseFeatures<char>(); 00648 case PT_INT8: return new CStreamingSparseFeatures<int8_t>(); 00649 case PT_UINT8: return new CStreamingSparseFeatures<uint8_t>(); 00650 case PT_INT16: return new CStreamingSparseFeatures<int16_t>(); 00651 case PT_UINT16: return new CStreamingSparseFeatures<uint16_t>(); 00652 case PT_INT32: return new CStreamingSparseFeatures<int32_t>(); 00653 case PT_UINT32: return new CStreamingSparseFeatures<uint32_t>(); 00654 case PT_INT64: return new CStreamingSparseFeatures<int64_t>(); 00655 case PT_UINT64: return new CStreamingSparseFeatures<uint64_t>(); 00656 case PT_FLOAT32: return new CStreamingSparseFeatures<float32_t>(); 00657 case PT_FLOAT64: return new CStreamingSparseFeatures<float64_t>(); 00658 case PT_FLOATMAX: return new CStreamingSparseFeatures<floatmax_t>(); 00659 case PT_SGOBJECT: return NULL; 00660 } 00661 return NULL; 00662 } 00663 static CSGObject* __new_CStringFeatures(EPrimitiveType g) 00664 { 00665 switch (g) 00666 { 00667 case PT_BOOL: return new CStringFeatures<bool>(); 00668 case PT_CHAR: return new CStringFeatures<char>(); 00669 case PT_INT8: return new CStringFeatures<int8_t>(); 00670 case PT_UINT8: return new CStringFeatures<uint8_t>(); 00671 case PT_INT16: return new CStringFeatures<int16_t>(); 00672 case PT_UINT16: return new CStringFeatures<uint16_t>(); 00673 case PT_INT32: return new CStringFeatures<int32_t>(); 00674 case PT_UINT32: return new CStringFeatures<uint32_t>(); 00675 case PT_INT64: return new CStringFeatures<int64_t>(); 00676 case PT_UINT64: return new CStringFeatures<uint64_t>(); 00677 case PT_FLOAT32: return new CStringFeatures<float32_t>(); 00678 case PT_FLOAT64: return new CStringFeatures<float64_t>(); 00679 case PT_FLOATMAX: return new CStringFeatures<floatmax_t>(); 00680 case PT_SGOBJECT: return NULL; 00681 } 00682 return NULL; 00683 } 00684 static CSGObject* __new_CDecompressString(EPrimitiveType g) 00685 { 00686 switch (g) 00687 { 00688 case PT_BOOL: return new CDecompressString<bool>(); 00689 case PT_CHAR: return new CDecompressString<char>(); 00690 case PT_INT8: return new CDecompressString<int8_t>(); 00691 case PT_UINT8: return new CDecompressString<uint8_t>(); 00692 case PT_INT16: return new CDecompressString<int16_t>(); 00693 case PT_UINT16: return new CDecompressString<uint16_t>(); 00694 case PT_INT32: return new CDecompressString<int32_t>(); 00695 case PT_UINT32: return new CDecompressString<uint32_t>(); 00696 case PT_INT64: return new CDecompressString<int64_t>(); 00697 case PT_UINT64: return new CDecompressString<uint64_t>(); 00698 case PT_FLOAT32: return new CDecompressString<float32_t>(); 00699 case PT_FLOAT64: return new CDecompressString<float64_t>(); 00700 case PT_FLOATMAX: return new CDecompressString<floatmax_t>(); 00701 case PT_SGOBJECT: return NULL; 00702 } 00703 return NULL; 00704 } 00705 static CSGObject* __new_CBinaryStream(EPrimitiveType g) 00706 { 00707 switch (g) 00708 { 00709 case PT_BOOL: return new CBinaryStream<bool>(); 00710 case PT_CHAR: return new CBinaryStream<char>(); 00711 case PT_INT8: return new CBinaryStream<int8_t>(); 00712 case PT_UINT8: return new CBinaryStream<uint8_t>(); 00713 case PT_INT16: return new CBinaryStream<int16_t>(); 00714 case PT_UINT16: return new CBinaryStream<uint16_t>(); 00715 case PT_INT32: return new CBinaryStream<int32_t>(); 00716 case PT_UINT32: return new CBinaryStream<uint32_t>(); 00717 case PT_INT64: return new CBinaryStream<int64_t>(); 00718 case PT_UINT64: return new CBinaryStream<uint64_t>(); 00719 case PT_FLOAT32: return new CBinaryStream<float32_t>(); 00720 case PT_FLOAT64: return new CBinaryStream<float64_t>(); 00721 case PT_FLOATMAX: return new CBinaryStream<floatmax_t>(); 00722 case PT_SGOBJECT: return NULL; 00723 } 00724 return NULL; 00725 } 00726 static CSGObject* __new_CParseBuffer(EPrimitiveType g) 00727 { 00728 switch (g) 00729 { 00730 case PT_BOOL: return new CParseBuffer<bool>(); 00731 case PT_CHAR: return new CParseBuffer<char>(); 00732 case PT_INT8: return new CParseBuffer<int8_t>(); 00733 case PT_UINT8: return new CParseBuffer<uint8_t>(); 00734 case PT_INT16: return new CParseBuffer<int16_t>(); 00735 case PT_UINT16: return new CParseBuffer<uint16_t>(); 00736 case PT_INT32: return new CParseBuffer<int32_t>(); 00737 case PT_UINT32: return new CParseBuffer<uint32_t>(); 00738 case PT_INT64: return new CParseBuffer<int64_t>(); 00739 case PT_UINT64: return new CParseBuffer<uint64_t>(); 00740 case PT_FLOAT32: return new CParseBuffer<float32_t>(); 00741 case PT_FLOAT64: return new CParseBuffer<float64_t>(); 00742 case PT_FLOATMAX: return new CParseBuffer<floatmax_t>(); 00743 case PT_SGOBJECT: return NULL; 00744 } 00745 return NULL; 00746 } 00747 static CSGObject* __new_CStreamingFileFromStringFeatures(EPrimitiveType g) 00748 { 00749 switch (g) 00750 { 00751 case PT_BOOL: return new CStreamingFileFromStringFeatures<bool>(); 00752 case PT_CHAR: return new CStreamingFileFromStringFeatures<char>(); 00753 case PT_INT8: return new CStreamingFileFromStringFeatures<int8_t>(); 00754 case PT_UINT8: return new CStreamingFileFromStringFeatures<uint8_t>(); 00755 case PT_INT16: return new CStreamingFileFromStringFeatures<int16_t>(); 00756 case PT_UINT16: return new CStreamingFileFromStringFeatures<uint16_t>(); 00757 case PT_INT32: return new CStreamingFileFromStringFeatures<int32_t>(); 00758 case PT_UINT32: return new CStreamingFileFromStringFeatures<uint32_t>(); 00759 case PT_INT64: return new CStreamingFileFromStringFeatures<int64_t>(); 00760 case PT_UINT64: return new CStreamingFileFromStringFeatures<uint64_t>(); 00761 case PT_FLOAT32: return new CStreamingFileFromStringFeatures<float32_t>(); 00762 case PT_FLOAT64: return new CStreamingFileFromStringFeatures<float64_t>(); 00763 case PT_FLOATMAX: return new CStreamingFileFromStringFeatures<floatmax_t>(); 00764 case PT_SGOBJECT: return NULL; 00765 } 00766 return NULL; 00767 } 00768 static CSGObject* __new_CSimpleFile(EPrimitiveType g) 00769 { 00770 switch (g) 00771 { 00772 case PT_BOOL: return new CSimpleFile<bool>(); 00773 case PT_CHAR: return new CSimpleFile<char>(); 00774 case PT_INT8: return new CSimpleFile<int8_t>(); 00775 case PT_UINT8: return new CSimpleFile<uint8_t>(); 00776 case PT_INT16: return new CSimpleFile<int16_t>(); 00777 case PT_UINT16: return new CSimpleFile<uint16_t>(); 00778 case PT_INT32: return new CSimpleFile<int32_t>(); 00779 case PT_UINT32: return new CSimpleFile<uint32_t>(); 00780 case PT_INT64: return new CSimpleFile<int64_t>(); 00781 case PT_UINT64: return new CSimpleFile<uint64_t>(); 00782 case PT_FLOAT32: return new CSimpleFile<float32_t>(); 00783 case PT_FLOAT64: return new CSimpleFile<float64_t>(); 00784 case PT_FLOATMAX: return new CSimpleFile<floatmax_t>(); 00785 case PT_SGOBJECT: return NULL; 00786 } 00787 return NULL; 00788 } 00789 static CSGObject* __new_CMemoryMappedFile(EPrimitiveType g) 00790 { 00791 switch (g) 00792 { 00793 case PT_BOOL: return new CMemoryMappedFile<bool>(); 00794 case PT_CHAR: return new CMemoryMappedFile<char>(); 00795 case PT_INT8: return new CMemoryMappedFile<int8_t>(); 00796 case PT_UINT8: return new CMemoryMappedFile<uint8_t>(); 00797 case PT_INT16: return new CMemoryMappedFile<int16_t>(); 00798 case PT_UINT16: return new CMemoryMappedFile<uint16_t>(); 00799 case PT_INT32: return new CMemoryMappedFile<int32_t>(); 00800 case PT_UINT32: return new CMemoryMappedFile<uint32_t>(); 00801 case PT_INT64: return new CMemoryMappedFile<int64_t>(); 00802 case PT_UINT64: return new CMemoryMappedFile<uint64_t>(); 00803 case PT_FLOAT32: return new CMemoryMappedFile<float32_t>(); 00804 case PT_FLOAT64: return new CMemoryMappedFile<float64_t>(); 00805 case PT_FLOATMAX: return new CMemoryMappedFile<floatmax_t>(); 00806 case PT_SGOBJECT: return NULL; 00807 } 00808 return NULL; 00809 } 00810 static CSGObject* __new_CStreamingFileFromSparseFeatures(EPrimitiveType g) 00811 { 00812 switch (g) 00813 { 00814 case PT_BOOL: return new CStreamingFileFromSparseFeatures<bool>(); 00815 case PT_CHAR: return new CStreamingFileFromSparseFeatures<char>(); 00816 case PT_INT8: return new CStreamingFileFromSparseFeatures<int8_t>(); 00817 case PT_UINT8: return new CStreamingFileFromSparseFeatures<uint8_t>(); 00818 case PT_INT16: return new CStreamingFileFromSparseFeatures<int16_t>(); 00819 case PT_UINT16: return new CStreamingFileFromSparseFeatures<uint16_t>(); 00820 case PT_INT32: return new CStreamingFileFromSparseFeatures<int32_t>(); 00821 case PT_UINT32: return new CStreamingFileFromSparseFeatures<uint32_t>(); 00822 case PT_INT64: return new CStreamingFileFromSparseFeatures<int64_t>(); 00823 case PT_UINT64: return new CStreamingFileFromSparseFeatures<uint64_t>(); 00824 case PT_FLOAT32: return new CStreamingFileFromSparseFeatures<float32_t>(); 00825 case PT_FLOAT64: return new CStreamingFileFromSparseFeatures<float64_t>(); 00826 case PT_FLOATMAX: return new CStreamingFileFromSparseFeatures<floatmax_t>(); 00827 case PT_SGOBJECT: return NULL; 00828 } 00829 return NULL; 00830 } 00831 static CSGObject* __new_CStreamingFileFromSimpleFeatures(EPrimitiveType g) 00832 { 00833 switch (g) 00834 { 00835 case PT_BOOL: return new CStreamingFileFromSimpleFeatures<bool>(); 00836 case PT_CHAR: return new CStreamingFileFromSimpleFeatures<char>(); 00837 case PT_INT8: return new CStreamingFileFromSimpleFeatures<int8_t>(); 00838 case PT_UINT8: return new CStreamingFileFromSimpleFeatures<uint8_t>(); 00839 case PT_INT16: return new CStreamingFileFromSimpleFeatures<int16_t>(); 00840 case PT_UINT16: return new CStreamingFileFromSimpleFeatures<uint16_t>(); 00841 case PT_INT32: return new CStreamingFileFromSimpleFeatures<int32_t>(); 00842 case PT_UINT32: return new CStreamingFileFromSimpleFeatures<uint32_t>(); 00843 case PT_INT64: return new CStreamingFileFromSimpleFeatures<int64_t>(); 00844 case PT_UINT64: return new CStreamingFileFromSimpleFeatures<uint64_t>(); 00845 case PT_FLOAT32: return new CStreamingFileFromSimpleFeatures<float32_t>(); 00846 case PT_FLOAT64: return new CStreamingFileFromSimpleFeatures<float64_t>(); 00847 case PT_FLOATMAX: return new CStreamingFileFromSimpleFeatures<floatmax_t>(); 00848 case PT_SGOBJECT: return NULL; 00849 } 00850 return NULL; 00851 } 00852 static CSGObject* __new_CSet(EPrimitiveType g) 00853 { 00854 switch (g) 00855 { 00856 case PT_BOOL: return new CSet<bool>(); 00857 case PT_CHAR: return new CSet<char>(); 00858 case PT_INT8: return new CSet<int8_t>(); 00859 case PT_UINT8: return new CSet<uint8_t>(); 00860 case PT_INT16: return new CSet<int16_t>(); 00861 case PT_UINT16: return new CSet<uint16_t>(); 00862 case PT_INT32: return new CSet<int32_t>(); 00863 case PT_UINT32: return new CSet<uint32_t>(); 00864 case PT_INT64: return new CSet<int64_t>(); 00865 case PT_UINT64: return new CSet<uint64_t>(); 00866 case PT_FLOAT32: return new CSet<float32_t>(); 00867 case PT_FLOAT64: return new CSet<float64_t>(); 00868 case PT_FLOATMAX: return new CSet<floatmax_t>(); 00869 case PT_SGOBJECT: return NULL; 00870 } 00871 return NULL; 00872 } 00873 static CSGObject* __new_CCache(EPrimitiveType g) 00874 { 00875 switch (g) 00876 { 00877 case PT_BOOL: return new CCache<bool>(); 00878 case PT_CHAR: return new CCache<char>(); 00879 case PT_INT8: return new CCache<int8_t>(); 00880 case PT_UINT8: return new CCache<uint8_t>(); 00881 case PT_INT16: return new CCache<int16_t>(); 00882 case PT_UINT16: return new CCache<uint16_t>(); 00883 case PT_INT32: return new CCache<int32_t>(); 00884 case PT_UINT32: return new CCache<uint32_t>(); 00885 case PT_INT64: return new CCache<int64_t>(); 00886 case PT_UINT64: return new CCache<uint64_t>(); 00887 case PT_FLOAT32: return new CCache<float32_t>(); 00888 case PT_FLOAT64: return new CCache<float64_t>(); 00889 case PT_FLOATMAX: return new CCache<floatmax_t>(); 00890 case PT_SGOBJECT: return NULL; 00891 } 00892 return NULL; 00893 } 00894 static CSGObject* __new_CDynamicArray(EPrimitiveType g) 00895 { 00896 switch (g) 00897 { 00898 case PT_BOOL: return new CDynamicArray<bool>(); 00899 case PT_CHAR: return new CDynamicArray<char>(); 00900 case PT_INT8: return new CDynamicArray<int8_t>(); 00901 case PT_UINT8: return new CDynamicArray<uint8_t>(); 00902 case PT_INT16: return new CDynamicArray<int16_t>(); 00903 case PT_UINT16: return new CDynamicArray<uint16_t>(); 00904 case PT_INT32: return new CDynamicArray<int32_t>(); 00905 case PT_UINT32: return new CDynamicArray<uint32_t>(); 00906 case PT_INT64: return new CDynamicArray<int64_t>(); 00907 case PT_UINT64: return new CDynamicArray<uint64_t>(); 00908 case PT_FLOAT32: return new CDynamicArray<float32_t>(); 00909 case PT_FLOAT64: return new CDynamicArray<float64_t>(); 00910 case PT_FLOATMAX: return new CDynamicArray<floatmax_t>(); 00911 case PT_SGOBJECT: return NULL; 00912 } 00913 return NULL; 00914 } 00915 static CSGObject* __new_CDynamicObjectArray(EPrimitiveType g) 00916 { 00917 switch (g) 00918 { 00919 case PT_BOOL: return new CDynamicObjectArray<bool>(); 00920 case PT_CHAR: return new CDynamicObjectArray<char>(); 00921 case PT_INT8: return new CDynamicObjectArray<int8_t>(); 00922 case PT_UINT8: return new CDynamicObjectArray<uint8_t>(); 00923 case PT_INT16: return new CDynamicObjectArray<int16_t>(); 00924 case PT_UINT16: return new CDynamicObjectArray<uint16_t>(); 00925 case PT_INT32: return new CDynamicObjectArray<int32_t>(); 00926 case PT_UINT32: return new CDynamicObjectArray<uint32_t>(); 00927 case PT_INT64: return new CDynamicObjectArray<int64_t>(); 00928 case PT_UINT64: return new CDynamicObjectArray<uint64_t>(); 00929 case PT_FLOAT32: return new CDynamicObjectArray<float32_t>(); 00930 case PT_FLOAT64: return new CDynamicObjectArray<float64_t>(); 00931 case PT_FLOATMAX: return new CDynamicObjectArray<floatmax_t>(); 00932 case PT_SGOBJECT: return NULL; 00933 } 00934 return NULL; 00935 } 00936 static CSGObject* __new_CArray2(EPrimitiveType g) 00937 { 00938 switch (g) 00939 { 00940 case PT_BOOL: return new CArray2<bool>(); 00941 case PT_CHAR: return new CArray2<char>(); 00942 case PT_INT8: return new CArray2<int8_t>(); 00943 case PT_UINT8: return new CArray2<uint8_t>(); 00944 case PT_INT16: return new CArray2<int16_t>(); 00945 case PT_UINT16: return new CArray2<uint16_t>(); 00946 case PT_INT32: return new CArray2<int32_t>(); 00947 case PT_UINT32: return new CArray2<uint32_t>(); 00948 case PT_INT64: return new CArray2<int64_t>(); 00949 case PT_UINT64: return new CArray2<uint64_t>(); 00950 case PT_FLOAT32: return new CArray2<float32_t>(); 00951 case PT_FLOAT64: return new CArray2<float64_t>(); 00952 case PT_FLOATMAX: return new CArray2<floatmax_t>(); 00953 case PT_SGOBJECT: return NULL; 00954 } 00955 return NULL; 00956 } 00957 static CSGObject* __new_CArray3(EPrimitiveType g) 00958 { 00959 switch (g) 00960 { 00961 case PT_BOOL: return new CArray3<bool>(); 00962 case PT_CHAR: return new CArray3<char>(); 00963 case PT_INT8: return new CArray3<int8_t>(); 00964 case PT_UINT8: return new CArray3<uint8_t>(); 00965 case PT_INT16: return new CArray3<int16_t>(); 00966 case PT_UINT16: return new CArray3<uint16_t>(); 00967 case PT_INT32: return new CArray3<int32_t>(); 00968 case PT_UINT32: return new CArray3<uint32_t>(); 00969 case PT_INT64: return new CArray3<int64_t>(); 00970 case PT_UINT64: return new CArray3<uint64_t>(); 00971 case PT_FLOAT32: return new CArray3<float32_t>(); 00972 case PT_FLOAT64: return new CArray3<float64_t>(); 00973 case PT_FLOATMAX: return new CArray3<floatmax_t>(); 00974 case PT_SGOBJECT: return NULL; 00975 } 00976 return NULL; 00977 } 00978 static CSGObject* __new_CArray(EPrimitiveType g) 00979 { 00980 switch (g) 00981 { 00982 case PT_BOOL: return new CArray<bool>(); 00983 case PT_CHAR: return new CArray<char>(); 00984 case PT_INT8: return new CArray<int8_t>(); 00985 case PT_UINT8: return new CArray<uint8_t>(); 00986 case PT_INT16: return new CArray<int16_t>(); 00987 case PT_UINT16: return new CArray<uint16_t>(); 00988 case PT_INT32: return new CArray<int32_t>(); 00989 case PT_UINT32: return new CArray<uint32_t>(); 00990 case PT_INT64: return new CArray<int64_t>(); 00991 case PT_UINT64: return new CArray<uint64_t>(); 00992 case PT_FLOAT32: return new CArray<float32_t>(); 00993 case PT_FLOAT64: return new CArray<float64_t>(); 00994 case PT_FLOATMAX: return new CArray<floatmax_t>(); 00995 case PT_SGOBJECT: return NULL; 00996 } 00997 return NULL; 00998 } 00999 typedef CSGObject* (*new_sgserializable_t)(EPrimitiveType generic); 01000 #ifndef DOXYGEN_SHOULD_SKIP_THIS 01001 typedef struct 01002 { 01003 const char* m_class_name; 01004 new_sgserializable_t m_new_sgserializable; 01005 } class_list_entry_t; 01006 #endif 01007 01008 static class_list_entry_t class_list[] = { 01009 {"DummyFeatures", __new_CDummyFeatures}, 01010 {"FKFeatures", __new_CFKFeatures}, 01011 {"Alphabet", __new_CAlphabet}, 01012 {"ImplicitWeightedSpecFeatures", __new_CImplicitWeightedSpecFeatures}, 01013 {"ExplicitSpecFeatures", __new_CExplicitSpecFeatures}, 01014 {"CombinedDotFeatures", __new_CCombinedDotFeatures}, 01015 {"HashedWDFeatures", __new_CHashedWDFeatures}, 01016 {"CombinedFeatures", __new_CCombinedFeatures}, 01017 {"WDFeatures", __new_CWDFeatures}, 01018 {"Subset", __new_CSubset}, 01019 {"StreamingVwFeatures", __new_CStreamingVwFeatures}, 01020 {"RealFileFeatures", __new_CRealFileFeatures}, 01021 {"PolyFeatures", __new_CPolyFeatures}, 01022 {"SNPFeatures", __new_CSNPFeatures}, 01023 {"LBPPyrDotFeatures", __new_CLBPPyrDotFeatures}, 01024 {"Labels", __new_CLabels}, 01025 {"HashedWDFeaturesTransposed", __new_CHashedWDFeaturesTransposed}, 01026 {"TOPFeatures", __new_CTOPFeatures}, 01027 {"SparsePolyFeatures", __new_CSparsePolyFeatures}, 01028 {"Math", __new_CMath}, 01029 {"Statistics", __new_CStatistics}, 01030 {"KNN", __new_CKNN}, 01031 {"VwEnvironment", __new_CVwEnvironment}, 01032 {"VwNonAdaptiveLearner", __new_CVwNonAdaptiveLearner}, 01033 {"VwAdaptiveLearner", __new_CVwAdaptiveLearner}, 01034 {"VwParser", __new_CVwParser}, 01035 {"VwRegressor", __new_CVwRegressor}, 01036 {"VwNativeCacheWriter", __new_CVwNativeCacheWriter}, 01037 {"VwNativeCacheReader", __new_CVwNativeCacheReader}, 01038 {"VowpalWabbit", __new_CVowpalWabbit}, 01039 {"AveragedPerceptron", __new_CAveragedPerceptron}, 01040 {"MKLClassification", __new_CMKLClassification}, 01041 {"MKLOneClass", __new_CMKLOneClass}, 01042 {"MKLMultiClass", __new_CMKLMultiClass}, 01043 {"PluginEstimate", __new_CPluginEstimate}, 01044 {"GaussianNaiveBayes", __new_CGaussianNaiveBayes}, 01045 {"LibSVMOneClass", __new_CLibSVMOneClass}, 01046 {"SVMSGD", __new_CSVMSGD}, 01047 {"SGDQN", __new_CSGDQN}, 01048 {"LibLinear", __new_CLibLinear}, 01049 {"GPBTSVM", __new_CGPBTSVM}, 01050 {"QPBSVMLib", __new_CQPBSVMLib}, 01051 {"MPDSVM", __new_CMPDSVM}, 01052 {"OnlineLibLinear", __new_COnlineLibLinear}, 01053 {"GMNPLib", __new_CGMNPLib}, 01054 {"LibSVMMultiClass", __new_CLibSVMMultiClass}, 01055 {"ScatterSVM", __new_CScatterSVM}, 01056 {"MultiClassSVM", __new_CMultiClassSVM}, 01057 {"GNPPLib", __new_CGNPPLib}, 01058 {"WDSVMOcas", __new_CWDSVMOcas}, 01059 {"DomainAdaptationSVMLinear", __new_CDomainAdaptationSVMLinear}, 01060 {"LibSVM", __new_CLibSVM}, 01061 {"LaRank", __new_CLaRank}, 01062 {"SVMOcas", __new_CSVMOcas}, 01063 {"GNPPSVM", __new_CGNPPSVM}, 01064 {"GMNPSVM", __new_CGMNPSVM}, 01065 {"SVMLin", __new_CSVMLin}, 01066 {"SubGradientSVM", __new_CSubGradientSVM}, 01067 {"SVM", __new_CSVM}, 01068 {"Tron", __new_CTron}, 01069 {"OnlineSVMSGD", __new_COnlineSVMSGD}, 01070 {"LDA", __new_CLDA}, 01071 {"Perceptron", __new_CPerceptron}, 01072 {"KMeans", __new_CKMeans}, 01073 {"Hierarchical", __new_CHierarchical}, 01074 {"GMM", __new_CGMM}, 01075 {"GUIPreprocessor", __new_CGUIPreprocessor}, 01076 {"GUIStructure", __new_CGUIStructure}, 01077 {"GUIDistance", __new_CGUIDistance}, 01078 {"GUIKernel", __new_CGUIKernel}, 01079 {"GUIHMM", __new_CGUIHMM}, 01080 {"GUIFeatures", __new_CGUIFeatures}, 01081 {"GUIClassifier", __new_CGUIClassifier}, 01082 {"GUIPluginEstimate", __new_CGUIPluginEstimate}, 01083 {"GUITime", __new_CGUITime}, 01084 {"GUILabels", __new_CGUILabels}, 01085 {"GUIMath", __new_CGUIMath}, 01086 {"SortWordString", __new_CSortWordString}, 01087 {"NormOne", __new_CNormOne}, 01088 {"LogPlusOne", __new_CLogPlusOne}, 01089 {"SortUlongString", __new_CSortUlongString}, 01090 {"DimensionReductionPreprocessor", __new_CDimensionReductionPreprocessor}, 01091 {"PCA", __new_CPCA}, 01092 {"PruneVarSubMean", __new_CPruneVarSubMean}, 01093 {"KernelPCA", __new_CKernelPCA}, 01094 {"RandomFourierGaussPreproc", __new_CRandomFourierGaussPreproc}, 01095 {"ParameterCombination", __new_CParameterCombination}, 01096 {"GridSearchModelSelection", __new_CGridSearchModelSelection}, 01097 {"ModelSelectionParameters", __new_CModelSelectionParameters}, 01098 {"ChebyshewMetric", __new_CChebyshewMetric}, 01099 {"BrayCurtisDistance", __new_CBrayCurtisDistance}, 01100 {"EuclidianDistance", __new_CEuclidianDistance}, 01101 {"JensenMetric", __new_CJensenMetric}, 01102 {"HammingWordDistance", __new_CHammingWordDistance}, 01103 {"ManhattanMetric", __new_CManhattanMetric}, 01104 {"CustomDistance", __new_CCustomDistance}, 01105 {"SparseEuclidianDistance", __new_CSparseEuclidianDistance}, 01106 {"KernelDistance", __new_CKernelDistance}, 01107 {"CanberraMetric", __new_CCanberraMetric}, 01108 {"ChiSquareDistance", __new_CChiSquareDistance}, 01109 {"CosineDistance", __new_CCosineDistance}, 01110 {"MinkowskiMetric", __new_CMinkowskiMetric}, 01111 {"CanberraWordDistance", __new_CCanberraWordDistance}, 01112 {"TanimotoDistance", __new_CTanimotoDistance}, 01113 {"GeodesicMetric", __new_CGeodesicMetric}, 01114 {"AttenuatedEuclidianDistance", __new_CAttenuatedEuclidianDistance}, 01115 {"ManhattanWordDistance", __new_CManhattanWordDistance}, 01116 {"PlifMatrix", __new_CPlifMatrix}, 01117 {"Plif", __new_CPlif}, 01118 {"DynProg", __new_CDynProg}, 01119 {"SegmentLoss", __new_CSegmentLoss}, 01120 {"IntronList", __new_CIntronList}, 01121 {"PlifArray", __new_CPlifArray}, 01122 {"SerializableAsciiFile", __new_CSerializableAsciiFile}, 01123 {"StreamingFileFromFeatures", __new_CStreamingFileFromFeatures}, 01124 {"BinaryFile", __new_CBinaryFile}, 01125 {"AsciiFile", __new_CAsciiFile}, 01126 {"StreamingFile", __new_CStreamingFile}, 01127 {"StreamingVwCacheFile", __new_CStreamingVwCacheFile}, 01128 {"StreamingAsciiFile", __new_CStreamingAsciiFile}, 01129 {"IOBuffer", __new_CIOBuffer}, 01130 {"StreamingVwFile", __new_CStreamingVwFile}, 01131 {"LogLoss", __new_CLogLoss}, 01132 {"HingeLoss", __new_CHingeLoss}, 01133 {"SquaredLoss", __new_CSquaredLoss}, 01134 {"SmoothHingeLoss", __new_CSmoothHingeLoss}, 01135 {"LogLossMargin", __new_CLogLossMargin}, 01136 {"SquaredHingeLoss", __new_CSquaredHingeLoss}, 01137 {"MulticlassAccuracy", __new_CMulticlassAccuracy}, 01138 {"MeanSquaredError", __new_CMeanSquaredError}, 01139 {"CrossValidation", __new_CCrossValidation}, 01140 {"ContingencyTableEvaluation", __new_CContingencyTableEvaluation}, 01141 {"AccuracyMeasure", __new_CAccuracyMeasure}, 01142 {"ErrorRateMeasure", __new_CErrorRateMeasure}, 01143 {"BALMeasure", __new_CBALMeasure}, 01144 {"WRACCMeasure", __new_CWRACCMeasure}, 01145 {"F1Measure", __new_CF1Measure}, 01146 {"CrossCorrelationMeasure", __new_CCrossCorrelationMeasure}, 01147 {"RecallMeasure", __new_CRecallMeasure}, 01148 {"PrecisionMeasure", __new_CPrecisionMeasure}, 01149 {"SpecificityMeasure", __new_CSpecificityMeasure}, 01150 {"PRCEvaluation", __new_CPRCEvaluation}, 01151 {"StratifiedCrossValidationSplitting", __new_CStratifiedCrossValidationSplitting}, 01152 {"MeanAbsoluteError", __new_CMeanAbsoluteError}, 01153 {"ROCEvaluation", __new_CROCEvaluation}, 01154 {"GHMM", __new_CGHMM}, 01155 {"HMM", __new_CHMM}, 01156 {"Gaussian", __new_CGaussian}, 01157 {"PositionalPWM", __new_CPositionalPWM}, 01158 {"Histogram", __new_CHistogram}, 01159 {"LinearHMM", __new_CLinearHMM}, 01160 {"KernelMachine", __new_CKernelMachine}, 01161 {"OnlineLinearMachine", __new_COnlineLinearMachine}, 01162 {"LinearMachine", __new_CLinearMachine}, 01163 {"DistanceMachine", __new_CDistanceMachine}, 01164 {"LinearLocalTangentSpaceAlignment", __new_CLinearLocalTangentSpaceAlignment}, 01165 {"DiffusionMaps", __new_CDiffusionMaps}, 01166 {"LocallyLinearEmbedding", __new_CLocallyLinearEmbedding}, 01167 {"NeighborhoodPreservingEmbedding", __new_CNeighborhoodPreservingEmbedding}, 01168 {"LocalityPreservingProjections", __new_CLocalityPreservingProjections}, 01169 {"HessianLocallyLinearEmbedding", __new_CHessianLocallyLinearEmbedding}, 01170 {"LocalTangentSpaceAlignment", __new_CLocalTangentSpaceAlignment}, 01171 {"KernelLocallyLinearEmbedding", __new_CKernelLocallyLinearEmbedding}, 01172 {"Isomap", __new_CIsomap}, 01173 {"LaplacianEigenmaps", __new_CLaplacianEigenmaps}, 01174 {"MultidimensionalScaling", __new_CMultidimensionalScaling}, 01175 {"KernelLocalTangentSpaceAlignment", __new_CKernelLocalTangentSpaceAlignment}, 01176 {"MKLRegression", __new_CMKLRegression}, 01177 {"LibSVR", __new_CLibSVR}, 01178 {"KRR", __new_CKRR}, 01179 {"ListElement", __new_CListElement}, 01180 {"List", __new_CList}, 01181 {"Compressor", __new_CCompressor}, 01182 {"Time", __new_CTime}, 01183 {"FibonacciHeap", __new_CFibonacciHeap}, 01184 {"Hash", __new_CHash}, 01185 {"Signal", __new_CSignal}, 01186 {"HashSet", __new_CHashSet}, 01187 {"BitString", __new_CBitString}, 01188 {"ExponentialKernel", __new_CExponentialKernel}, 01189 {"CauchyKernel", __new_CCauchyKernel}, 01190 {"LogKernel", __new_CLogKernel}, 01191 {"Node", __new_CNode}, 01192 {"Taxonomy", __new_CTaxonomy}, 01193 {"MultitaskKernelTreeNormalizer", __new_CMultitaskKernelTreeNormalizer}, 01194 {"SNPStringKernel", __new_CSNPStringKernel}, 01195 {"ZeroMeanCenterKernelNormalizer", __new_CZeroMeanCenterKernelNormalizer}, 01196 {"Chi2Kernel", __new_CChi2Kernel}, 01197 {"WeightedDegreePositionStringKernel", __new_CWeightedDegreePositionStringKernel}, 01198 {"SimpleLocalityImprovedStringKernel", __new_CSimpleLocalityImprovedStringKernel}, 01199 {"SigmoidKernel", __new_CSigmoidKernel}, 01200 {"HistogramIntersectionKernel", __new_CHistogramIntersectionKernel}, 01201 {"TStudentKernel", __new_CTStudentKernel}, 01202 {"FirstElementKernelNormalizer", __new_CFirstElementKernelNormalizer}, 01203 {"SphericalKernel", __new_CSphericalKernel}, 01204 {"OligoStringKernel", __new_COligoStringKernel}, 01205 {"PolyMatchStringKernel", __new_CPolyMatchStringKernel}, 01206 {"AUCKernel", __new_CAUCKernel}, 01207 {"LocalAlignmentStringKernel", __new_CLocalAlignmentStringKernel}, 01208 {"MultiquadricKernel", __new_CMultiquadricKernel}, 01209 {"SpectrumRBFKernel", __new_CSpectrumRBFKernel}, 01210 {"WaveletKernel", __new_CWaveletKernel}, 01211 {"DistantSegmentsKernel", __new_CDistantSegmentsKernel}, 01212 {"GaussianKernel", __new_CGaussianKernel}, 01213 {"LinearStringKernel", __new_CLinearStringKernel}, 01214 {"ScatterKernelNormalizer", __new_CScatterKernelNormalizer}, 01215 {"RegulatoryModulesStringKernel", __new_CRegulatoryModulesStringKernel}, 01216 {"MultitaskKernelMaskPairNormalizer", __new_CMultitaskKernelMaskPairNormalizer}, 01217 {"BesselKernel", __new_CBesselKernel}, 01218 {"CustomKernel", __new_CCustomKernel}, 01219 {"TanimotoKernelNormalizer", __new_CTanimotoKernelNormalizer}, 01220 {"PolyKernel", __new_CPolyKernel}, 01221 {"HistogramWordStringKernel", __new_CHistogramWordStringKernel}, 01222 {"MultitaskKernelPlifNormalizer", __new_CMultitaskKernelPlifNormalizer}, 01223 {"SalzbergWordStringKernel", __new_CSalzbergWordStringKernel}, 01224 {"RationalQuadraticKernel", __new_CRationalQuadraticKernel}, 01225 {"ConstKernel", __new_CConstKernel}, 01226 {"PowerKernel", __new_CPowerKernel}, 01227 {"WeightedDegreeStringKernel", __new_CWeightedDegreeStringKernel}, 01228 {"IdentityKernelNormalizer", __new_CIdentityKernelNormalizer}, 01229 {"LocalityImprovedStringKernel", __new_CLocalityImprovedStringKernel}, 01230 {"FixedDegreeStringKernel", __new_CFixedDegreeStringKernel}, 01231 {"AvgDiagKernelNormalizer", __new_CAvgDiagKernelNormalizer}, 01232 {"LinearKernel", __new_CLinearKernel}, 01233 {"CombinedKernel", __new_CCombinedKernel}, 01234 {"CircularKernel", __new_CCircularKernel}, 01235 {"MultitaskKernelNormalizer", __new_CMultitaskKernelNormalizer}, 01236 {"SpectrumMismatchRBFKernel", __new_CSpectrumMismatchRBFKernel}, 01237 {"GaussianShortRealKernel", __new_CGaussianShortRealKernel}, 01238 {"GaussianShiftKernel", __new_CGaussianShiftKernel}, 01239 {"TensorProductPairKernel", __new_CTensorProductPairKernel}, 01240 {"MultitaskKernelMaskNormalizer", __new_CMultitaskKernelMaskNormalizer}, 01241 {"DistanceKernel", __new_CDistanceKernel}, 01242 {"RidgeKernelNormalizer", __new_CRidgeKernelNormalizer}, 01243 {"MatchWordStringKernel", __new_CMatchWordStringKernel}, 01244 {"WeightedCommWordStringKernel", __new_CWeightedCommWordStringKernel}, 01245 {"VarianceKernelNormalizer", __new_CVarianceKernelNormalizer}, 01246 {"SparseSpatialSampleStringKernel", __new_CSparseSpatialSampleStringKernel}, 01247 {"InverseMultiQuadricKernel", __new_CInverseMultiQuadricKernel}, 01248 {"ANOVAKernel", __new_CANOVAKernel}, 01249 {"PyramidChi2", __new_CPyramidChi2}, 01250 {"WeightedDegreeRBFKernel", __new_CWeightedDegreeRBFKernel}, 01251 {"GaussianMatchStringKernel", __new_CGaussianMatchStringKernel}, 01252 {"DiagKernel", __new_CDiagKernel}, 01253 {"PolyMatchWordStringKernel", __new_CPolyMatchWordStringKernel}, 01254 {"CommUlongStringKernel", __new_CCommUlongStringKernel}, 01255 {"SplineKernel", __new_CSplineKernel}, 01256 {"WaveKernel", __new_CWaveKernel}, 01257 {"DiceKernelNormalizer", __new_CDiceKernelNormalizer}, 01258 {"CommWordStringKernel", __new_CCommWordStringKernel}, 01259 {"SqrtDiagKernelNormalizer", __new_CSqrtDiagKernelNormalizer}, 01260 {"SimpleFeatures", __new_CSimpleFeatures}, 01261 {"SparseFeatures", __new_CSparseFeatures}, 01262 {"StreamingStringFeatures", __new_CStreamingStringFeatures}, 01263 {"StreamingSimpleFeatures", __new_CStreamingSimpleFeatures}, 01264 {"StringFileFeatures", __new_CStringFileFeatures}, 01265 {"StreamingSparseFeatures", __new_CStreamingSparseFeatures}, 01266 {"StringFeatures", __new_CStringFeatures}, 01267 {"DecompressString", __new_CDecompressString}, 01268 {"BinaryStream", __new_CBinaryStream}, 01269 {"ParseBuffer", __new_CParseBuffer}, 01270 {"StreamingFileFromStringFeatures", __new_CStreamingFileFromStringFeatures}, 01271 {"SimpleFile", __new_CSimpleFile}, 01272 {"MemoryMappedFile", __new_CMemoryMappedFile}, 01273 {"StreamingFileFromSparseFeatures", __new_CStreamingFileFromSparseFeatures}, 01274 {"StreamingFileFromSimpleFeatures", __new_CStreamingFileFromSimpleFeatures}, 01275 {"Set", __new_CSet}, 01276 {"Cache", __new_CCache}, 01277 {"DynamicArray", __new_CDynamicArray}, 01278 {"DynamicObjectArray", __new_CDynamicObjectArray}, 01279 {"Array2", __new_CArray2}, 01280 {"Array3", __new_CArray3}, 01281 {"Array", __new_CArray}, {NULL, NULL} 01282 }; 01283 01284 CSGObject* shogun::new_sgserializable(const char* sgserializable_name, 01285 EPrimitiveType generic) 01286 { 01287 for (class_list_entry_t* i=class_list; i->m_class_name != NULL; 01288 i++) 01289 { 01290 if (strncmp(i->m_class_name, sgserializable_name, STRING_LEN) == 0) 01291 return i->m_new_sgserializable(generic); 01292 } 01293 01294 return NULL; 01295 }