00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of the GNU General Public License as published by 00004 * the Free Software Foundation; either version 3 of the License, or 00005 * (at your option) any later version. 00006 * 00007 * Written (W) 1999-2008 Soeren Sonnenburg 00008 * Copyright (C) 1999-2008 Fraunhofer Institute FIRST and Max-Planck-Society 00009 */ 00010 00011 #ifndef _CNORM_DERIVATIVE_LEM3__H__ 00012 #define _CNORM_DERIVATIVE_LEM3__H__ 00013 00014 #include "preproc/SimplePreProc.h" 00015 #include "features/Features.h" 00016 #include "lib/common.h" 00017 00018 #include <stdio.h> 00019 00021 class CNormDerivativeLem3 : public CSimplePreProc<DREAL> 00022 { 00023 public: 00025 CNormDerivativeLem3(); 00026 virtual ~CNormDerivativeLem3(); 00027 00029 virtual bool init(CFeatures* f); 00031 virtual void cleanup(); 00033 virtual bool load(FILE* f); 00035 virtual bool save(FILE* f); 00036 00040 virtual DREAL* apply_to_feature_matrix(CFeatures* f); 00041 00044 virtual DREAL* apply_to_feature_vector(DREAL* f, INT len); 00045 }; 00046 #endif