]> Creatis software - clitk.git/commitdiff
showing step size in gradient descent
authorRomulo Pinho <pinho@lyon.fnclcc.fr>
Thu, 20 Oct 2011 09:06:59 +0000 (11:06 +0200)
committerRomulo Pinho <pinho@lyon.fnclcc.fr>
Thu, 20 Oct 2011 09:06:59 +0000 (11:06 +0200)
registration/clitkGenericOptimizer.h

index ca8cace7593ef6451096eb0138183d22a7c14fed..04b849d0d7280b325a5d5b30a785069080c33b99 100644 (file)
@@ -323,7 +323,7 @@ public:
       std::cout<<std::setprecision(6);
       if (m_OutputIteration)  std::cout<<"Iteration: "<< o->GetCurrentIteration()<<std::endl;
       if (m_OutputPosition)  std::cout<<"Position: "<< o->GetCurrentPosition()<<std::endl;
-      if (m_OutputPosition)  std::cout<<"Step length: "<< o->GetCurrentStepLength()<<std::endl;
+      if (m_OutputValue)  std::cout<<"Step length: "<< o->GetCurrentStepLength()<<std::endl;
       if (m_OutputValue)  std::cout<<"Value: "<< o->GetValue()<<std::endl;
       if (m_OutputGradient)  std::cout<<"Gradient: "<< o->GetGradient()<<std::endl;
       std::cout<<std::endl;