Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3f5f518d authored by hhakim's avatar hhakim
Browse files

Add function Faust::StoppingCriterion::Display().

parent e8e874d0
No related branches found
No related tags found
No related merge requests found
...@@ -69,6 +69,7 @@ namespace Faust ...@@ -69,6 +69,7 @@ namespace Faust
bool do_continue(int current_ite, T error=-2.0)const; bool do_continue(int current_ite, T error=-2.0)const;
int get_crit() const{return nb_it;} int get_crit() const{return nb_it;}
void Display() const;
private: private:
void check_validity()const; void check_validity()const;
......
...@@ -107,4 +107,13 @@ bool Faust::StoppingCriterion<T>::do_continue(int current_ite, T current_error / ...@@ -107,4 +107,13 @@ bool Faust::StoppingCriterion<T>::do_continue(int current_ite, T current_error /
} }
} }
template<typename T>
void Faust::StoppingCriterion<T>::Display() const
{
std::cout << "StoppingCriterion obj:" << std::endl;
std::cout << "\tnb_it="<< nb_it << std::endl;
std::cout << "\tisCriterionError="<< isCriterionError << std::endl;
std::cout << "\terrorTreshold="<< errorThreshold << std::endl;
std::cout << "\tmaxIteration="<< maxIteration << std::endl;
}
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment