slepian_python package

Submodules

slepian_python.eigen_laplacian module

slepian_python.eigen_laplacian.laplacian(D, A)

Information:

Compute Laplacian

param D::[2darray<float>]

Degree matrix

param A::[2darray<float>]

Adjacency matrix

returns

Laplacian

rtype

L::[2darray<float>]

slepian_python.eigen_laplacian.normalize_adjmat(A, D)

Information:

Normalize Adjacency/Laplacian Matrix

param A::[2darray<float>]

Adjacency matrix

param D::[2darray<float>]

Degree matrix

returns

Normalized adjacency matrix

rtype

norm_A::[2darray<float>]

slepian_python.graph_slepian module

slepian_python.graph_slepian.compute_slepians(L, selection, NW, const_scale, maxiter=2500)

Information:

Compute slepians (laplacian/regular slepian/ modif distance slepian) Information included are:

  • slepian vector

  • eigenvalue

  • concentration

  • cut

param L ::[2darray<float>]

Laplacian

param selection ::[1darray<bool>]

True if in selected nodes False otherwise

param NW ::[int]

Number of eigenvectors used bandlimit

param const_scale::[bool]

Flag to sum up to 1 the spectrum limited laplacian eigenvalues

param maxiter ::[int]

Number of iteration for spectre approximation

returns
  • basis ::[list<2darray>] – slepian vectors / energy distribution

  • basis_eig0::[list<1darray>]

  • basis_conc::[list<1darray>]

  • basis_cut ::[list<1darray>]

slepian_python.mesh_plot module

slepian_python.mesh_plot.lowfreq_9mesh(vertices, f_index, graphsig, scores)

Information:

Plot 9 mesh given vertices and faces and computed slepian vectors

param vertices::[2darray<float>]

Vertex positions in 3d

param f_index ::[2darray<int>]

array of faces with faces being 3 vertices’ index in vertices array

param graphsig::[1darray<float>]

usually slepian vector

param scores ::[list]

lambda, concentration, cut

rtype

None

slepian_python.mesh_plot.plot_mesh(vertices, f_index, f_colors, title='The Bear')

Information:

Plot 1 mesh given vertices and faces and faces colors

param vertices::[2darray<float>]

Vertex positions in 3d

param f_index ::[2darray<int>]

array of faces with faces being 3 vertices’ index in vertices array

param f_colors::[1darray<float>]

color to faces

rtype

None

Module contents