?? svmfusvmtypes.h
字號:
// This is a part of the SvmFu library, a library for training// Support Vector Machines.// Copyright (C) 2000 rif and MIT//// Contact: rif@mit.edu// This program is free software; you can redistribute it and/or// modify it under the terms of the GNU General Public License as// published by the Free Software Foundation; either version 2 of// the License, or (at your option) any later version.// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the// GNU General Public License for more details.// You should have received a copy of the GNU General Public// License along with this program; if not, write to the Free// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,// MA 02111-1307 USA// Define all of your support data and kernel value types here.// by jim@jtan.com// WARNING! There could be nasty side effects of including this// file if the 'IterateTypes' symbol is defined when you didn't // expect it to be. Just a heads-up.. #ifndef SVMFU_SVM_TYPE_HEADER#define SVMFU_SVM_TYPE_HEADER// This file defines all of the types supported by SvmFu,// in "data element type / kernel value type" pairs. // To add a new type: Define "DATATYPEn" and "KERNTYPEn" here,// where "n" ranges from 1 to 8:// (types can be char, short, int, long, float, or double)#define DATATYPE1 int#define KERNTYPE1 int#define DATATYPE2 float#define KERNTYPE2 float#define DATATYPE3 double#define KERNTYPE3 double#define DATATYPE4 int#define KERNTYPE4 float// #define DATATYPE5 your-desired-type// #define KERNTYPE5 your-desired-type#endif // SVMFU_SVM_TYPE_HEADER// To automatically iterate through these types in code,// define the symbol "IterateTypes(datatype,kerntype)" and// #include this file again. For example,//// #define IterateTypes(datatype,kerntype) // printf("I support data type %s with kern type %s\n",#datatype,#kerntype);// #include "SvmFuSvmTypes.h"//// The '#include "SvmFuSvmTypes.h"' line will be replaced with 'n' copies// of the IterateTypes code, where 'n' is the number of data pairs defined.// See the end of src/lib/SvmFuSvmBase.cpp for an example of this.#ifdef IterateTypes// so that tokenizing works, we need to go through an intermediate// (don't worry about it)#define __IterateTypes(a,b) IterateTypes(a,b)#ifdef DATATYPE1__IterateTypes(DATATYPE1,KERNTYPE1)#endif#ifdef DATATYPE2__IterateTypes(DATATYPE2,KERNTYPE2)#endif#ifdef DATATYPE3__IterateTypes(DATATYPE3,KERNTYPE3)#endif#ifdef DATATYPE4__IterateTypes(DATATYPE4,KERNTYPE4)#endif#ifdef DATATYPE5__IterateTypes(DATATYPE5,KERNTYPE5)#endif#ifdef DATATYPE6__IterateTypes(DATATYPE6,KERNTYPE6)#endif#ifdef DATATYPE7__IterateTypes(DATATYPE7,KERNTYPE7)#endif#ifdef DATATYPE8__IterateTypes(DATATYPE8,KERNTYPE8)#endif#undef __IterateTypes#undef IterateTypes#endif // IterateTypes
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -