00001 #include <shogun/preprocessor/SimplePreprocessor.h> 00002 00003 namespace shogun 00004 { 00005 template <class ST> 00006 CSimplePreprocessor<ST>::CSimplePreprocessor() : CPreprocessor() 00007 { 00008 } 00009 00010 template<> EFeatureType CSimplePreprocessor<floatmax_t>::get_feature_type() 00011 { 00012 return F_LONGREAL; 00013 } 00014 00015 template<> EFeatureType CSimplePreprocessor<float64_t>::get_feature_type() 00016 { 00017 return F_DREAL; 00018 } 00019 00020 template<> EFeatureType CSimplePreprocessor<float32_t>::get_feature_type() 00021 { 00022 return F_SHORTREAL; 00023 } 00024 00025 template<> EFeatureType CSimplePreprocessor<int16_t>::get_feature_type() 00026 { 00027 return F_SHORT; 00028 } 00029 00030 template<> EFeatureType CSimplePreprocessor<uint16_t>::get_feature_type() 00031 { 00032 return F_WORD; 00033 } 00034 00035 template<> EFeatureType CSimplePreprocessor<char>::get_feature_type() 00036 { 00037 return F_CHAR; 00038 } 00039 00040 template<> EFeatureType CSimplePreprocessor<int8_t>::get_feature_type() 00041 { 00042 return F_CHAR; 00043 } 00044 00045 template<> EFeatureType CSimplePreprocessor<uint8_t>::get_feature_type() 00046 { 00047 return F_BYTE; 00048 } 00049 00050 template<> EFeatureType CSimplePreprocessor<int32_t>::get_feature_type() 00051 { 00052 return F_INT; 00053 } 00054 00055 template<> EFeatureType CSimplePreprocessor<uint32_t>::get_feature_type() 00056 { 00057 return F_UINT; 00058 } 00059 00060 00061 template<> EFeatureType CSimplePreprocessor<int64_t>::get_feature_type() 00062 { 00063 return F_LONG; 00064 } 00065 00066 template<> EFeatureType CSimplePreprocessor<uint64_t>::get_feature_type() 00067 { 00068 return F_ULONG; 00069 } 00070 00071 template<> EFeatureType CSimplePreprocessor<bool>::get_feature_type() 00072 { 00073 return F_BOOL; 00074 } 00075 00076 template <class ST> 00077 EFeatureClass CSimplePreprocessor<ST>::get_feature_class() 00078 { 00079 return C_SIMPLE; 00080 } 00081 00082 template <class ST> 00083 EPreprocessorType CSimplePreprocessor<ST>::get_type() const 00084 { 00085 return P_UNKNOWN; 00086 } 00087 00088 template class CSimplePreprocessor<bool>; 00089 template class CSimplePreprocessor<char>; 00090 template class CSimplePreprocessor<int8_t>; 00091 template class CSimplePreprocessor<uint8_t>; 00092 template class CSimplePreprocessor<int16_t>; 00093 template class CSimplePreprocessor<uint16_t>; 00094 template class CSimplePreprocessor<int32_t>; 00095 template class CSimplePreprocessor<uint32_t>; 00096 template class CSimplePreprocessor<int64_t>; 00097 template class CSimplePreprocessor<uint64_t>; 00098 template class CSimplePreprocessor<float32_t>; 00099 template class CSimplePreprocessor<float64_t>; 00100 template class CSimplePreprocessor<floatmax_t>; 00101 }