Skip to contents

How much of the model the graphs leave out, as Strong4VM measured it with the model counter GANAK (run with vp_generate(representativeness = TRUE)). The graphs allow some configurations of the features that are not valid, because they hold no rule over three or more features: vm_configurations is the number of valid configurations of the variability model, graph_configurations the number of configurations of the same features that break no link of the graphs, and share = vm_configurations / graph_configurations (1: the graphs say everything that the model says about its features).

Usage

vp_representativeness(model)

Arguments

model

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

Value

One row: vm_configurations, graph_configurations (numbers; very large ones are approximate, since R keeps about 15 digits; the exact values are in __summary.json), share, left_out (1 - share) and note (empty, or why the values are NA).

Examples

band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_representativeness(band) # NA: the run did not count with GANAK
#> # A tibble: 1 × 5
#>   vm_configurations graph_configurations share left_out note                    
#>               <dbl>                <dbl> <dbl>    <dbl> <chr>                   
#> 1                NA                   NA    NA       NA not measured: run vp_ge…
# \donttest{
if (nzchar(Sys.which("ganak"))) {
  counted <- vp_generate(
    vp_example("miband3.uvl"),
    representativeness = TRUE
  )
  vp_representativeness(counted)
}
# }