Changeset 767 for trunk/yat/regression
- Timestamp:
- Feb 22, 2007, 4:14:40 PM (17 years ago)
- Location:
- trunk/yat/regression
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/regression/Kernel.h
r682 r767 30 30 31 31 /// 32 /// Abstract Base Class for calculating the weights in a more32 /// @brief Interface Class for calculating the weights in a more 33 33 /// general way than classical rectangular windows. 34 34 /// … … 45 45 46 46 /// 47 /// Function calculating the weight47 /// Operator calculating calculating kernel value. 48 48 /// 49 virtual double weight(const double) const=0;49 virtual double operator()(const double) const=0; 50 50 }; 51 51 -
trunk/yat/regression/KernelBox.cc
r682 r767 33 33 } 34 34 35 double KernelBox:: weight(const double u) const35 double KernelBox::operator()(const double u) const 36 36 { 37 37 if (u>1 || u<-1) -
trunk/yat/regression/KernelBox.h
r682 r767 32 32 33 33 /// 34 /// Class for KernelBox a.k.a. rectangular window.34 /// @brief Class for KernelBox a.k.a. rectangular window. 35 35 /// 36 36 class KernelBox : public Kernel … … 44 44 45 45 /// 46 /// Function calculating the weightas \f$ w(x)=1\f$ if \f$|x|\le 146 /// Function calculating kernel value as \f$ w(x)=1\f$ if \f$|x|\le 1 47 47 /// \f$, \f$ w(x)=0 \f$ otherwise. 48 48 /// 49 double weight(const double) const;49 double operator()(const double) const; 50 50 51 51 private: -
trunk/yat/regression/KernelTriCube.cc
r682 r767 36 36 } 37 37 38 double KernelTriCube:: weight(const double x) const38 double KernelTriCube::operator()(const double x) const 39 39 { 40 40 if (x>1 || x<-1) -
trunk/yat/regression/KernelTriCube.h
r682 r767 32 32 33 33 /// 34 /// Class for TriCubal kernel.34 /// @brief Class for TriCubal kernel. 35 35 /// 36 36 class KernelTriCube : public Kernel … … 44 44 45 45 /// 46 /// Function calculating the weightas \f$ w(x)=(1-|x|^3)^3\f$ if46 /// Operator calculating kernel value as \f$ w(x)=(1-|x|^3)^3\f$ if 47 47 /// \f$|x|\le 1 \f$, \f$ w(x)=0 \f$ otherwise. 48 48 /// 49 double weight(const double) const;49 double operator()(const double) const; 50 50 51 51 private: -
trunk/yat/regression/Local.cc
r759 r767 107 107 utility::vector w(max_index-min_index+1); 108 108 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 ); 110 110 111 111 // fitting the regressor locally -
trunk/yat/regression/Local.h
r747 r767 37 37 38 38 /// 39 /// Class for Locally weighted regression.39 /// @brief Class for Locally weighted regression. 40 40 /// 41 41 /// Locally weighted regression is an algorithm for learning -
trunk/yat/regression/OneDimensional.h
r729 r767 37 37 38 38 /// 39 /// Abstract Base Class for One Dimensional fitting.39 /// @brief Interface Class for One Dimensional fitting. 40 40 /// 41 41 /// @see OneDimensionalWeighted. -
trunk/yat/regression/OneDimensionalWeighted.h
r729 r767 37 37 38 38 /// 39 /// Abstract Base Class for One Dimensional fitting in a weighted39 /// @brief Interface Class for One Dimensional fitting in a weighted 40 40 /// fashion. 41 41 /// -
trunk/yat/regression/PolynomialWeighted.h
r757 r767 34 34 35 35 /// 36 /// @ todo document36 /// @brief Polynomial Regression in weighted fashion. 37 37 /// 38 38 class PolynomialWeighted : public OneDimensionalWeighted
Note: See TracChangeset
for help on using the changeset viewer.