Skip to content
Snippets Groups Projects
Commit 3144bb47 authored by Julien Malik's avatar Julien Malik
Browse files

ENH: normalize the cost function wrt the number of samples

parent cfe0e375
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ typename StandardDSCostFunction<TDSValidationFilter>
}
catch (itk::ExceptionObject /*& err*/)
{
return (m_Weight * m_GTVectorData->Size() + (1 - m_Weight) * m_NSVectorData->Size());
return 1;
}
internalFunctionGT->Update();
......@@ -100,7 +100,7 @@ typename StandardDSCostFunction<TDSValidationFilter>
}
catch (itk::ExceptionObject &)
{
return (m_Weight * m_GTVectorData->Size() + (1 - m_Weight) * m_NSVectorData->Size());
return 1;
}
internalFunctionNS->Update();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment