[mlpack-svn] r12947 - mlpack/trunk/src/mlpack/core/kernels
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Jun 5 14:53:55 EDT 2012
Author: rcurtin
Date: 2012-06-05 14:53:54 -0400 (Tue, 05 Jun 2012)
New Revision: 12947
Modified:
mlpack/trunk/src/mlpack/core/kernels/gaussian_kernel.hpp
Log:
Remove static Gaussian kernel hack.
Modified: mlpack/trunk/src/mlpack/core/kernels/gaussian_kernel.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/kernels/gaussian_kernel.hpp 2012-06-05 18:53:36 UTC (rev 12946)
+++ mlpack/trunk/src/mlpack/core/kernels/gaussian_kernel.hpp 2012-06-05 18:53:54 UTC (rev 12947)
@@ -101,6 +101,7 @@
//! Get the bandwidth.
double Bandwidth() const { return bandwidth; }
+
//! Modify the bandwidth. This takes an argument because we must update the
//! precalculated constant (gamma).
void Bandwidth(const double bandwidth)
@@ -121,18 +122,6 @@
double gamma;
};
-class GaussianStaticKernel
-{
- public:
- GaussianStaticKernel() { }
-
- template<typename VecType>
- static double Evaluate(const VecType& a, const VecType& b)
- {
- return exp(-0.5 * metric::SquaredEuclideanDistance::Evaluate(a, b));
- }
-};
-
}; // namespace kernel
}; // namespace mlpack
More information about the mlpack-svn
mailing list