Integer value = (Integer) histogram.get(new Integer(element)); if (value == null) value = new Integer(0); return new SimpleMembership(value.intValue() * 1.0 / max);
int n = smoother.getRange(); double avg = 0.0; for (int i = -n; i <= n; i++) { int index = smoother.getIndex(element, i); if (index > 0) { Integer value = (Integer) histogram.get(new Integer(element+i)); if (value == null) value = new Integer(0); avg += smoother.getIncrement(element, i, (value.intValue() / max)); } } return new SimpleMembership((avg/(2*n+1)));
	public Membership getMembership(int element) {		Integer value = (Integer) histogram.get(new Integer(element));		if (value == null)			value = new Integer(0);		return new SimpleMembership(value.intValue() * 1.0 / max);	}