# Changeset 767 for trunk/yat/regression

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

Fixes #65

Location:
trunk/yat/regression
Files:
10 edited

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

 r682 /// /// Abstract Base Class for calculating the weights in a more /// @brief Interface Class for calculating the weights in a more /// general way than classical rectangular windows. /// /// /// Function calculating the weight /// Operator calculating calculating kernel value. /// virtual double weight(const double) const=0; virtual double operator()(const double) const=0; };
• ## trunk/yat/regression/KernelBox.cc

 r682 } double KernelBox::weight(const double u) const double KernelBox::operator()(const double u) const { if (u>1 || u<-1)
• ## trunk/yat/regression/KernelBox.h

 r682 /// /// Class for KernelBox a.k.a. rectangular window. /// @brief Class for KernelBox a.k.a. rectangular window. /// class KernelBox : public Kernel /// /// Function calculating the weight as \f\$ w(x)=1\f\$ if \f\$|x|\le 1 /// Function calculating kernel value as \f\$ w(x)=1\f\$ if \f\$|x|\le 1 /// \f\$, \f\$ w(x)=0 \f\$ otherwise. /// double weight(const double) const; double operator()(const double) const; private:
• ## trunk/yat/regression/KernelTriCube.cc

 r682 } double KernelTriCube::weight(const double x) const double KernelTriCube::operator()(const double x) const { if (x>1 || x<-1)
• ## trunk/yat/regression/KernelTriCube.h

 r682 /// /// Class for TriCubal kernel. /// @brief Class for TriCubal kernel. /// class KernelTriCube : public Kernel /// /// Function calculating the weight as \f\$ w(x)=(1-|x|^3)^3\f\$ if /// Operator calculating kernel value as \f\$ w(x)=(1-|x|^3)^3\f\$ if /// \f\$|x|\le 1 \f\$, \f\$ w(x)=0 \f\$ otherwise. /// double weight(const double) const; double operator()(const double) const; private:
• ## trunk/yat/regression/Local.cc

 r759 utility::vector w(max_index-min_index+1); for (size_t j=0; jweight( (x_local(j)- x_mid)/width ); w(j) = (*kernel_)( (x_local(j)- x_mid)/width ); // fitting the regressor locally
• ## trunk/yat/regression/Local.h

 r747 /// /// Class for Locally weighted regression. /// @brief Class for Locally weighted regression. /// /// Locally weighted regression is an algorithm for learning
• ## trunk/yat/regression/OneDimensional.h

 r729 /// /// Abstract Base Class for One Dimensional fitting. /// @brief Interface Class for One Dimensional fitting. /// /// @see OneDimensionalWeighted.
• ## trunk/yat/regression/OneDimensionalWeighted.h

 r729 /// /// Abstract Base Class for One Dimensional fitting in a weighted /// @brief Interface Class for One Dimensional fitting in a weighted /// fashion. ///
• ## trunk/yat/regression/PolynomialWeighted.h

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