Package stallone.api.doubles

Examples of stallone.api.doubles.IDoubleArray.columns()


        IDoubleArray P = prop.propagate(t);

        double res = 0;
        for (int i=0; i<P.rows(); i++)
        {
            for (int j=0; j<P.columns(); j++)
            {
                res += a.get(i) * pi.get(i) * P.get(i,j) * b.get(j);
            }
        }

View Full Code Here


            Tnew.set(i,i, Math.pow(Tnew.get(i,i), 1.0/timescaleFactor));
           
            // compute off-diagonal scaling factor
            double cOffdiag = (1.0 - Tnew.get(i,i)) / (alg.sum(Tnew.viewRow(i)) - Tnew.get(i,i));
           
            for (int j=0; j<Tnew.columns(); j++)
            {
                if (j != i)
                    Tnew.set(i, j, cOffdiag * Tnew.get(i,j));
            }
        }
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.