Examples of transpose()


Examples of org.jamesii.core.math.Matrix.transpose()

  public static Pair<Double, Double> calcMeanAndVariance(double[] weights,
      Double[] avgPerf, Double[][] covMat) {
    Matrix w = new Matrix(weights);
    Matrix s = new Matrix(covMat);
    Matrix r = new Matrix(avgPerf);
    return new Pair<>(r.transpose().mult(w).getElement(0, 0), w
        .transpose().mult(s.mult(w)).getElement(0, 0));
  }

  /**
   * Gets the avg and cov from performances.
View Full Code Here

Examples of org.jblas.DoubleMatrix.transpose()

        DoubleMatrix delta_hbias = L_hbias.columnSums().divi(nbr_sample);
        DoubleMatrix delta_vbias = L_vbias.columnSums().divi(nbr_sample);
       
        curr_w.addi(delta_w.muli(config.getLearningRate()));
        curr_hbias.addi(delta_hbias.transpose().muli(config.getLearningRate()));
        curr_vbias.addi(delta_vbias.transpose().muli(config.getLearningRate()));
   
  }

  @Override
  protected void gradientUpdateCG(SGDTrainConfig config, DoubleMatrix x_samples, DoubleMatrix y_samples, SGDParam curr_param) {
View Full Code Here

Examples of org.jquantlib.math.matrixutilities.Matrix.transpose()

        return diffusion(t, new Array());
    }

    public Matrix covariance(/* @Time */final double t, final Array x) {
        final Matrix sigma = this.diffusion(t, x);
        return sigma.mul(sigma.transpose());
    }

    public Matrix covariance(/* @Time */final double t) {
        return diffusion(t, new Array());
    }
View Full Code Here

Examples of org.jquantlib.math.matrixutilities.Matrix.transpose()

    }

    @Override
    public Matrix covariance(final /*@Time*/ double t0, final Array x0, final /*@Time*/ double dt)  {
        final Matrix tmp = stdDeviation(t0, x0, dt);
        return tmp.mul(tmp.transpose());
    }

    @Override
    public Array evolve(final /*@Time*/ double t0, final Array x0, final /*@Time*/double dt, final Array dw)  {

View Full Code Here

Examples of org.jquantlib.math.matrixutilities.Matrix.transpose()

        return diffusion(t, new Array(0)); //ZH:QL097 using Null<Array>
    }

    public Matrix covariance(/* @Time */final double t, final Array x) {
        final Matrix sigma = this.diffusion(t, x);
        return sigma.mul(sigma.transpose());
    }

    public Matrix covariance(/* @Time */final double t) {
        return diffusion(t, new Array(0)); //ZH:QL097 using Null<Array> which is new Array(), see Null.hpp
    }
View Full Code Here

Examples of org.jquantlib.math.matrixutilities.Matrix.transpose()

    @Override
    public Matrix covarianceDiscretization(
                final StochasticProcess sp,
                /* @Time */final double t0, /* @Real */ final Array x0, /* @Time */final double dt) {
        final Matrix sigma = sp.diffusion(t0, x0);
        return sigma.mul(sigma.transpose()).mulAssign(dt);
    }


    //
    // Implements Discretization1D
View Full Code Here

Examples of org.jquantlib.math.matrixutilities.Matrix.transpose()

    }

    @Override
    public Matrix covariance(final /*@Time*/ double t0, final Array x0, final /*@Time*/ double dt)  {
        final Matrix tmp = stdDeviation(t0, x0, dt);
        return tmp.mul(tmp.transpose());
    }

    @Override
    public Array evolve(final /*@Time*/ double t0, final Array x0, final /*@Time*/double dt, final Array dw)  {

View Full Code Here

Examples of pspdash.data.ResultSet.transpose()

        if (parameters.get("h0") == null) parameters.put("h0", "Project/Task");
        ResultSet tableData =
            ResultSet.get(getDataRepository(), parameters, getPrefix(),
                          getPSPProperties());
        if (parameters.get("transpose") != null)
            tableData = tableData.transpose();

        // print the table
        int firstRow = (skipColHdr ? 1 : 0);
        int firstCol = (skipRowHdr ? 1 : 0);
        for (int row=firstRow;  row <= tableData.numRows();  row++) {
View Full Code Here

Examples of uk.co.cwspencer.gdb.messages.annotations.GdbMiDoneEvent.transpose()

                            }

                            if (doneEventAnnotation.command().equals(commandType)) {
                                // Found a match; check if we need to transpose a specific result
                                // onto this class
                                if (!doneEventAnnotation.transpose().isEmpty()) {
                                    List<GdbMiResult> transposedResults = transposeDoneEvent(record,
                                            doneEventAnnotation);
                                    if (transposedResults == null) {
                                        m_log.warn("Class " + doneEventClass.getName() + " is " +
                                                "trying to transpose '" +
View Full Code Here

Examples of weka.core.matrix.Matrix.transpose()

   
    Matrix thisPoint = new Matrix(1, 2);
    thisPoint.set(0, 0, x);
    thisPoint.set(0, 1, m_ConstDelta);
    return Math.exp(-thisPoint.times(m_CovarianceInverse).
        times(thisPoint.transpose()).get(0, 0)
        / 2) / (Math.sqrt(TWO_PI) * m_Determinant);
  }
 
  /**
   * Constructor
 
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.