Changeset 506
- Timestamp:
- Feb 17, 2006, 12:56:51 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AUTHORS
r472 r506 1 1 $Id$ 2 2 3 This package is developed and maintained by people at the Depar ment4 of Theoretical Physics atLund University, Sweden.3 This package is developed and maintained by people at the Department 4 of Theoretical Physics, Lund University, Sweden. 5 5 6 6 Jari Häkkinen -
trunk/configure.ac
r452 r506 45 45 LOCAL_INCLUDES="-I/home/lev/jari/local/include" 46 46 LDFLAGS="-L/home/lev/jari/local/lib" 47 CXXFLAGS="-g -O -Wall -pedantic"48 CPPFLAGS="-DHAVE_INLINE=1"47 #CXXFLAGS="-g -O -Wall -pedantic" 48 #CPPFLAGS="-DHAVE_INLINE=1" 49 49 # Use these flags when compiling a production library 50 #CXXFLAGS="-O3 -Wall -pedantic"51 #CPPFLAGS="-DNDEBUG -DGSL_RANGE_CHECK_OFF -DHAVE_INLINE=1"50 CXXFLAGS="-O3 -Wall -pedantic" 51 CPPFLAGS="-DNDEBUG -DGSL_RANGE_CHECK_OFF -DHAVE_INLINE=1" 52 52 AC_SUBST([LOCAL_INCLUDES]) 53 53 -
trunk/lib/classifier/Makefile.am
r485 r506 9 9 noinst_LTLIBRARIES = libclassifier.la 10 10 libclassifier_la_SOURCES = \ 11 Target.cc \ 11 12 ConsensusInputRanker.cc \ 12 13 CrossSplitter.cc \ … … 23 24 PolynomialKernelFunction.cc \ 24 25 SupervisedClassifier.cc \ 25 SVM.cc \ 26 Target.cc 26 SVM.cc 27 27 28 28 -
trunk/lib/classifier/Target.cc
r505 r506 13 13 namespace classifier { 14 14 15 Target::Target(size_t n,int init_value,double) 16 { 17 vector_=std::vector<int>(n,init_value); 18 myinit_classes(); 19 } 20 15 21 Target::Target(const std::vector<int>& vec) 16 22 : vector_(vec) 17 23 { 18 init_classes();24 myinit_classes(); 19 25 } 20 26 … … 26 32 vector_[i]=t(index[i]); 27 33 // Peter which of the two below do we want here? 28 // init_classes();34 // myinit_classes(); 29 35 classes_=t.classes_; 30 36 } … … 104 110 } 105 111 106 init_classes();112 myinit_classes(); 107 113 } 108 114 … … 127 133 for (size_t i=0; i<size(); i++) 128 134 vector_[i]*=d; 129 init_classes();135 myinit_classes(); 130 136 return *this; 131 137 } … … 138 144 } 139 145 140 void Target:: init_classes(void)146 void Target::myinit_classes(void) 141 147 { 142 148 classes_.clear(); -
trunk/lib/classifier/Target.h
r505 r506 22 22 23 23 public: 24 Target(size_t n=0,int init_value=0,double=2.0); 24 25 /// 25 26 /// Default constructor 26 27 /// 27 inline Target(const size_t n=0,const int init_value=0) 28 : vector_(std::vector<int>(n,init_value)) {init_classes();} 28 // Target(const size_t n=0,const int init_value=0,double=2.0); 29 29 30 30 /// … … 88 88 std::map<int,u_int> classes_; 89 89 90 void init_classes(void);90 void myinit_classes(void); 91 91 92 92 }; -
trunk/test/Makefile.am
r504 r506 9 9 10 10 check_PROGRAMS = $(TESTS) 11 12 AM_LDFLAGS = --library-path ../lib/.libs/libc++_tools.so 11 13 12 14 LDADD = @top_srcdir@/$(CPP_TOOLS_LIB_LOCATION)/$(CPP_TOOLS_LIB) \
Note: See TracChangeset
for help on using the changeset viewer.