Changeset 55


Ignore:
Timestamp:
Mar 11, 2004, 5:12:46 PM (18 years ago)
Author:
Jari Häkkinen
Message:

Made files more coding style comliant.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SVM.cc

    r49 r55  
    11// $Id$
    22
    3 #ifndef _THEP_SVM_
    4 #define _THEP_SVM_
    5 
    63// System includes
    7 #include <math.h>
     4#include <cmath>
    85#include <utility>
    96
     
    172169
    173170}} // of namespace cpptools and namespace theplu
    174 
    175 #endif
  • trunk/src/SVM.h

    r49 r55  
    11// $Id$
    22
    3 #ifndef _THEP_SVM_H
    4 #define _THEP_SVM_H
     3#ifndef _theplu_cpptools_svm_
     4#define _theplu_cpptools_svm_
    55
    66// C++ tools include
     
    88#include "vector.h"
    99#include "matrix.h"
    10 
    1110
    1211// Standard C++ includes
     
    8180        const gslapi::vector& alpha_);
    8281  };
    83  
    84     // class SVM
    8582
    8683  gslapi::vector SVM::get_output() const 
    8784  {
    88     gslapi::vector bias(target_.size());
    89     bias.set_all(bias_);
     85    // Peter, changes to a one-liner and move upto declaration.
     86    gslapi::vector bias(target_.size(),bias_);
    9087    return kernel_ * alpha_.mul_elements(target_) + bias;
    9188  }
Note: See TracChangeset for help on using the changeset viewer.