R/get.sim.mean.dist.at.tau.R

`get.sim.mean.dist.at.tau` <-
function(net, tau){
    ts <- net %n% "time_series"
    if(length(ts)==1)
      stop("Network does not have full time series")
    deltas <- abs(ts - tau)
    index <- which(deltas==min(deltas))
    closest.time <- ts[index]
    mean.dist <- (net %n% "mean_distance_series")[index]
    cbind(closest.time, mean.dist)
  }

Try the epineticseq package in your browser

Any scripts or data that you put into this service are public.

epineticseq documentation built on May 2, 2019, 4:56 p.m.