Examples of times()


Examples of org.apache.mahout.math.Vector.times()

      s1 = v.clone();
    } else {
      s1 = s1.plus(v);
    }
    if (s2 == null) {
      s2 = v.times(v);
    } else {
      s2 = s2.plus(v.times(v));
    }
  }
View Full Code Here

Examples of org.apache.mahout.math.Vector.times()

      s1 = s1.plus(v);
    }
    if (s2 == null) {
      s2 = v.times(v);
    } else {
      s2 = s2.plus(v.times(v));
    }
  }

  @Override
  public void computeParameters() {
View Full Code Here

Examples of org.apache.mahout.math.Vector.times()

      s1 = x.clone();
    } else {
      s1 = s1.plus(x);
    }
    if (s2 == null) {
      s2 = x.times(x);
    } else {
      s2 = s2.plus(x.times(x));
    }
  }
View Full Code Here

Examples of org.apache.mahout.math.Vector.times()

      s1 = s1.plus(x);
    }
    if (s2 == null) {
      s2 = x.times(x);
    } else {
      s2 = s2.plus(x.times(x));
    }
  }

  @Override
  public void computeParameters() {
View Full Code Here

Examples of org.apache.mahout.math.VectorIterable.times()

    Vector previousVector = state.getBasisVector(i - 2);
    double beta = 0;
    Matrix triDiag = state.getDiagonalMatrix();
    while (i < desiredRank) {
      startTime(TimingSection.ITERATE);
      Vector nextVector = isSymmetric ? corpus.times(currentVector) : corpus.timesSquared(currentVector);
      log.info("{} passes through the corpus so far...", i);
      if(state.getScaleFactor() <= 0) {
        state.setScaleFactor(calculateScaleFactor(nextVector));
      }
      nextVector.assign(new Scale(1.0 / state.getScaleFactor()));
View Full Code Here

Examples of org.apache.mahout.math.hadoop.DistributedRowMatrix.times()

    Vector ranking = new DenseVector(numVertices).assign(1.0 / numVertices);
    Vector dampingVector = createDampingVector(numVertices, stayingProbability);

    /* power method: iterative transition-matrix times ranking-vector multiplication */
    while (numIterations-- > 0) {
      ranking = transitionMatrix.times(ranking).plus(dampingVector);
    }

    persistVector(getConf(), getTempPath(RANK_VECTOR), ranking);

    Job vertexWithPageRank = prepareJob(vertexIndexPath, getOutputPath(), SequenceFileInputFormat.class,
View Full Code Here

Examples of org.apache.mahout.matrix.Vector.times()

      s1 = point.clone();
    } else {
      s1 = s1.plus(wtPt);
    }
    if (s2 == null) {
      s2 = wtPt.times(wtPt);
    } else {
      s2 = s2.plus(wtPt.times(wtPt));
    }
  }
View Full Code Here

Examples of org.easetech.easytest.annotation.Repeat.times()

                    EasyFrameworkMethod parentMethod = null;
                    for (Map<String, Object> testData : methodData) {
                        if (runInContext) {
                            Repeat repeatTests = method.getAnnotation(Repeat.class);
                            if (repeatTests != null || getRepeatCount() != null) {
                                int repeatCount = getRepeatCount() != null ? getRepeatCount() : repeatTests.times();
                                for (int count = 0; count < repeatCount; count++) {
                                    TestResultBean testResultBean = new TestResultBean(methodWithData.getMethod()
                                        .getName(), new Date());
                                    testReportContainer.addTestResult(testResultBean);
                                    // Create a new FrameworkMethod for each set of test data
View Full Code Here

Examples of org.encog.ml.data.basic.BasicMLData.times()

    for (MLData out: outputs)
    {
      acc = (BasicMLData) acc.plus(out);
    }

    acc = (BasicMLData) acc.times(1.0 / outputs.size());
    return   acc;

  }

  @Override
View Full Code Here

Examples of org.fest.swing.core.MouseClickInfo.times()

    showWindow();
    ClickRecorder clickRecorder = ClickRecorder.attachTo(window.button);
    MouseClickInfo mouseClickInfo = leftButton().times(3);
    driver.click(window.button, mouseClickInfo);
    assertThat(clickRecorder).wasClickedWith(mouseClickInfo.button()).clickedAt(centerOf(window.button))
    .timesClicked(mouseClickInfo.times());
  }

  @Test
  public void should_throw_error_if_Component_is_disabled() {
    ClickRecorder clickRecorder = ClickRecorder.attachTo(window.button);
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.