Examples of Matrix


Examples of com.anotherbigidea.flash.structs.Matrix

            boolean isMove            = in.readUBits(1) != 0;

            int depth = in.readUI16();

            int            charId    = hasCharacter      ? in.readUI16()            : 0;
            Matrix         matrix    = hasMatrix         ? new Matrix( in )         : null;
            AlphaTransform cxform    = hasColorTransform ? new AlphaTransform( in ) : null;
            int            ratio     = hasRatio          ? in.readUI16()            : -1;       
            String         name      = hasName           ? in.readString(mStringEncoding: null
            int            clipDepth = hasClipDepth      ? in.readUI16()            : 0;
View Full Code Here

Examples of com.dianping.cat.consumer.matrix.model.entity.Matrix

      List<Matrix> matrixList = new ArrayList<Matrix>(matrix);
      Collections.sort(matrixList, new MeatricCompartor());

      matrixs.clear();
      for (int i = 0; i < m_maxSize; i++) {
        Matrix temp = matrixList.get(i);
        matrixs.put(temp.getName(), temp);
      }

      Matrix value = new Matrix(OTHERS);
      for (int i = m_maxSize; i < size; i++) {
        Matrix item = matrixList.get(i);

        value.setType(item.getType());
        value.setCount(item.getCount() + value.getCount());
      }
      matrixs.put(OTHERS, value);
    }

    super.visitMatrixReport(matrixReport);
View Full Code Here

Examples of com.emitrom.lienzo.client.core.util.Matrix

        Point2D p3_ = target.getPoint(2);

        double[][] eq = { { p1.getX(), p1.getY(), 1, 0, 0, 0 }, { 0, 0, 0, p1.getX(), p1.getY(), 1 }, { p2.getX(), p2.getY(), 1, 0, 0, 0 }, { 0, 0, 0, p2.getX(), p2.getY(), 1 }, { p3.getX(), p3.getY(), 1, 0, 0, 0 }, { 0, 0, 0, p3.getX(), p3.getY(), 1 }, };

        double[][] s = { { p1_.getX(), p1_.getY(), p2_.getX(), p2_.getY(), p3_.getX(), p3_.getY() } };
        Matrix m = new Matrix(eq);
        Matrix rhs = new Matrix(s).transpose();
        Matrix T = m.solve(rhs);

        double[][] d = T.getData();
        return new Transform(d[0][0], d[3][0], d[1][0], d[4][0], d[2][0], d[5][0]);
    }
View Full Code Here

Examples of com.github.axet.starjeweled.common.Matrix

        desktopRegion = capture.capture(rectangle);
        frame.board.setImage(desktopRegion);
        Recognition rr = new Recognition(desktopRegion);
        RecognitionTable rtable = new RecognitionTable(rr, colorTable);

        Matrix m = new Matrix(rtable);

        frame.analyse.draw(colorTable, m);

        SimpleAI a = new SimpleAI(m);
        ArrayList<MoveMatrix> ppp = a.getMove();
View Full Code Here

Examples of com.github.neuralnetworks.tensor.Matrix

      this.sharedWeights = new float[0];
  }
    }

    public FullyConnected fullyConnected(Layer inputLayer, Layer outputLayer, int inputUnitCount, int outputUnitCount) {
  Matrix weights = null;
  if (useSharedWeights()) {
      int l = sharedWeights.length;
      sharedWeights = Arrays.copyOf(sharedWeights, l + inputUnitCount * outputUnitCount);
      updateSharedWeights();
      weights = TensorFactory.tensor(sharedWeights, l, outputUnitCount, inputUnitCount);
View Full Code Here

Examples of com.github.neuralnetworks.util.Matrix

    @Test
    public void testWeightedSumFF() {
  Environment.getInstance().setExecutionMode(EXECUTION_MODE.GPU);

  Matrix o = new Matrix(2, 2);

  Layer il1 = new Layer();
  Layer ol = new Layer();
  Layer il2 = new Layer();
  FullyConnected c1 = new FullyConnected(il1, ol, 3, 2);
  FullyConnected c2 = new FullyConnected(il2, ol, 3, 2);
  FullyConnected bc = new FullyConnected(new Layer(), ol, 1, 2);

  Matrix cg = c1.getConnectionGraph();
  cg.set(1, 0, 0);
  cg.set(2, 0, 1);
  cg.set(3, 0, 2);
  cg.set(4, 1, 0);
  cg.set(5, 1, 1);
  cg.set(6, 1, 2);

  cg = c2.getConnectionGraph();
  cg.set(1, 0, 0);
  cg.set(2, 0, 1);
  cg.set(3, 0, 2);
  cg.set(4, 1, 0);
  cg.set(5, 1, 1);
  cg.set(6, 1, 2);

  Matrix i1 = new Matrix(3, 2);
  i1.set(1, 0, 0);
  i1.set(2, 1, 0);
  i1.set(3, 2, 0);
  i1.set(4, 0, 1);
  i1.set(5, 1, 1);
  i1.set(6, 2, 1);

  Matrix i2 = new Matrix(3, 2);
  i2.set(1, 0, 0);
  i2.set(2, 1, 0);
  i2.set(3, 2, 0);
  i2.set(4, 0, 1);
  i2.set(5, 1, 1);
  i2.set(6, 2, 1);

  Matrix bcg = bc.getConnectionGraph();
  bcg.set(0.1f, 0, 0);
  bcg.set(0.2f, 1, 0);

  ConnectionCalculatorFullyConnected aws = new AparapiWeightedSumConnectionCalculator();

  List<Connections> connections = new ArrayList<>();
  connections.add(c1);
View Full Code Here

Examples of com.numb3r3.common.math.Matrix

        double part1 = Math.exp(-0.5 * k * Math.log(2 * Math.PI));

        double part2 = Math.pow(det, -0.5);

        Matrix dev = value.sub(mu);

        double part3 = Math.exp(-0.5
                * (dev.transpose().product(cox.inverse())).dot(dev));
        return part1 * part2 * part3;

    }
View Full Code Here

Examples of com.rapidminer.data.Matrix

    protected void InitModel()
    {
      super.InitModel();

      // init factor matrices
      user_factors = new Matrix(GetRatings().GetMaxUserID() + 1, NumFactors);
      item_factors = new Matrix(GetRatings().GetMaxItemID() + 1, NumFactors);
      MatrixUtils.RowInitNormal(user_factors, InitMean, InitStdev);
      MatrixUtils.RowInitNormal(item_factors, InitMean, InitStdev)
    }
View Full Code Here

Examples of com.sencha.gxt.chart.client.draw.Matrix

  public Matrix transformMatrix() {
    if (rotation == null && scaling == null && translation == null) {
      return null;
    }
    if (isTransformDirty()) {
      matrix = new Matrix();
      if (rotation != null) {
        matrix.rotate(rotation.getDegrees(), rotation.getX(), rotation.getY());
      }
      if (scaling != null) {
        matrix.scale(scaling.getX(), scaling.getY(), scaling.getCenterX(), scaling.getCenterY());
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.math.linearalgebra.Matrix

  @Test
  public void testIdentityTransform() {
    int testdim = 5;
    AffineTransformation t = new AffineTransformation(testdim);
    assertTrue(t.getDimensionality() == testdim);
    Matrix tm = t.getTransformation();
    assertEquals("initial transformation matrix should be unity", tm, Matrix.unitMatrix(testdim + 1));

    // test application to a vector
    double[] dv = new double[testdim];
    for(int i = 0; i < testdim; i++) {
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.