Skip to content

Commit 30b2519

Browse files
committed
Added constrained uniform sampling of angles
1 parent d424170 commit 30b2519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spatialmath/base/quaternions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ def qrand(theta_range:Optional[ArrayLike2] = None, unit: str = "rad") -> UnitQua
895895
# angular magnitude under uniform sampling.
896896

897897
# Sample angle using inverse transform sampling based on CDF
898-
# of the anular distribution (2/pi * sin^2(theta/2))
898+
# of the angular distribution (2/pi * sin^2(theta/2))
899899
theta = _inv_cdf_sin_squared_interp(
900900
np.random.uniform(
901901
low=_compute_cdf_sin_squared(theta_range[0]),

0 commit comments

Comments
 (0)