BRDFLafortuneFitting.LevenbergMarquardt.Complete C# (CSharp) Method

Complete() protected method

protected Complete ( ) : void
return void
        protected void Complete()
        {
            // Iterate through the minimization loop.
            for ( m_IterationsCount = 0; m_IterationsCount < m_MaxIterations; m_IterationsCount++ )
            {
                // Take one minimization step and prepare for next.
                try
                {
                    Step();
                }
                // Take care of any required error handling.
                catch ( Exception _e )
                {
            // 					osx << "Exception caught:  " << __FILE__ << ":" << __LINE__ << "\n";
            // 					osx << "in void complete()\n";
            // 					osx << "  --now passing exception to handleExceptions().\n\n";
            // 					handleExceptions(osx);
                }

                // Check for success criterion.
                if( IsSolved )
                {
                    m_IterationsCount += 1;
                    return;
                }

                // Prepare for the next optimization step
                try
                {
                    PrepareStep();
                }
                catch ( Exception _e )
                {
            // 					osx << "Exception caught:  " << __FILE__ << ":" << __LINE__ << "\n";
            // 					osx << "in void complete()\n";
            // 					osx << "  --now passing exception to handleExceptions().\n\n";
            // 					handleExceptions(osx);
                }
            }
        }