Skip to contents

This function calculates scalar potential of human flow for a given origin-destination matrix with p-value (unweighted graph version)

Usage

scalar_potential_on_graph(flow_on_edges, num_samples = 1e+05, seed = -1)

Arguments

flow_on_edges

A data.frame with three columns: vertex1, vertex2, and netflow.

  • num_samples: Monte calro samples (default = 1e5)

  • seed: Monte calro samples (default = -1, then generate it by std::random_device)

Value

This function returns a data.frame with three columns: zone, potential, p-value