Diagnosis with Continuous and Discrete Causal Relationships: Knowledge Representation