Examples of Minus


Examples of org.jquantlib.math.functions.Minus

        QL.require(N > 3, "sample number <=3, unsufficient");

        /*@Real*/ final double x = expectationValue(
            new ComposedFunction(
                new Fourth(), new Bind2nd(
                    new Minus(), mean())),
                                  new Everywhere()).first();
        /*@Real*/ final double sigma2 = variance();

        /*@Real*/ final double c1 = (N/(N-1.0)) * (N/(N-2.0)) * ((N+1.0)/(N-3.0));
        /*@Real*/ final double c2 = 3.0 * ((N-1.0)/(N-2.0)) * ((N-1.0)/(N-3.0));
 
View Full Code Here

Examples of org.jquantlib.math.functions.Minus

  public /*@Real*/ double regret(final /*@Real*/ double target) /*@ReadOnly*/ {
    // average over the range below the target

    final List<Ops.DoubleOp> functions = new ArrayList<Ops.DoubleOp>();
    functions.add(new Square());
    functions.add(new Bind2nd(new Minus(), target));
    final Expression comp = new Expression(functions);
    final Ops.DoublePredicate less = new Bind2ndPredicate(new LessThanPredicate(), target);

    final Pair<Double, Integer> result = expectationValue(comp, less);
    final double x = result.first();
View Full Code Here

Examples of org.jquantlib.math.functions.Minus

   * averaged shortfallness, defined as
   * {@latex[ \mathrm{E}\left[ t-x \;|\; x<t \right] }
   */
  public /*@Real*/ double averageShortfall(final /*@Real*/ double target) /*@ReadOnly*/ {

    final Ops.DoubleOp minus = new Bind1st(target, new Minus());
    final Ops.DoublePredicate less = new Bind1stPredicate(target, new LessThanPredicate());
    final Pair<Double, Integer> result = expectationValue(minus, less);

    final double x = result.first();
    final Integer N = result.second();
View Full Code Here

Examples of org.objectweb.medor.expression.lib.Minus

          case SpeedoQLConstants.PLUS:
            ret = new Plus((Expression) stack.pop(), ret);
            break;
          case SpeedoQLConstants.MINUS:
            ret = new Minus((Expression) stack.pop(), ret);
            break;
          case SpeedoQLConstants.MULT:
            ret = new Mult((Expression) stack.pop(), ret);
            break;
          case SpeedoQLConstants.DIV:
View Full Code Here

Examples of org.objectweb.medor.expression.lib.Minus

                case SpeedoQLConstants.PLUS:
                    ret = new Plus((Expression) stack.pop(), ret);
                    break;
                case SpeedoQLConstants.MINUS:
                    ret = new Minus((Expression) stack.pop(), ret);
                    break;
                case SpeedoQLConstants.MULT:
                    ret = new Mult((Expression) stack.pop(), ret);
                    break;
                case SpeedoQLConstants.DIV:
View Full Code Here

Examples of org.renjin.primitives.R$primitive$$minus$deferred_d

  public void nestedDistanceMatrixAndUnaryOp() {

    DoubleArrayVector vector = new DoubleArrayVector(5,10,3,2,1);
    DistanceMatrix matrix = new DistanceMatrix(vector);
    System.out.println(Deparse.deparseExp(null, matrix));
    Vector negative = new R$primitive$$minus$deferred_d(matrix, AttributeMap.EMPTY);
    DeferredMean mean = new DeferredMean(negative, AttributeMap.EMPTY);
    DeferredGraph graph = new DeferredGraph(mean);

    DeferredJitter jitter = new DeferredJitter();
    JittedComputation computation = jitter.compile(graph.getRoot());
View Full Code Here

Examples of railo.runtime.interpreter.ref.op.Minus

    // -=
    if (cfml.isCurrent('=')) {
      cfml.next();
      cfml.removeSpace();
      Ref right = assignOp();
      Ref res = preciseMath?new BigMinus(ref,right):new Minus(ref,right);
      ref=new Assign(ref,res);
    }
    /*/ --
    else if (cfml.isCurrent('-')) {
      cfml.next();
      cfml.removeSpace();
      Ref res = new Minus(ref,new LNumber(new Double(1)));
      ref=new Assign(ref,res);
      ref=new Plus(ref,new LNumber(new Double(1)));
    }*/
    else
            cfml.removeSpace();
            ref=preciseMath?new BigMinus(ref,modOp()):new Minus(ref,modOp());
    }
    return ref;
  }
View Full Code Here

Examples of railo.runtime.interpreter.ref.op.Minus

        // And Operation
        if (cfml.forwardIfCurrent('-')) {
          if (cfml.forwardIfCurrent('-')) {
            cfml.removeSpace();
        Ref expr = clip();
        Ref res = preciseMath?new BigMinus(expr,new LNumber(new Double(1))):new Minus(expr,new LNumber(new Double(1)));
        return new Assign(expr,res);
     
            cfml.removeSpace();
            return new Negate(clip());
         
View Full Code Here

Examples of uk.org.ogsadai.expression.arithmetic.Minus

    public void visitMinus(Minus expression)
    {
        ArithmeticExpression[] children = expression.getChildren();
        mCurrentExpression =
            new Minus(
                    cloneArithmeticExpression(children[0]),
                    cloneArithmeticExpression(children[1]),
                    expression);
    }
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.