[mlpack-svn] r13419 - mlpack/trunk/src/mlpack/core/kernels
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Aug 15 14:40:31 EDT 2012
Author: rcurtin
Date: 2012-08-15 14:40:31 -0400 (Wed, 15 Aug 2012)
New Revision: 13419
Modified:
mlpack/trunk/src/mlpack/core/kernels/example_kernel.hpp
Log:
Propagate r13418 to trunk.
Modified: mlpack/trunk/src/mlpack/core/kernels/example_kernel.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/kernels/example_kernel.hpp 2012-08-15 18:39:53 UTC (rev 13418)
+++ mlpack/trunk/src/mlpack/core/kernels/example_kernel.hpp 2012-08-15 18:40:31 UTC (rev 13419)
@@ -5,10 +5,10 @@
* This is an example kernel. If you are making your own kernel, follow the
* outline specified in this file.
*/
-#ifndef __MLPACK_CORE_KERNELS_EXAMPLE_KERNEL_H
-#define __MLPACK_CORE_KERNELS_EXAMPLE_KERNEL_H
+#ifndef __MLPACK_CORE_KERNELS_EXAMPLE_KERNEL_HPP
+#define __MLPACK_CORE_KERNELS_EXAMPLE_KERNEL_HPP
-core.h>/core.h>
+#include <mlpack/core.hpp>
namespace mlpack {
@@ -100,6 +100,7 @@
*/
template<typename VecType>
static double Evaluate(const VecType& a, const VecType& b) { return 0; }
+
/**
* Obtains the convolution integral [integral K(||x-a||)K(||b-x||)dx]
* for the two vectors. In this case, because
@@ -113,7 +114,8 @@
* @return the convolution integral value.
*/
template<typename VecType>
- static double ConvolutionIntegral(const VecType& a, const VecType& b) { return 0; }
+ static double ConvolutionIntegral(const VecType& a, const VecType& b)
+ { return 0; }
/**
* Obtains the normalizing volume for the kernel with dimension $dimension$.
More information about the mlpack-svn
mailing list