Examples of eig()


Examples of Jama.Matrix.eig()

        double[] m = {xx, xy, xz, xy, yy, yz, xz, yz, zz};

        Matrix matrix = new Matrix(m, 3);

        EigenvalueDecomposition ed = matrix.eig();

        double x1 = ed.getV().get(0, 2);
        double y1 = ed.getV().get(1, 2);
        double z1 = ed.getV().get(2, 2);
View Full Code Here

Examples of Jama.Matrix.eig()

    time = System.currentTimeMillis();

    //laplacianise(matrix);
   
   
    EigenvalueDecomposition evd = matrix.eig();
    System.out.println("evd in: " + (System.currentTimeMillis() - time));
    double [] evr = evd.getRealEigenvalues();   
    Matrix evm = evd.getV();

    int evnum = evr.length;
View Full Code Here

Examples of Jama.Matrix.eig()

    double maxTimeConstant = 10000; //big enough to cover plasticity?
    double minTimeConstant = .0001; //small enough to cover channel kinetics (including auditory neurons)
   
    float[][] A = system.getA(0f);
    Matrix m = new Matrix(MU.convert(A));
    double[] eigenvalues = m.eig().getRealEigenvalues();
    double[] eigRange = range(eigenvalues, minTimeConstant, maxTimeConstant);
   
    //We will give an approximation of an impulse, then let the system decay for 10 X the longest time constant, 
    //then step in increments of 1/2 X the longest time constant until there is little change in the integral
    Integrator integrator = new EulerIntegrator(-1f / (10f * (float) eigRange[0]));
View Full Code Here

Examples of Jama.Matrix.eig()

        }

        LTISystem dynamics = CanonicalModel.getRealization(tfNumerator, tfDenominator, passthrough);

        Matrix A = new Matrix(MU.convert(dynamics.getA(0f)));
        double[] eigenvalues = A.eig().getRealEigenvalues();
        double fastest = Math.abs(eigenvalues[0]);
        for (int i = 1; i < eigenvalues.length; i++) {
            if (Math.abs(eigenvalues[i]) > fastest) {
                fastest = Math.abs(eigenvalues[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.