Description Usage Arguments Value Examples
View source: R/containment-and-band-creation.R
create the delta ball associated with points
| 1 2 3 4 5 | create_delta_ball_structure(
  data_points,
  data_columns = NULL,
  .lower_simplex_project = TRUE
)
 | 
| data_points | points to create the delta ball structure from | 
| data_columns | columns of data.frame that relate to the point's
coordinates in euclidean space. This should be at least 3 columns (else it
doesn't really make sense to use this function). The input should look like
something like  | 
| .lower_simplex_project | boolean, if data points should be projected to a simplex and then to the lower dimensional simplex (for this package, this should always be done) | 
a delta_ball_structure object, that is a data frame similar to
data_points (but with out data_columns columns) and distinct points.
This object also has an delta attribute which contains the delta
defining the delta ball.
| 1 2 3 4 5 6 7 8 | library(dplyr)
delta_ball_cb <- EpiCompare::pomp_df %>%
  filter(.id <= 10) %>%
  arrange(time) %>% # just to be safe
  select(-time, -H, -cases) %>%
  group_by(.id) %>%
  grab_top_depth_filaments(conf_level = .9) %>%
  create_delta_ball_structure() #data_columns = c(S,I,R)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.