Examples of exponent()


Examples of com.barchart.util.values.api.PriceValue.exponent()

    if (fraction.isNull()) {
      log.error("fraction.isNull()");
      return false;
    }

    if (priceStep.exponent() != fraction.decimalExponent) {
      log.error("priceStep.exponent() != fraction.decimalExponent");
      return false;
    }

    return true;
View Full Code Here

Examples of com.barchart.util.values.api.PriceValue.exponent()

  }

  @Override
  public Price tickSize() {
    final PriceValue temp = get(InstrumentField.TICK_SIZE);
    return factory.newPrice(temp.mantissa(), temp.exponent());
  }

  @Override
  public Price pointValue() {
    final PriceValue temp = get(InstrumentField.POINT_VALUE);
View Full Code Here

Examples of com.barchart.util.values.api.PriceValue.exponent()

  }

  @Override
  public Price pointValue() {
    final PriceValue temp = get(InstrumentField.POINT_VALUE);
    return factory.newPrice(temp.mantissa(), temp.exponent());
  }

  @Override
  public Fraction displayFraction() {
    return get(InstrumentField.DISPLAY_FRACTION);
View Full Code Here

Examples of com.barchart.util.values.api.PriceValue.exponent()

      builder.setContractPointValue(buildDecimal(0,0));
    } else {
      PriceValue pricePoint = ValueBuilder.newPrice(Double
          .valueOf(pricePointString));
      builder.setContractPointValue(buildDecimal(
          pricePoint.mantissa(), pricePoint.exponent()));
    }
   
    /* display fraction base : decimal(10) vs binary(2), etc. */
    builder.setDisplayBase((int)frac.fraction.base());
    builder.setDisplayExponent(frac.fraction.exponent());
 
View Full Code Here

Examples of jmathexpr.arithmetic.pattern.PolynomialTermPattern.exponent()

        NaturalNumber n;
        Expression c, c0;
       
        for (Expression t : terms) {
            if (pt.matches(t)) {
                n = pt.exponent();
                c = pt.coefficient();
            } else {
                throw new IllegalArgumentException(
                        String.format("Illegal polynomial term: %s (%s)", t, t.getClass()));
            }
View Full Code Here

Examples of nl.peterbloem.powerlaws.Discrete.exponent()

    List<Integer> degreesPL = new ArrayList<Integer>(graph.size());
    for(Node<N> node : graph.nodes())
      degreesPL.add(node.degree());
   
    Discrete dist = Discrete.fit(degreesPL).fit();
    plExponent = dist.exponent();
    plMin = dist.xMin();
    // * TODO: This is too slow to include now, but it is an important
    //         statistic.
    // plSignificance = dist.significance(degreesPL, PL_ACCURACY);
  }
View Full Code Here
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.