Examples of times()


Examples of ca.eandb.jmist.framework.color.Color.times()

    Color c = etol.times(ltoe);

    if (ColorUtil.getTotalChannelValue(c) > 0.0
        && PathUtil.visibility(a, b)) {

      c = c.times(g);

      c = c.times(a.getCumulativeWeight()).times(
          b.getCumulativeWeight());

      return c;
View Full Code Here

Examples of ca.eandb.jmist.math.AffineMatrix2.times()

    for (int fi = 0, nf = faces.size(); fi < nf; fi++) {
      Face f = faces.get(fi);
      if (f.texIndices != null) {
        for (int tri = 0; tri < f.decomp.length; tri += 3) {
          Point2 a = T.times(texCoords.get(f.texIndices[f.decomp[tri]]));
          Point2 b = T.times(texCoords.get(f.texIndices[f.decomp[tri + 1]]));
          Point2 c = T.times(texCoords.get(f.texIndices[f.decomp[tri + 2]]));

          builder.reset();
          builder.add(a);
View Full Code Here

Examples of ca.eandb.jmist.math.LinearMatrix3.times()

    LinearMatrix3 band2xyz = new LinearMatrix3(
        a[0][0], a[0][1], a[0][2],
        a[1][0], a[1][1], a[1][2],
        a[2][0], a[2][1], a[2][2]);

    double factor = 1.0 / band2xyz.times(new Vector3(1, 1, 1)).y();

    return band2xyz.times(LinearMatrix3.scaleMatrix(factor)).inverse();
  }

  /* (non-Javadoc)
 
View Full Code Here

Examples of ca.eandb.jmist.math.Vector3.times()

      if (++segment > segments) {
        break;
      }

      pos = pos.plus(vel.times(dt));
      pos = pos.plus(RandomUtil.uniformInsideSphere(roughness, adapter).toCartesian());
    }

    return strand;
  }
View Full Code Here

Examples of com.eclipsesource.restfuse.annotation.Poll.times()

    this.statement = statement;
    this.base = base;
    this.target = target;
    Poll pollAnnotation = method.getAnnotation( Poll.class );
    interval = pollAnnotation.interval();
    times = pollAnnotation.times();
    pollState = new PollStateImpl();
  }

  @Override
  public void evaluate() throws Throwable {
View Full Code Here

Examples of com.github.restdriver.clientdriver.ClientDriverExpectation.times()

    }
   
    @Test
    public void expectationExpectedANumberOfTimesHasCorrectStatusString() {
        ClientDriverExpectation expectation = new ClientDriverExpectation(PAIR);
        expectation.times(10);
        assertThat(expectation.getStatusString(), is("expected: 10, actual: 0"));
    }
   
    @Test
    public void specifyingNumberOfExpectationsBelowOneThrowsException() {
View Full Code Here

Examples of com.google.caliper.util.ShortDuration.times()

  @Test public void testCalculateTargetReps_tinyBenchmark() {
    // this is one cycle on a 5GHz machine
    ShortDuration oneCycle = ShortDuration.of(new BigDecimal("2.0e-10"), SECONDS);
    long targetReps = calculateTargetReps(INITIAL_REPS,
        oneCycle.times(INITIAL_REPS).to(NANOSECONDS), TIMING_INTERVAL.to(NANOSECONDS), 0.0);
    long expectedReps = TIMING_INTERVAL.toPicos() / oneCycle.toPicos();
    assertEquals(expectedReps, targetReps);
  }

  @Test public void testCalculateTargetReps_hugeBenchmark() {
View Full Code Here

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

        if (DblMatrix.test(VALUE.eq(0.0)))
        {
          VALUE = new DblMatrix(0.000001);
        }
        else
        VALUE = VALUE.times(0.000001);
        }

        this.prop.setMixingParam(pname,VALUE);

      }
View Full Code Here

Examples of com.opengamma.timeseries.date.localdate.LocalDateDoubleTimeSeries.times()

  @Override
  public LocalDateDoubleTimeSeries getSampledTimeSeries(final DateDoubleTimeSeries<?> ts, final LocalDate[] schedule) {
    ArgumentChecker.notNull(ts, "time series");
    ArgumentChecker.notNull(schedule, "schedule");
    final LocalDateDoubleTimeSeries localDateTS = ImmutableLocalDateDoubleTimeSeries.of(ts);
    final List<LocalDate> tsDates = localDateTS.times();
    final List<LocalDate> scheduledDates = new ArrayList<>();
    final List<Double> scheduledData = new ArrayList<>();
    for (final LocalDate localDate : schedule) {
      if (tsDates.contains(localDate)) {
        scheduledDates.add(localDate);
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.distance.distancevalue.DoubleDistance.times()

    V c_proj = projection(c_ij, c_ij.centroid, factory);
    for(DBID id : c_ij.objectIDs) {
      V o = database.get(id);
      V o_proj = projection(c_ij, o, factory);
      DoubleDistance dist = distFunc.distance(o_proj, c_proj);
      sum = sum.plus(dist.times(dist));
    }
    DoubleDistance projectedEnergy = sum.times(1.0 / c_ij.objectIDs.size());

    return new ProjectedEnergy(i, j, c_ij, projectedEnergy);
  }
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.