public boolean segmentActive(boolean timeT, boolean activeState) {
		int count = 0;
		if(activeState == true){
			for(Synapse s : synapses){
				if(s.isConnected() && s.destRegion.columns[s.destCoor[0]][s.destCoor[1]].cells[s.destCoor[2]].getActiveState(timeT)==true){
					count++;
				}
			}
			if(count>this.synapses.size()*ActivationThreshold)
				//this.sequenceSegment=true;
				return true;
			
		}else{
			for(Synapse s : synapses){
				if(s.isConnected() && s.destRegion.columns[s.destCoor[0]][s.destCoor[1]].cells[s.destCoor[2]].getLearnState(timeT)==true){
					count++;
				}
			}
			if(count>this.synapses.size()*ActivationThreshold)return true;
		}
		
		return false;
	}