This is where navigation should be.


GSP_SPHERE - Create a spherical-shaped graph

Usage

:  G = gsp_sphere();
G = gsp_sphere( param );

Input parameters

param Structure of optional parameters

Output parameters

G Resulting graph

Description

'gsp_sphere( param )' creates a graph from points sampled on a hyper-sphere. The dimension of the sphere can be passed as a parameter. It can be sampled in a uniform voxel grid or randomly.

Additional parameters

  • param.radius : float the radius of the sphere
  • param.nb_pts : int the number of vertices
  • param.nb_dim : int the dimension
  • param.sampling : ['random'] the variance of the distance kernel

Example:

G = gsp_sphere();
gsp_plot_graph(G);
axis square
gsp_sphere_1_1.png