src/file_handling/CellDataGenerator.java
private String[] createNamesArray(Map<String, Double> map){
		String[] names = new String[100];
		int start = 0;
		int end;
		
		for(String cell: map.keySet()){ //Fills an array with Cell types according to their probability
			end = (int)(Math.round(start + (100 * map.get(cell)))); //Sets probability to an integer between 1 and 100
			for(int i = start; i < end; i++){
				names[i] = cell;
			}
			start = end;
		}
		
		for(int i = start; i < 100; i++){ //Fill remaining indices with an empty String
			names[i] = "";
		}
		
		return names;
	}
/**
	 * Creates and returns a String[] holding the names of 
	 * Cell types according to the probability that each occurs.
	 * 
	 * @param map - Map holding the probabilities of each Cell
	 * @return
	 */
Creates and returns a String[] holding the names of
Cell types according to the probability that each occurs.

@param map - Map holding the probabilities of each Cell
@return
Creates and returns a String [] holding the names of Cell types according to the probability that each occurs . @param map - Map holding the probabilities of each Cell @return
private String[] createNamesArray(Map<String, Double> map){
		String[] names = new String[100];
		int start = 0;
		int end;
		for(String cell: map.keySet()){ 
			end = (int)(Math.round(start + (100 * map.get(cell)))); 
			for(int i = start; i < end; i++){
				names[i] = cell;
			}
			start = end;
		}
		for(int i = start; i < 100; i++){ 
			names[i] = "";
		}
		return names;
	}
private String [ ] createNamesArray ( Map < String , Double > map ) { String [ ] names = new String [ 100 ] ; int start = 0 ; int end ; for ( String cell : map . keySet ( ) ) { end = ( int ) ( Math . round ( start + ( 100 * map . get ( cell ) ) ) ) ; for ( int i = start ; i < end ; i ++ ) { names [ i ] = cell ; } start = end ; } for ( int i = start ; i < 100 ; i ++ ) { names [ i ] = "" ; } return names ; }
Creates and returns a String[] holding the names of
 Cell types according to the probability that each occurs.
Creates and returns a String [] holding the names of Cell types according to the probability that each occurs .
//Fills an array with Cell types according to their probability //Sets probability to an integer between 1 and 100 //Fill remaining indices with an empty String