View Javadoc

1   /*
2    * @(#) C3TaskA.java Sep 24, 2004
3    * 
4    * Copyright (c) 2003 Delft University of Technology Jaffalaan 5, 2628 BX Delft,
5    * the Netherlands All rights reserved.
6    * 
7    * This software is proprietary information of Delft University of Technology
8    * The code is published under the General Public License
9    */
10  package nl.tudelft.simulation.sne.c3;
11  
12  import cern.colt.matrix.linalg.EigenvalueDecomposition;
13  
14  /***
15   * <p>
16   * (c) copyright 2003 <a href="http://www.simulation.tudelft.nl">Delft
17   * University of Technology </a>, the Netherlands. <br>
18   * See for project information <a
19   * href="http://www.simulation.tudelft.nl">www.simulation.tudelft.nl </a> <br>
20   * License of use: <a href="http://www.gnu.org/copyleft/gpl.html">General Public
21   * License (GPL) </a>, no warranty <br>
22   * 
23   * @author <a href="http://www.tbm.tudelft.nl/webstaf/peterja/index.htm">Peter
24   *         Jacobs </a>
25   * @version 1.2 Sep 24, 2004
26   * @since 1.4
27   */
28  public class C3TaskA
29  {
30  	/***
31  	 * executes task A as specifies in C3
32  	 * 
33  	 * @param args the command line arguments
34  	 */
35  	public static void main(final String[] args)
36  	{
37  		Amplifier amplifier = new Amplifier(null, 1E-15);
38  
39  		//First we take the OFF-period. As an example we say t=5E-6
40  		EigenvalueDecomposition eigenValues = amplifier
41  				.getEigenValues(5.0 * Math.pow(10, -6));
42  		System.out.println(eigenValues.toString());
43  
44  		//Now we take the ON-period. As an example we say t=10E-6
45  		eigenValues = amplifier.getEigenValues(0);
46  		System.out.println(eigenValues.toString());
47  
48  	}
49  }