Determine optimal spatial arrangement for direct sampling
sampling_strategy_direct.Rd
Function that determines the optimal spatial arrangement for direct sampling sites
Arguments
- river
A
river
object generated viaaggregate_river
.- nSites
Number of sites to be deployed. Cannot be higher than
river$AG$nNodes
.
Value
A vector containing the ID of the nSites
selected sites according to this strategy.
Sites are sorted according to their rank (i.e., the first site in the vector is the first one
that has been selected).
Examples
library(rivnet)
data(wigger)
wigger <- paths_river(wigger)
sites <- sampling_strategy_direct(wigger, 20)
plot(wigger)
points_colorscale(wigger$AG$X[sites], wigger$AG$Y[sites], 1:20)
title("Rank of selected sites")