private double[] computeTransform() {
		double[] frequencyData = null;
		FastFourierTransformer transformer = new FastFourierTransformer(
				DftNormalization.STANDARD);
		try {
			Complex[] complx = transformer.transform(dataToTransform,
					TransformType.FORWARD);
			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);
					long frequency = (long) (2 * Math.PI * i / (power2Size * 1f));
					double magnitude = frequencyData[i];
					frequencies.put(magnitude, frequency);
					// System.out.print(", " + (2 * Math.PI * i / (power2Size *
					// 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);
		}
		return frequencyData;
	}