Computer implementation of a medical diagnosis problem by pattern classification