[agrum] clang-tidy fixes

parent 33695ec7
......@@ -17,8 +17,8 @@
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <agrum/BN/BayesNet.h>
#include <agrum/agrum.h>
#include <agrum/BN/BayesNet.h>
template class gum::BayesNet< float >;
template class gum::BayesNet< double >;
......@@ -25,4 +25,5 @@
* @author Pierre-Henri WUILLEMIN and Christophe GONZALES
*/
#include <agrum/agrum.h>
#include <agrum/BN/IBayesNetFactory.h>
......@@ -23,4 +23,5 @@
* @author Christophe GONZALES, Pierre-Henri WUILLEMIN, Lionel TORTI and
* Ariele-Paolo MAESANO
*/
#include <agrum/agrum.h>
#include <agrum/BN/generator/IBayesNetGenerator.h>
......@@ -18,7 +18,8 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <agrum/agrum.h>
#include <agrum/BN/inference/loopyBeliefPropagation.h>
// template class gum::LoopyBeliefPropagation<float>;
// template class gum::LoopyBeliefPropagation<double>;
template class gum::LoopyBeliefPropagation<float>;
template class gum::LoopyBeliefPropagation<double>;
......@@ -18,4 +18,5 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <agrum/agrum.h>
#include <agrum/BN/inference/tools/evidenceInference.h>
......@@ -115,12 +115,12 @@ namespace gum {
// ============================================================================
/// Returns the performance of current variable according to the test
// ============================================================================
void computeScore() const;
void computeScore();
// ============================================================================
/// Returns the performance of current variable according to the test
// ============================================================================
double score() const;
double score();
// ============================================================================
/// Returns a second criterion to severe ties
......
......@@ -78,7 +78,7 @@ namespace gum {
// Computes the GStat of current variable according to the test
// ============================================================================
template < typename GUM_SCALAR >
void LeastSquareTestPolicy< GUM_SCALAR >::computeScore() const {
void LeastSquareTestPolicy< GUM_SCALAR >::computeScore() {
ITestPolicy< GUM_SCALAR >::computeScore();
double mean = __sumO / (double)this->nbObservation();
double errorO = 0.0;
......@@ -107,7 +107,7 @@ namespace gum {
// Returns the performance of current variable according to the test
// ============================================================================
template < typename GUM_SCALAR >
double LeastSquareTestPolicy< GUM_SCALAR >::score() const {
double LeastSquareTestPolicy< GUM_SCALAR >::score() {
if (this->_isModified()) computeScore();
return __score;
}
......
......@@ -790,7 +790,7 @@ namespace gum {
if (root)
return root->size;
else
return 0;
return Size(0);
}
// Test if the tree contains the element
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment