Examples of minus()


Examples of Jama.Matrix.minus()

        print("\nTesting array-like methods...\n");
        S = new Matrix(columnwise, nonconformld);
        R = Matrix.random(A.getRowDimension(), A.getColumnDimension());
        A = R;
        try {
            S = A.minus(S);
            errorCount = try_failure(errorCount, "minus conformance check... ",
                    "nonconformance not raised");
        } catch (IllegalArgumentException e) {
            try_success("minus conformance check... ", "");
        }
View Full Code Here

Examples of ai.domain.interval.IntervalExpressionSemantics.minus()

  Interval TOP = new Interval(Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY);

  @Test
  public void testUnaryMinus() {
    IntervalExpressionSemantics sem = new IntervalExpressionSemantics();
    org.junit.Assert.assertEquals(Interval.BOTTOM, sem.minus(Interval.BOTTOM));

    org.junit.Assert.assertEquals(new Interval(Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY),
        sem.minus(new Interval(Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY)));

    org.junit.Assert.assertEquals(new Interval(Double.NEGATIVE_INFINITY, 0),
View Full Code Here

Examples of cn.edu.buu.calculator.model.Calculator.minus()

    int result = 0;
   
    if(operator.equals("+")){
      result = calc.add();
    }else if(operator.equals("-")){
      result = calc.minus();
    }else if(operator.equals("*")){
      result = calc.multiplication();
    }else if(operator.equals("/")){
      result = calc.div();
    }else{
View Full Code Here

Examples of com.mockturtlesolutions.snifflib.datatypes.DblMatrix.minus()

    ionicStrPenalty = ionicStrPenalty.pow(2);
   
    DblMatrix resids = (this.AMatrix.dot(concMatrix)).minus(this.BVector);
    DblMatrix ONE = new DblMatrix(1.0);
   
    resids = resids.getMap(ONE.minus(DblMatrix.isNaN(resids)));
    resids = DblMatrix.sum(resids.pow(2),1);
    resids = resids.plus(ionicStrPenalty);
   
    resids = DblMatrix.sqrt(resids);
    //resids.show("resids2");
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.ProducedType.minus()

                        //(can be union with empty if first param is defaulted)
                        ProducedType callableArgs = callable.getTypeArgumentList().get(1);
                        boolean isUnion=false;
                        if (callableArgs.getDeclaration() instanceof UnionType) {
                            if (callableArgs.getCaseTypes().size() == 2) {
                                callableArgs = callableArgs.minus(gen.getTypeUtils().empty.getType());
                            }
                            isUnion=callableArgs.getDeclaration() instanceof UnionType;
                        }
                        //This is the type of the first argument
                        boolean isSequenced = !(isUnion || gen.getTypeUtils().tuple.equals(callableArgs.getDeclaration()));
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.math.linearalgebra.Vector.minus()

          Vector p4 = cent.minusTimes(pc[dim2], i);

          path.moveTo(p1);
          path.cubicTo(p1.plus(direction2), p2.plus(direction1), p2);
          path.cubicTo(p2.minus(direction1), p3.plus(direction2), p3);
          path.cubicTo(p3.minus(direction2), p4.minus(direction1), p4);
          path.cubicTo(p4.plus(direction1), p1.minus(direction2), p1);
          path.close();

          Element ellipse = path.makeElement(svgp);
          SVGUtil.addCSSClass(ellipse, EMBORDER + cnum);
View Full Code Here

Examples of jMEF.PVector.Minus()

         
          PVector x  = (PVector)mean.clone();
          x.array[3] = row;
          x.array[4] = col;

          double v = (x.Minus(((PVectorMatrix)f.param[i]).v)).InnerProduct(((PVectorMatrix)f.param[i]).M.Inverse().MultiplyVectorRight(x.Minus(((PVectorMatrix)f.param[i]).v)));
         
          if (v<t)
            imgOut.setRGB(col, row, c.getRGB());
        }
    }
View Full Code Here

Examples of java.time.chrono.ChronoLocalDate.minus()

            int week = computeWeek(offset, doy);
            if (week == 0) {
                // Day is in end of week of previous year
                // Recompute from the last day of the previous year
                ChronoLocalDate date = Chronology.from(temporal).date(temporal);
                date = date.minus(doy, DAYS);   // Back down into previous year
                return localizedWeekOfWeekBasedYear(date);
            } else if (week > 50) {
                // If getting close to end of year, use higher precision logic
                // Check if date of year is in partial week associated with next year
                ValueRange dayRange = temporal.range(DAY_OF_YEAR);
View Full Code Here

Examples of java.time.chrono.ChronoLocalDate.minus()

            int week = computeWeek(offset, doy);
            if (week == 0) {
                // Day is in end of week of previous year
                // Recompute from the last day of the previous year
                ChronoLocalDate date = Chronology.from(temporal).date(temporal);
                date = date.minus(doy + 7, DAYS);   // Back down into previous year
                return rangeWeekOfWeekBasedYear(date);
            }
            // Check if day of year is in partial week associated with next year
            ValueRange dayRange = temporal.range(DAY_OF_YEAR);
            int yearLen = (int)dayRange.getMaximum();
View Full Code Here

Examples of javaff.data.UngroundCondition.minus()

    AND a = new AND();
    Iterator lit = literals.iterator();
    while (lit.hasNext())
    {
      UngroundCondition p = (UngroundCondition) lit.next();
      a.add(p.minus(effect));
    }
    return a;
    }

  public UngroundCondition effectsAdd(UngroundCondition cond)
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.