public BarHistory(int cycle, Population pop) {
		//bars from 0-100 for each integer
		LinkedList<Sneetch> popu = pop.getPopulation();
		plainFreq = new Integer[101];
		starFreq = new Integer[101];
		for(int i=0;i<101;i++) {
			plainFreq[i]=0;
			starFreq[i]=0;
		}
		
		for(Sneetch sne : popu) {
			LinkedList<Word>[] lex = sne.getLex().getLexCate();
			for(int i=0;i<5;i++) {
				for(Word w : lex[i]) {
					double[] sound = w.getSound();
					for(int j=0;j<3;j++) {
						if(sne.getGroup().getID()==Group.gPlain) {
							plainFreq[new Double(sound[j]).intValue()]++;
						}
						else if(sne.getGroup().getID()==Group.gStar) {
							starFreq[new Double(sound[j]).intValue()]++;
						}
					}
				}
			}
		}
	}