get_equally_spaced_points {nprotreg}R Documentation

Generates Equally Spaced Points On A 3D Sphere.

Description

Generates points approximately equally spaced on a 3D sphere.

Usage

get_equally_spaced_points(number_of_points)

Arguments

number_of_points

A scalar, positive integer representing the number of points to get.

Value

A number_of_points-by-3 matrix whose rows contain the Cartesian coordinates of the equally spaced points.

See Also

Other Regression functions: cross_validate_concentration(), fit_regression(), get_skew_symmetric_matrix(), simulate_regression(), simulate_rigid_regression(), weight_explanatory_points()

Examples

library(nprotreg)

# Define the number of points to get.

number_of_points <- 5

# Get the Cartesian coordinates of the equally spaced points.

equally_spaced_points <- get_equally_spaced_points(number_of_points)

[Package nprotreg version 1.1.1 Index]