Combinations of two features a step made possible or impossible (and the tests they touch)
Source:R/evolution.R
vp_interaction_changes.RdThe combinations of two features that a step made possible or impossible.
Among the features that can vary in both versions, a combination of two
features is possible exactly when no link forbids it (property P3), so a
gained link forbids one combination and a lost link allows one: a lost "a
requires b" allows "a without b", a lost conflict allows "a and b", a lost
at-least-one line allows "neither". With a sample of configurations (the
tests of the old version), in_sample counts the configurations that have
the combination: a test with a combination now impossible is no longer valid;
a combination now possible with in_sample 0 is a new interaction that no test
exercises.
Arguments
- old
The older version of a model (from
vp_generate()orvp_read()).- new
The newer version of the same model.
- sample
Optional: a data frame with one 0/1 (or FALSE/TRUE) column per feature, one row per configuration.
Value
A tibble with feature_1, value_1, feature_2, value_2 (TRUE =
selected), change ("now possible" or "now impossible"), graph (the link
that changed) and, with a sample, in_sample.
See also
Other evolution:
vp_attachment(),
vp_auc(),
vp_changed_links(),
vp_co_change(),
vp_community_history(),
vp_compare(),
vp_disruptions(),
vp_edit_type(),
vp_eras(),
vp_feature_churn(),
vp_feature_states(),
vp_flip_flops(),
vp_forecast_size(),
vp_growth(),
vp_history_apply(),
vp_history_changes(),
vp_history_sizes(),
vp_hub_stability(),
vp_life_cycle(),
vp_link_lifetime(),
vp_prediction_table(),
vp_rename(),
vp_rename_candidates(),
vp_ripple(),
vp_state_moves(),
vp_top_movers(),
vp_version_distance()
Examples
old <- vp_generate(vp_example("miband3_planned.uvl"), or_graph = TRUE)
new <- vp_generate(vp_example("miband3_realized.uvl"), or_graph = TRUE)
vp_interaction_changes(old, new)
#> # A tibble: 21 × 6
#> feature_1 value_1 feature_2 value_2 change graph
#> <chr> <lgl> <chr> <lgl> <chr> <chr>
#> 1 MovementFilter TRUE Screen FALSE now impossible requires
#> 2 MovementFilter TRUE OLED FALSE now impossible requires
#> 3 MovementFilter TRUE CapacityButton FALSE now impossible requires
#> 4 MovementFilter TRUE BLEv40 FALSE now impossible requires
#> 5 BLEv40 TRUE Screen FALSE now impossible requires
#> 6 BLEv40 TRUE OLED FALSE now impossible requires
#> 7 BLEv40 TRUE CapacityButton FALSE now impossible requires
#> 8 BLEv42 TRUE Screen FALSE now impossible requires
#> 9 BLEv42 TRUE OLED FALSE now impossible requires
#> 10 BLEv42 TRUE CapacityButton FALSE now impossible requires
#> # ℹ 11 more rows