- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 32 of file MatchingSet.java.
◆ addMissing()
void org.turro.matching.MatchingSet.addMissing |
( |
List< IndicatorVariable > |
variables | ) |
|
Definition at line 34 of file MatchingSet.java.
35 for(IndicatorVariable variable : variables) {
37 add(
new GenericMatching(
"missing",
"missing", variable.getName(), variable.getMissingValue()));
boolean hasVariable(IndicatorVariable variable)
◆ applyFrom()
double org.turro.matching.MatchingSet.applyFrom |
( |
String |
formula | ) |
|
Definition at line 46 of file MatchingSet.java.
47 if(!Strings.isBlank(formula)) {
48 Script script =
new Script();
49 script.addMethodsFromClass(StatisticsFunctions.class);
50 for(IMatching m :
this) {
51 script.addVariable(m.getConcept(), m.getMatching());
53 return script.evalToDouble(formula, 2);
◆ hasVariable()
Definition at line 42 of file MatchingSet.java.
43 return stream().anyMatch(r -> r.getConcept().equals(variable.getName()));
The documentation for this class was generated from the following file: