View source: R/dormancy_scout.R
| dormancy_scout | R Documentation |
Systematically scans the data space to identify regions where dormant patterns
might emerge. Unlike dormancy_detect which identifies specific patterns,
dormancy_scout maps the "terrain" of dormancy potential.
dormancy_scout(
data,
grid_resolution = 20,
scout_method = "density",
return_map = TRUE,
verbose = FALSE
)
data |
A numeric matrix or data frame. |
grid_resolution |
Integer. Resolution of the scanning grid. Higher values give finer resolution but slower computation. Default is 20. |
scout_method |
Character. Scanning method:
Default is "density". |
return_map |
Logical. Whether to return the full dormancy map. Default is TRUE. |
verbose |
Logical. Whether to print progress messages. Default is FALSE. |
Scout analysis is useful for:
Identifying regions to monitor for future pattern emergence
Understanding the "geography" of your data's pattern space
Finding data regions that are underexplored or anomalous
Planning targeted data collection in high-potential regions
The scout creates a map of "dormancy potential" - not actual patterns, but locations where patterns are more likely to exist or emerge.
A list containing:
scout_results - Data frame with coordinates and dormancy potential
hotspots - Regions with highest dormancy potential
dormancy_map - If return_map = TRUE, a matrix representing
the dormancy landscape
summary - Summary statistics of the scan
set.seed(42)
n <- 500
x <- rnorm(n)
y <- rnorm(n)
# Create a region with hidden pattern
z <- ifelse(x > 1 & y > 1, 0.9 * x + rnorm(sum(x > 1 & y > 1), 0, 0.1), y)
data <- data.frame(x = x, y = z)
scout <- dormancy_scout(data, grid_resolution = 15)
print(scout)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.