The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
ExampleSet exampleSet = operator.getInput(ExampleSet.class);for (Attribute attribute : exampleSet.getAttributes()) { String name = attribute.getName(); double bound = 3; for (Example example : exampleSet) { if(example[name]<=-bound) example[name] = -bound; else if(example[name]>=bound) example[name] = bound; }}return exampleSet;