View source: R/power_law_mapping.R
power_law_mapping | R Documentation |
Gentle decay (power-law) mapping function from sizes to arrival times
power_law_mapping(sizes, delta)
sizes |
vector of sizes to be mapped to arrival times. |
delta |
numeric value (greater than 0) for the exponent in the mapping function. |
vector of arrival times.
# Generate a vector of sizes
sizes <- runif(100, 0, 100)
# Map the sizes to arrival times using a power-law mapping with delta = .5
power_law_mapping(sizes, .5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.