Constant dmntk_examples::EX_0040

source ·
pub const EX_0040: &str = r#"
  ┌───────────────────────┬─────────────────────╥───────────────┬──────────┬───────────────┐
  │ Applicant age         │ <25,[25..60],>60    ║     <25       │ [25..60] │      >60      │
  ├───────────────────────┼─────────────────────╫──────┬────────┼──────────┼────────┬──────┤
  │ Medical history       │   "good","bad"      ║"good"│ "bad"  │     -    │ "good" │"bad" │
  ╞═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
  │ Applicant risk rating │"Low","Medium","High"║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
  ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
  │ Special Discount      │     0, 5, 10        ║  10  │    5   │     5    │    5   │  0   │
  ╞═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
  │ Additional acceptance │                     ║ No   │   No   │    No    │   No   │ Yes  │
  ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
  │ Reference             │                     ║ Rf 0 │  Rf 1  │   Rf 2   │  Rf 3  │ Rf 4 │
  ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
  │           U           │                     ║  1   │    2   │     3    │   4    │   5  │
  └───────────────────────┴─────────────────────╨──────┴────────┴──────────┴────────┴──────┘
% { Applicant age: 20, Medical history: "good" }, {Applicant risk rating: "Low",    Special Discount: 10}
% { Applicant age: 24, Medical history: "bad"  }, {Applicant risk rating: "Medium", Special Discount: 5}
% { Applicant age: 25, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
% { Applicant age: 25, Medical history: "bad"  }, {Applicant risk rating: "Medium", Special Discount: 5}
% { Applicant age: 60, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
% { Applicant age: 60, Medical history: "bad"  }, {Applicant risk rating: "Medium", Special Discount: 5}
% { Applicant age: 61, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
% { Applicant age: 61, Medical history: "bad"  }, {Applicant risk rating: "High",   Special Discount: 0}
% { Applicant age: 61, Medical history: "well" }, null
"#;
Expand description

Vertical decision table,

          ORIENTATION: **vertical**
INFORMATION ITEM NAME: no
         OUTPUT-LABEL: no
  INPUT-OUTPUT-VALUES: yes
               OUTPUT: multiple
          ANNOTATIONS: yes