21 using namespace PhysicsTools;
30 ProcClassed(
const char *
name,
33 virtual ~ProcClassed() {}
35 virtual void configure(ConfIterator iter,
unsigned int n);
36 virtual void eval(ValueIterator iter,
unsigned int n)
const;
39 unsigned int nClasses;
44 ProcClassed::ProcClassed(
const char *
name,
48 nClasses(calib->nClasses)
52 void ProcClassed::configure(ConfIterator iter,
unsigned int n)
58 for(
unsigned int i = 0;
i < nClasses;
i++)
62 void ProcClassed::eval(ValueIterator iter,
unsigned int n)
const
64 unsigned int value = (
unsigned int)(*iter + 0.5);
66 for(
unsigned int i = 0;
i < nClasses;
i++)
67 iter(
i == value ? 1.0 : 0.0);
detail::ThreadSafeRegistry< ParameterSetID, ParameterSet, ProcessParameterSetIDCache > Registry
MVATrainerComputer * calib