19 package org.turro.matching;
21 import java.util.HashSet;
22 import java.util.List;
23 import org.turro.string.Strings;
24 import org.turro.indicator.IndicatorVariable;
25 import org.turro.script.Script;
26 import org.turro.script.StatisticsFunctions;
34 public void addMissing(List<IndicatorVariable> variables) {
37 add(
new GenericMatching(
"missing",
"missing", variable.getName(), variable.getMissingValue()));
43 return stream().anyMatch(r -> r.getConcept().equals(variable.
getName()));
47 if(!Strings.isBlank(formula)) {
48 Script script =
new Script();
49 script.addMethodsFromClass(StatisticsFunctions.class);
53 return script.evalToDouble(formula, 2);
boolean hasVariable(IndicatorVariable variable)
double applyFrom(String formula)
void addMissing(List< IndicatorVariable > variables)