}
// -------------------------------------------------------------------------
-std::string fpaPlugins::InvertCostFunction::
+void fpaPlugins::InvertCostFunction::
_GenerateData( )
{
auto choice = this->m_Parameters.GetSelectedChoice( "ScalarType" );
- if ( choice == "float" ) return( this->_GD0< float >( ) );
- else if( choice == "double" ) return( this->_GD0< double >( ) );
- else
- return( "fpaPlugins::InvertCostFunction: invalid scalar type." );
+ if ( choice == "float" ) this->_GD0< float >( );
+ else if( choice == "double" ) this->_GD0< double >( );
+ else this->_Error( "Invalid scalar type." );
}
// -------------------------------------------------------------------------
template< class _TScalar >
-std::string fpaPlugins::InvertCostFunction::
+void fpaPlugins::InvertCostFunction::
_GD0( )
{
typedef fpa::Base::Functors::InvertCostFunction< _TScalar > _TFunctor;
} // fi
f->SetAlpha( this->m_Parameters.GetReal( "Alpha" ) );
f->SetBeta( this->m_Parameters.GetReal( "Beta" ) );
- return( "" );
}
// eof - $RCSfile$