public static void main(String[] args) {
		double[] fs = { 0 * Math.PI / 180, 1 * Math.PI / 180,
				2 * Math.PI / 180, 3 * Math.PI / 180, 4 * Math.PI / 180,
				5 * Math.PI / 180, 6 * Math.PI / 180, 7 * Math.PI / 180, };
		System.out.println(Arrays.toString(fs));
		// frequency,magnitude,phase
		double[] timeData = generateWave(0.0001,//
				// fs[0], 150, 0,//
				fs[1], 150, 0,//
				fs[2], 150, 0,//
				fs[3], 150, 0,//
				fs[4], 150, 0,//
				fs[5], 150, 0,//
				fs[6], 150, 0,//
				fs[7], 150, 0//
		);

		WaveDisplay time = new WaveDisplay(timeData);

		FastFourierTransformer transformer = new FastFourierTransformer(
				DftNormalization.STANDARD);
		try {
			Complex[] complx = transformer.transform(timeData,
					TransformType.FORWARD);
			double[] frequencyData = new double[complx.length];

			System.out.print("--->" );
			for (int i = 0; i < complx.length/2; i++) {
				double rr = (complx[i].getReal());
				double ri = (complx[i].getImaginary());

				frequencyData[i] = Math.sqrt((rr * rr) + (ri * ri));
				if (isLocalMax(frequencyData, i - 1)) {
				//	System.out.println("----->" + i);
					System.out.print(", "
							+ (2 * Math.PI * i / (TWO_POWER * 1f)));
				}
				// int freqCoeff = (int) (TWO_POWER * frequencyData[i] / i);

			}

			WaveDisplay frequency = new WaveDisplay(frequencyData, 0.02, 300);
			// System.out.println(Arrays.toString(frequencyData));
		} catch (IllegalArgumentException e) {
			System.out.println(e);
		}

	}