Ignore:
Timestamp:
Dec 26, 2006, 7:21:36 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Fixes #170. Almost all inlines removed, some classes have no cc file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/SVM.h

    r706 r720  
    7676    /// @return \f$ \alpha \f$
    7777    ///
    78     inline const utility::vector& alpha(void) const { return alpha_; }
     78    const utility::vector& alpha(void) const;
    7979
    8080    ///
     
    9292    /// @returns mean of vector \f$ C_i \f$
    9393    ///
    94     inline double C(void) const { return 1.0/C_inverse_; }
     94    double C(void) const;
    9595
    9696    ///
     
    9999    /// @return number of maximal epochs
    100100    ///
    101     inline long int max_epochs(void) const {return max_epochs_;}
     101    long int max_epochs(void) const;
    102102   
    103103    /**
     
    107107        @return output
    108108    */
    109     inline const theplu::yat::utility::vector&
    110     output(void) const { return output_; }
     109    const theplu::yat::utility::vector& output(void) const;
    111110
    112111    /**
     
    219218    /// @return kernel modified with diagonal term (soft margin)
    220219    ///
    221     inline double kernel_mod(const size_t i, const size_t j) const
    222     { return i!=j ? (*kernel_)(i,j) : (*kernel_)(i,j) + C_inverse_; }
    223    
     220    double kernel_mod(const size_t i, const size_t j) const;
     221
     222    ///
    224223    /// @return 1 if i belong to binary target true else -1
    225     inline int target(size_t i) const { return target_.binary(i) ? 1 : -1; }
     224    ///
     225    int target(size_t i) const;
    226226
    227227    utility::vector alpha_;
Note: See TracChangeset for help on using the changeset viewer.