private void getMinMax(int data[][], ChannelDefinition definitions[]) {
						
			for(int i = 0; i < data.length; i++) {
				double min = 0;
				double max = 0;
				double scalingValue = definitions[i].getSensitity() * definitions[i].getSensitivityCorrection();
				for(int j = 0; j < data[i].length; j++) {
					if(min > data[i][j] * scalingValue)
					{
						min = data[i][j] * scalingValue;
					}
					if(max < data[i][j] * scalingValue)
					{
						max = data[i][j] * scalingValue;
					}
				}
				definitions[i].setMaximum(max);
				definitions[i].setMinimum(min);
			}
			
			double max = Double.MIN_VALUE;
			double min = Double.MAX_VALUE;
			for(int i = 0; i < definitions.length; i++) {
				if(min > definitions[i].getMinimum()){
					min = definitions[i].getMinimum();
				}
				if(max < definitions[i].getMaximum()) {
					max = definitions[i].getMaximum();
				}
			}
			
			double minmax = Math.max(Math.abs(max), Math.abs(min));
			int mv_cells = (int) (minmax / 1000);
			if((int) minmax % 1000 != 0) {
				++mv_cells;
			}
			mv_cells *= 2;			
			this.mv_cells = mv_cells;
	}