statistics function

Compute statistics

Compute statistics

Convert the initial data into the statistics matrix NijkN_{ijk}, by counting the number of events for the nodes during the subintervals of a particular partition of the time interval.

statistics(data, n, K, directed = TRUE)

Arguments

  • data: List with type.seq,type.seq, time.seq
  • n: Total number of nodes : i,j1,,ni,j\in {1, \ldots, n}
  • K: Size of the regular partition, i.e. number of subintervals
  • directed: Boolean for directed (TRUE) or undirected (FALSE) case

Returns

N(i,j)k = number of events for the node (i,j) during the k-th subinterval

Examples

# Convert the generated data into the statistics matrix N_ijk with 8 columns n <- 50 Dmax <- 2^3 obs <- statistics(generated_Q3$data,n,Dmax,directed=FALSE)