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