Merge pull request #3733 from shrit/fix_const
Fix the warning from the additional const
This commit is contained in:
@@ -77,7 +77,7 @@ class CauchyKernel
|
||||
}
|
||||
|
||||
// Get the kernel bandwidth.
|
||||
const double Bandwidth() const { return bandwidth; }
|
||||
double Bandwidth() const { return bandwidth; }
|
||||
// Modify the kernel bandwidth.
|
||||
void Bandwidth(const double bw) { this->bandwidth = bw; }
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ class EpanechnikovKernel
|
||||
inline double Normalizer(const size_t dimension);
|
||||
|
||||
// Get the bandwidth of the kernel.
|
||||
const double Bandwidth() const { return bandwidth; }
|
||||
double Bandwidth() const { return bandwidth; }
|
||||
// Modify the bandwidth of the kernel.
|
||||
void Bandwidth(const double bandwidth)
|
||||
{
|
||||
|
||||
@@ -30,7 +30,7 @@ class SphericalKernel
|
||||
{ /* Nothing to do. */ }
|
||||
|
||||
// Get the bandwidth.
|
||||
const double Bandwidth() const { return bandwidth; }
|
||||
double Bandwidth() const { return bandwidth; }
|
||||
// Modify the bandwidth.
|
||||
void Bandwidth(const double bandwidth)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user