package svdtmp; /** *
Title:
* *Description:
* *Copyright: Copyright (c) 2009
* *Company:
* * @author not attributable * @version 1.0 */ import java.util.Observable; import Jampack.*; public class SVDMVCModel extends Observable { private double[] fidRe, fidIm; private int n; //ligne private int m; //colonne private int maxNbComplex = n*m; public SVDMVCModel(){ } //---------------------// // Setters and getters // //---------------------// public int getmvalue() {return m;} public int setmvalue(int x) {return m = x;} public int getnvalue() {return n;} public int setnvalue(int x) {return n = x;} public int getmaxNbComplex() {return maxNbComplex;} public int setmaxNbComplex(int x) {return maxNbComplex = x;} public double[] getfidRe() {return fidRe;} public double[] setfidRe(double[] x) {return fidRe = x;} public double[] getfidIm() {return fidIm;} public double[] setfidIm(double[] x) {return fidIm = x;} public void essaisetBaseIndex() throws JampackException { Parameters.setBaseIndex(0); Zsvd.MAXITER = 10; return; } public double[] essaiZsvd() throws JampackException { int p = 0; Z ary[][] = new Z[n][m]; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { ary[i][j] = new Z(fidRe[p], fidIm[p]); p++; } } Zmat X = new Zmat(ary); Zsvd SVD = new Zsvd(X); double[] eigenvaluereal = new double[m]; for (int i = 0; i < m; i++) { eigenvaluereal[i] = SVD.S.get(i).re; } return eigenvaluereal; }//end of essaiZsvd }//end of class SVDmodel