Calculate barrier from a 2D landscape

calculate_barrier_2d(
  l,
  start_location_value = 0,
  start_r = 0.1,
  end_location_value = 0.7,
  end_r = 0.15,
  base = exp(1)
)

Arguments

l

A 2d_static_landscape object (recommended) or a density distribution.

start_location_value, end_location_value

The initial position (in value) for searching the start/end point.

start_r, end_r

The searching radius for searching the start/end point.

base

The base of the log function.

Value

A barrier_2d object that contains the barrier calculation result.