Examples of evaluate()


Examples of net.gouline.riskybusiness.RiskEvaluator.evaluate()

    RiskEvaluator riskEvaluator = new RiskEvaluator();

    InputStreamReader settleReader = new InputStreamReader(getClass().getResourceAsStream("/Settled.csv"));
    InputStreamReader unsettledReader = new InputStreamReader(getClass().getResourceAsStream("/Unsettled.csv"));

    List<UnsettledBet> unsettledBets = riskEvaluator.evaluate(settleReader, unsettledReader);

    assertTrue(unsettledBets.get(0).getRisks().containsKey(RiskEvaluator.RiskType.SUCCESS_RATE));

    assertTrue(unsettledBets.get(2).getRisks().containsKey(RiskEvaluator.RiskType.STAKE_AMOUNT));

Examples of net.lagerwey.xml.xpath.XPath.evaluate()

  private boolean parseForNumber(String attributeDirectives) {
    boolean matches = false;
    try {
      XPath xpath = new XPath(new StringReader(attributeDirectives));
      matches = Boolean.TRUE.equals(xpath.evaluate(this));
    } catch (ParseException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    /*
 

Examples of net.nutch.util.CommandRunner.evaluate()

      cr.setStdOutputStream(os);
      cr.setStdErrorStream(es);

      cr.setTimeout(timeout);

      cr.evaluate();

      if (cr.getExitValue() != 0)
        throw new ParseException("External command "+command
          +" failed with error: "+es.toString());

Examples of net.quenchnetworks.sassybarista.sass.eval.SassSheetEvaluator.evaluate()

                        return new DefaultPropertyValue("1");
                    }
                }
            });

            evaluator.evaluate(sheet);

            SassSheetSerializer serializer = new SassSheetSerializer(new PrintStream(out));
            serializer.render(sheet);

            return new String(out.toByteArray());

Examples of net.sf.doodleproject.numerics4j.continuedfraction.ContinuedFraction.evaluate()

                    return ret;
                }
            };
            ret = Math.exp((a * Math.log(x)) + (b * Math.log(1.0 - x))
                - Math.log(a) - logBeta(a, b))
                / fraction.evaluate(x);
        }

        return ret;
    }
}

Examples of net.sf.doodleproject.numerics4j.series.Series.evaluate()

                protected double getTerm(int n, double x) {
                    term = x / (a + n) * term;
                    return term;
                }
            };
            ret = s.evaluate(x)
                * Math.exp(-x + (a * Math.log(x)) - logGamma(a));
        }

        return ret;
    }

Examples of net.sf.jmd.evaluation.IComparator.evaluate()

    public IReport evaluate() {

        IComparator comparator = new Comparator();
        setupRules(comparator);
        log.info("all Checks in Rules: " + comparator.getChecks().size());
        return comparator.evaluate();
    }

    private void setupRules(final IComparator comparator) {
        List<String> ruleConfig;
        for (int i = 1; (ruleConfig = Config.getRuleProperties(i)) != null; i++) {

Examples of net.sf.jmd.evaluation.impl.Comparator.evaluate()

    public IReport evaluate() {

        IComparator comparator = new Comparator();
        setupRules(comparator);
        log.info("all Checks in Rules: " + comparator.getChecks().size());
        return comparator.evaluate();
    }

    private void setupRules(final IComparator comparator) {
        List<String> ruleConfig;
        for (int i = 1; (ruleConfig = Config.getRuleProperties(i)) != null; i++) {

Examples of net.sf.jxls.parser.Expression.evaluate()

    for(int i=0;i<count;i++){
      Configuration conf = new Configuration();
      ExpressionParser exprParser = new ExpressionParser( test, beans, conf );
          Expression testExpr = exprParser.parse();
          try {
              result = (Boolean) testExpr.evaluate();
          } catch (Exception e) {
            e.printStackTrace();
          }
    }
    clock.stop();

Examples of net.sf.laja.context.Context.evaluate()

  }

  public Object evaluateNextAttributes(Context context, Object attribute) {
    for (AttributeRef attributeRef : attributes) {
      Context attributeContext = context.createContext(attribute, attributeRef);
      attribute = attributeContext.evaluate(attributeRef);
      if (attributeRef.hasListIndex()) {
        attribute = attributeRef.evaluateArrayOrList(attribute);
      }
    }
    return attribute;
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.