triangle_distance


triangle_distance, a MATLAB library which considers the problem of describing the typical value of the distance between a pair of points randomly selected in a triangle.

This problem is notably more complicated than when the sampling region is a square. In particular, the probability density function for the distance seems to be known only for special cases, such as a right triangle or equilateral triangle.

Licensing:

The computer code and data files made available on this web page are distributed under the GNU LGPL license.

Languages:

triangle_distance is available in a MATLAB version.

Related Data and Programs:

BALL_DISTANCE, a MATLAB library which considers the problem of describing the typical value of the distance between a pair of points randomly selected in the unit ball.

CIRCLE_DISTANCE, a MATLAB library which considers the problem of describing the typical value of the distance between a pair of points randomly selected on the unit circle.

DISK_DISTANCE, a MATLAB library which considers the problem of describing the typical value of the distance between a pair of points randomly selected in the unit disk.

HYPERBALL_DISTANCE, a MATLAB library which considers the problem of describing the typical value of the distance between a pair of points randomly selected in the unit hyperball in M dimensions.

HYPERSPHERE_DISTANCE, a MATLAB library which considers the problem of describing the typical value of the distance between a pair of points randomly selected on the unit hypersphere in M dimensions.

line_distance, a MATLAB library which considers the problem of describing the typical value of the distance between a pair of points randomly selected in the unit line segment.

RANDOM_DATA, a MATLAB library which uses a random number generator (RNG) to sample points corresponding to various probability density functions (PDF's), spatial dimensions, and geometries, including the M-dimensional cube, ellipsoid, simplex and sphere.

SPHERE_DISTANCE, a MATLAB library which considers the problem of describing the typical value of the distance between a pair of points randomly selected on the unit sphere.

square_distance, a MATLAB library which considers the problem of describing the typical value of the distance between a pair of points randomly selected in the unit square.

triangle_distance_test

Reference:

Source Code:


Last revised on 28 February 2019.