private int[] sevenSeg(double[] signalFFT, double Fs){
		double areaTotal = ArithmanticUtil.sum(signalFFT) / Fs;
		double segmentSize = areaTotal / 7;

		double[] area = new double[7];
		int[] interval = new int[8];

		interval[0] = 0;

		for(int i = 1; i < interval.length; i++)
			interval[i] = signalFFT.length;

		double offset = segmentSize / 1000;

		int limit = 150;

		for(int k = 0; k < area.length - 1; k++){
			int iteration  = 0;

			while(area[k] < segmentSize - offset || area[k] > segmentSize + offset){
				if(iteration < limit){
					iteration++;

					if(area[k] < segmentSize - offset){
						interval[k + 1] = (int)Math.floor((interval[k+2] - interval[k+1])/2 + interval[k+1]);
						area[k] = ArithmanticUtil.sum(signalFFT, interval[k], interval[k+1]) / Fs;
					}
					else if(area[k] > segmentSize + offset){
						interval[k+2] = interval[k+1];
						interval[k+1] = (int) Math.floor(interval[k+1] - (interval[k+1] - interval[k])/2);
						area[k] = ArithmanticUtil.sum(signalFFT, interval[k], interval[k+1]) / Fs;
					}
				}
				else{
					break;
				}
			}
		}
		
		interval[7] = signalFFT.length;
		//area[7] = ArithmanticUtil.sum(signalFFT, interval[7], interval[8]) / Fs;
		return interval;
	}