Skip to contents

Growth laws: how fast each kind of link grows with the number of features. A straight line is fitted to log(links) against log(features); its slope is 1 when links grow in step with features, above 1 when faster. Versions with no features, or with none of the links of a kind, are left out of that kind (log(0) does not exist).

Usage

vp_growth(history)

Arguments

history

A history: the versions of a model, from vp_read_history() or vp_history(), oldest first.

Value

A tibble with links (the kind), slope and r_squared (how well a straight line fits; 1 is perfect); both NA for a kind with fewer than three versions left.

Examples

gens <- c("miband1", "miband2", "miband3", "miband4", "miband6")
history <- vp_history(
  vp_example(paste0(gens, "_realized.uvl")),
  versions = gens,
  or_graph = TRUE
)
vp_growth(history)
#> # A tibble: 4 × 3
#>   links               slope r_squared
#>   <chr>               <dbl>     <dbl>
#> 1 requires            2.64      0.921
#> 2 excludes            3.23      0.997
#> 3 skeleton            1.12      0.956
#> 4 primitive_conflicts 0.714     0.758