Package ch.akuhn.matrix

Examples of ch.akuhn.matrix.DenseMatrix


        for (int i = 0; i < x.length; i++) {
            for (int j = 0; j < x.length; j++) {
                dist[i][j] = dist(i,j);
            }
        }
        return new DenseMatrix(dist);
    }
View Full Code Here


        if (fListener != null) fListener.update(mds);
        return mds.points();
    }

    public MultidimensionalScaling similarities(double[][] matrix) {
      DenseMatrix d = SymmetricMatrix.fromSquare(matrix);
        d.apply(Function.COSINE_TO_DISSIMILARITY);
        fdistances = d;
        return this;
    }
View Full Code Here

                for (int j = 0; j < path.length; j++) {
                    path[i][j] = Math.min(path[i][j], path_i_k + path[k][j]);
                }
            }
        }
        return new DenseMatrix(path);
    }
View Full Code Here

TOP

Related Classes of ch.akuhn.matrix.DenseMatrix

Copyright © 2018 www.massapicom. 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.