Description Usage Arguments Value
View source: R/runtime_comparison.r
Compare method runtimes across various input sizes
1 2 3 4 5 6 7 8 9 | compare_runtimes(
sample.sizes,
number.sites,
methods,
method.names,
number.replications,
number.cell.types,
random_seed
)
|
sample.sizes |
Numeric vector for sample sizes to simulate. |
number.sites |
Numeric vector for number of features/sites to simulate. |
methods |
Character vector of method wrapper names to benchmark. Examples of wrappers (tca.mle, tca.gmm, celldmc) are above. They must have the same input arguments. Function names must match to be called correctly. |
method.names |
Pretty names of those listed in methods argument for plotting |
number.replications |
Integer indicating how many replications of each experiment to run. Same input is run for each replicate. This is meant to account for variability in runtime due to the system we are running on. |
number.cell.types |
Integer indicating number of cell types to simulate. |
random_seed |
Integer to set seed for simulation to ensure replicability |
A list of dataframes. First dataframe with columns indicating the method, replicate number, sample size, number of sites, number of sources, and total runtime for each experiment. Second dataframe summarizes replicates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.