check if discretized var is in data