Examples of calc()


Examples of lineage2.gameserver.stats.Calculator.calc()

    Env env = new Env();
    env.character = this;
    env.target = target;
    env.skill = skill;
    env.value = init;
    c.calc(env);
    return env.value;
  }
 
  /**
   * Method calcStat.
View Full Code Here

Examples of net.sf.l2j.gameserver.skills.Calculator.calc()

    env.target = target;
    env.skill = skill;
    env.value = init;

    // Launch the calculation
    c.calc(env);
    // avoid some troubles with negative stats (some stats should never be
    // negative)
    if (env.value <= 0
        && ((stat == Stats.MAX_HP) || (stat == Stats.MAX_MP) || (stat == Stats.MAX_CP) || (stat == Stats.MAGIC_DEFENCE)
            || (stat == Stats.POWER_DEFENCE) || (stat == Stats.POWER_ATTACK) || (stat == Stats.MAGIC_ATTACK) || (stat == Stats.POWER_ATTACK_SPEED)
View Full Code Here

Examples of org.codehaus.plexus.digest.Digester.calc()

                createdFiles.add( checksumFile );
            }

            try
            {
                writeStringToFile( checksumFile, digester.calc( file ) );
            }
            catch ( DigesterException e )
            {
                throw (IOException) e.getCause();
            }
View Full Code Here

Examples of org.codehaus.plexus.digest.Digester.calc()

                createdFiles.add( checksumFile );
            }

            try
            {
                writeStringToFile( checksumFile, digester.calc( file ) );
            }
            catch ( DigesterException e )
            {
                throw (IOException) e.getCause();
            }
View Full Code Here

Examples of org.codehaus.plexus.digest.Digester.calc()

                createdFiles.add( checksumFile );
            }

            try
            {
                writeStringToFile( checksumFile, digester.calc( file ) );
            }
            catch ( DigesterException e )
            {
                throw (IOException) e.getCause();
            }
View Full Code Here

Examples of org.codehaus.plexus.digest.Digester.calc()

            {
                createdFiles.add( checksumFile );
            }
            try
            {
                FileUtils.writeStringToFile( checksumFile, digester.calc( file ), null );
            }
            catch ( DigesterException e )
            {
                // the Digester API just wraps IOException and should be fixed
                throw (IOException) e.getCause();
View Full Code Here

Examples of org.commonlib.parser.ContextParser.calc()

         "volumecilindro=areacerchio*altezza\n"+
         "suplatcilindro=2*pi()*raggio*altezza\n"+
         "suptotcilindro=suplatcilindro+areacerchio*2\n"+
         "volumecono=areacerchio*altezza/3\n";

      parser.calc(toParse, context);

      System.out.println(toParse);
      dumpContext(context);
    }
    catch(Exception ex)
View Full Code Here

Examples of org.elasticsearch.common.joda.TimeZoneRounding.calc()

            Thread.sleep(1);
        }

        final long start1 = System.currentTimeMillis();
        for(int i = 0; i < reps; i++) {
            expected[i] = tzRounding.calc(input[i]);
        }
        final long time1 = System.currentTimeMillis() - start1;

        final long start2 = System.currentTimeMillis();
        for(int i = 0; i < reps; i++) {
View Full Code Here

Examples of org.fnlp.ml.loss.Loss.calc()

    for (int i = 0; i < testSet.size(); i++) {
      Instance carrier = testSet.get(i);
      int[] pred = (int[]) cl.classify(carrier).getLabel(0);
      if (hasLabel) {
        len += pred.length;
        float e = loss.calc(carrier.getTarget(), pred);
        error += e;
        if(e != 0)
          senError++;

      }
View Full Code Here

Examples of org.fnlp.ml.loss.Loss.calc()

    for (int i = 0; i < testSet.size(); i++) {
      Instance carrier = testSet.get(i);
      int[] pred = (int[]) cl.classify(carrier).getLabel(0);
      if (acc) {
        len += pred.length;
        double e = loss.calc(carrier.getTarget(), pred);
        error += e;
        if(e != 0)
          senError++;
        //测试中英混杂语料
        if(hasENG) {
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.