29 ~ProcClassed()
override {}
31 void configure(ConfIterator iter,
unsigned int n)
override;
32 void eval(ValueIterator iter,
unsigned int n)
const override;
35 unsigned int nClasses;
41 :
VarProcessor(name, calib, computer), nClasses(calib->nClasses) {}
43 void ProcClassed::configure(ConfIterator iter,
unsigned int n) {
47 iter(Variable::FLAG_NONE);
48 for (
unsigned int i = 0;
i < nClasses;
i++)
49 iter << Variable::FLAG_NONE;
52 void ProcClassed::eval(ValueIterator iter,
unsigned int n)
const {
53 unsigned int value = (
unsigned int)(*iter + 0.5);
55 for (
unsigned int i = 0;
i < nClasses;
i++)
56 iter(
i == value ? 1.0 : 0.0);