Skip to contents

The odd ones out: pairs of features that are very alike in their conflicts but differ in what they require. Such a difference may be intended, or a sign of a missing rule: a question for whoever maintains the model.

Usage

vp_odd_ones(model, threshold = 0.6)

Arguments

model

A model, from vp_generate() or vp_read(), in its complete or its minimal form.

threshold

How alike the conflicts must be (Jaccard, 0.6 by default).

Value

A tibble with feature_1, feature_2, conflict_similarity, requires_similarity and differs_in.

Examples

band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_odd_ones(band, threshold = 0.5)
#> # A tibble: 4 × 5
#>   feature_1         feature_2 conflict_similarity requires_similarity differs_in
#>   <chr>             <chr>                   <dbl>               <dbl> <chr>     
#> 1 ContactlessPayme… BLEv42                      1               0.667 Contactle…
#> 2 BLEv42            NFC                         1               0.667 NFC alone…
#> 3 TouchScreen       Contactl…                   1               0.833 Contactle…
#> 4 TouchScreen       NFC                         1               0.833 NFC alone…