R/expected_distances_sbm.R

Defines functions expected_distances_sbm

Documented in expected_distances_sbm

# compute the expected geodesic distances traversed by a Spherical Brownian Motion process after specific time intervals (deltas)
expected_distances_sbm = function(diffusivity, 	# non-negative numeric, diffusivity of the SBM
								  radius,		# positive numeric, radius of the sphere
								  deltas){		# numeric vector, listing time intervals for which to compute the expected geodesic distances
	return(sapply(deltas, FUN=function(delta) expected_SBM_distance(delta, diffusivity=diffusivity, radius=radius)))
}

Try the castor package in your browser

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

castor documentation built on Aug. 18, 2023, 1:07 a.m.