Merge pull request #3733 from shrit/fix_const

Fix the warning from the additional const
This commit is contained in:
Ryan Curtin
2024-06-10 07:09:53 -06:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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)
{
+1 -1
View File
@@ -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)
{