Examples of compute()


Examples of br.com.objectos.way.base.ModuloCheckDigit.Computation.compute()

        SeqNumCol col = colMap.get(id);
        col.eval(colMap);
        computation.append(col.data);
      }

      CheckDigit digit = computation.compute();
      toInteger(digit.intValue());
    }

  }
View Full Code Here

Examples of com.alibaba.simpleimage.jai.scale.LanczosScaleOp.compute()

        return zoomOp;
    }

    public static PlanarImage lanczosScaleImage(PlanarImage input, double scale) {
        LanczosScaleOp lanczosOp = new LanczosScaleOp(scale, scale);
        BufferedImage dest = lanczosOp.compute(input.getAsBufferedImage());

        return PlanarImage.wrapRenderedImage(dest);
    }

    public static PlanarImage autoScaleImage(PlanarImage input, double scale) {
View Full Code Here

Examples of com.google.test.metric.MetricComputer.compute()

    }
  }

  public void testImplicitSetterCostShouldNotBeDoubleCounted() throws Exception {
    MetricComputer computer = new MetricComputer(new JavaClassRepository(), null, new RegExpWhiteList(), 1);
    ClassCost cost = computer.compute(Setters.class.getCanonicalName());
    MethodCost cost1 = cost.getMethodCost("void setFoo(java.lang.String)");
    assertEquals(1, cost1.getTotalCost().getCyclomaticComplexityCost());
  }
}
View Full Code Here

Examples of com.mojang.minecraft.level.generator.noise.CombinedNoise.compute()

      for(var11 = 0; var11 < var5.width; ++var11) {
         var5.setProgress(var11 * 100 / (var5.width - 1));

         for(var12 = 0; var12 < var5.depth; ++var12) {
            double var13 = var6.compute((double)((float)var11 * var10), (double)((float)var12 * var10)) / 6.0D + (double)-4;
            double var15 = var7.compute((double)((float)var11 * var10), (double)((float)var12 * var10)) / 5.0D + 10.0D + (double)-4;
            if(var8.compute((double)var11, (double)var12) / 8.0D > 0.0D) {
               var15 = var13;
            }

            double var19;
View Full Code Here

Examples of com.mojang.minecraft.level.generator.noise.OctaveNoise.compute()

         var5.setProgress(var11 * 100 / (var5.width - 1));

         for(var12 = 0; var12 < var5.depth; ++var12) {
            double var13 = var6.compute((double)((float)var11 * var10), (double)((float)var12 * var10)) / 6.0D + (double)-4;
            double var15 = var7.compute((double)((float)var11 * var10), (double)((float)var12 * var10)) / 5.0D + 10.0D + (double)-4;
            if(var8.compute((double)var11, (double)var12) / 8.0D > 0.0D) {
               var15 = var13;
            }

            double var19;
            if((var19 = Math.max(var13, var15) / 2.0D) < 0.0D) {
View Full Code Here

Examples of com.neuralnetwork.shared.training.BackpropAlgorithm.compute()

      switch (getTrainAlgorithm()) {
      case BACKPROP:
          BackpropAlgorithm algo =
          new BackpropAlgorithm(trainingVector,
              trainingVector, this, expectedError);
          errorValue = new ErrorValue(algo.compute());
        break;
      case QPROP:
        break;
      case RPROP:
        break;
View Full Code Here

Examples of com.tinkerpop.gremlin.giraph.structure.GiraphGraph.compute()

        final GiraphGraphProvider provider = new GiraphGraphProvider();
        final Map<String, Object> map = provider.getBaseConfiguration("gremlin.giraph", GiraphGraphComputerIntegrateTest.class, "shouldNotDeriveMemoryIfToldSo");
        map.put(Constants.GREMLIN_GIRAPH_DERIVE_MEMORY, false);
        final GiraphGraph g = (GiraphGraph) GraphFactory.open(map);
        provider.loadGraphData(g, LoadGraphWith.GraphData.CLASSIC);
        final ComputerResult result = g.compute().program(LambdaVertexProgram.build().
                setup(memory -> {
                }).
                execute((vertex, messenger, memory) -> {
                }).
                terminate(memory -> memory.getIteration() > 2).create()).submit().get();
View Full Code Here

Examples of cpw.mods.fml.repackage.com.nothome.delta.Delta.compute()

                JarEntry entry = sourceZip.getJarEntry(jarName);

                byte[] vanillaBytes = entry != null ? ByteStreams.toByteArray(sourceZip.getInputStream(entry)) : new byte[0];
                byte[] patchedBytes = Files.toByteArray(targetFile);

                byte[] diff = delta.compute(vanillaBytes, patchedBytes);


                ByteArrayDataOutput diffOut = ByteStreams.newDataOutput(diff.length + 50);
                // Original name
                diffOut.writeUTF(name);
View Full Code Here

Examples of gov.nara.nwts.ftapp.stats.Stats.compute()

  public void checkFile(File thefile, FileTest fileTest) {
    if (fileTest.isTestable(thefile)){
      Stats mystats = fileTest.getStats(thefile);
      if (mystats!=null){
        mystats.compute(thefile, fileTest);
      }
    }
  }
  public void checkDirFile(File thefile, FileTest fileTest) {
    if (fileTest.isTestable(thefile)){
View Full Code Here

Examples of gov.nist.microanalysis.EPQLibrary.ElectronRange.compute()

            electronRange = ElectronRange.Pouchou1991;

        double rMax;
        for (XRayTransition xrt : transitions) {
            rMax =
                    electronRange.compute(comp, xrt.getDestination(), energy)
                            / density;
            zPZS.put(xrt, HistogramUtil.createBins(-rMax, 0.0, channels));
            gnfPZs.put(xrt, new double[channels]);
            enfPZs.put(xrt, new double[channels]);
        }
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.