Examples of mulAssign()


Examples of org.jquantlib.math.matrixutilities.Array.mulAssign()

  public double computeSimplexSize(final List<Array> vertices) {
    final Array center = new Array(vertices.get(0).size());
    for (int i = 0; i < vertices.size(); ++i) {
            center.addAssign(vertices.get(i));
        }
    center.mulAssign(1.0 / vertices.size());
    double result = 0;
    for (int i = 0; i < vertices.size(); ++i) {
      final Array temp = vertices.get(i).sub(center);
      result += Math.sqrt(temp.dotProduct(temp));
    }
View Full Code Here

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

    final /*@Real*/ double inv = 1.0/sampleWeight;

    final Matrix result = quadraticSum.mul(inv);
    result.subAssign(m.outerProduct(m));

    result.mulAssign( sampleNumber/(sampleNumber-1.0) );
    return result;
  }

  /**
   * returns the correlation Matrix
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.