Changeset 767 for trunk/yat/regression


Ignore:
Timestamp:
Feb 22, 2007, 4:14:40 PM (14 years ago)
Author:
Peter
Message:

Fixes #65

Location:
trunk/yat/regression
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/regression/Kernel.h

    r682 r767  
    3030
    3131  ///
    32   /// Abstract Base Class for calculating the weights in a more
     32  /// @brief Interface Class for calculating the weights in a more
    3333  /// general way than classical rectangular windows.
    3434  ///
     
    4545
    4646    ///
    47     /// Function calculating the weight
     47    /// Operator calculating calculating kernel value.
    4848    ///
    49     virtual double weight(const double) const=0;
     49    virtual double operator()(const double) const=0;
    5050  };
    5151
  • trunk/yat/regression/KernelBox.cc

    r682 r767  
    3333  }
    3434
    35   double KernelBox::weight(const double u) const
     35  double KernelBox::operator()(const double u) const
    3636  {
    3737    if (u>1 || u<-1)
  • trunk/yat/regression/KernelBox.h

    r682 r767  
    3232
    3333  ///
    34   /// Class for KernelBox a.k.a. rectangular window.
     34  /// @brief Class for KernelBox a.k.a. rectangular window.
    3535  ///
    3636  class KernelBox : public Kernel
     
    4444
    4545    ///
    46     /// Function calculating the weight as \f$ w(x)=1\f$ if \f$|x|\le 1
     46    /// Function calculating kernel value as \f$ w(x)=1\f$ if \f$|x|\le 1
    4747    /// \f$, \f$ w(x)=0 \f$ otherwise.
    4848    ///
    49     double weight(const double) const;
     49    double operator()(const double) const;
    5050 
    5151  private:
  • trunk/yat/regression/KernelTriCube.cc

    r682 r767  
    3636  }
    3737
    38   double KernelTriCube::weight(const double x) const
     38  double KernelTriCube::operator()(const double x) const
    3939  {
    4040    if (x>1 || x<-1)
  • trunk/yat/regression/KernelTriCube.h

    r682 r767  
    3232
    3333  ///
    34   /// Class for TriCubal kernel.
     34  /// @brief Class for TriCubal kernel.
    3535  ///
    3636  class KernelTriCube : public Kernel
     
    4444
    4545    ///
    46     /// Function calculating the weight as \f$ w(x)=(1-|x|^3)^3\f$ if
     46    /// Operator calculating kernel value as \f$ w(x)=(1-|x|^3)^3\f$ if
    4747    /// \f$|x|\le 1 \f$, \f$ w(x)=0 \f$ otherwise.
    4848    ///
    49     double weight(const double) const;
     49    double operator()(const double) const;
    5050 
    5151  private:
  • trunk/yat/regression/Local.cc

    r759 r767  
    107107      utility::vector w(max_index-min_index+1);
    108108      for (size_t j=0; j<w.size(); j++)
    109         w(j) = kernel_->weight( (x_local(j)- x_mid)/width );
     109        w(j) = (*kernel_)( (x_local(j)- x_mid)/width );
    110110     
    111111      // fitting the regressor locally
  • trunk/yat/regression/Local.h

    r747 r767  
    3737
    3838  ///
    39   /// Class for Locally weighted regression.
     39  /// @brief Class for Locally weighted regression.
    4040  ///
    4141  /// Locally weighted regression is an algorithm for learning
  • trunk/yat/regression/OneDimensional.h

    r729 r767  
    3737
    3838  ///
    39   /// Abstract Base Class for One Dimensional fitting.   
     39  /// @brief Interface Class for One Dimensional fitting.   
    4040  ///
    4141  /// @see OneDimensionalWeighted.
  • trunk/yat/regression/OneDimensionalWeighted.h

    r729 r767  
    3737 
    3838  ///
    39   /// Abstract Base Class for One Dimensional fitting in a weighted
     39  /// @brief Interface Class for One Dimensional fitting in a weighted
    4040  /// fashion.
    4141  ///
  • trunk/yat/regression/PolynomialWeighted.h

    r757 r767  
    3434
    3535  ///
    36   /// @todo document
     36  /// @brief Polynomial Regression in weighted fashion.
    3737  ///
    3838  class PolynomialWeighted : public OneDimensionalWeighted
Note: See TracChangeset for help on using the changeset viewer.