Text this: Z-Distance Based IF-THEN Rules