octave_distance, an Octave code which estimates the typical distance between a pair of points randomly selected from the surface or interior of a geometric object such as a circle, disk, sphere, cube.
The computer code and data files made available on this web page are distributed under the MIT license
annulus_distance, an Octave code which estimates the typical distance between a pair of points randomly selected inside a circular annulus.
ball_distance, an Octave code which estimates the typical distance between a pair of points randomly selected in the unit ball in 3D.
circle_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected on the circumference of the unit circle in 2D.
cube_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected in the unit cube in 3D.
cube_surface_distance, an Octave code which estimates the expected value of the distance between a pair of points randomly selected on the surface of the unit cube.
disk_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected in the unit disk in 2D.
ellipse_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected on the circumference of the ellipse (x/a)^2+(y/b)^2=1 in 2D.
hyperball_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected in the unit hyperball in M dimensions.
hypercube_distance, an Octave code which estimates the typical distance between a pair of points randomly selected in the M-dimensional unit hypercube.
hypercube_surface_distance, an Octave code which estimates the expected value of the distance between a pair of points randomly selected on the surface of the unit hypercube in D dimensions.
hypersphere_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected on the unit hypersphere in M dimensions.
levenshtein_distance, an Octave code which returns the Levenshtein distance between two strings.
line_distance, an Octave code which estimates the typical distance betweena pair of points randomly selected in the unit line segment in 1D.
normal01_multivariate_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected from an isotropic standard normal distribution in M dimensions.
permutation_distance, an Octave code which estimates the expected value of the Ulam distance between a pair of randomly selected permutations of the same order.
polygon_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected from a polygon in 2D.
sphere_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected on the surface of the unit sphere in 3D.
square_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected in the unit square in 2D.
square_surface_distance, an Octave code which estimates the expected value of the distance between a pair of points randomly selected on the surface of the unit square.
subset_distance, an Octave code which estimates the expected value of the Hamming distance between a pair of randomly selected subsets of an M set.
triangle_distance, an Octave code which computes the expected value of the distance between a pair of points randomly selected in a triangle in 2D.