Git Product home page Git Product logo

gspbox's Introduction

Graph Signal Processing Toolbox (GSPBox)

The official Graph Signal Processing Toolbox (GSPBox)

Running the toolbox

In Matlab type

    gsp_start

as the first command from the installation directory. This will set up the correct paths.

The gsp_start command will add all the necessary subdirectories (so please don't add these manually), and it will print a statement telling you which backend you are currently using.

Compiling the toolbox

In Matlab type

    gsp_make

as the first command from the installation directory. This will try to compile the mex interface for the third party components: AMD and LDL.

You need the library stdc++ to compile AMD and LDL. On Ubuntu you can type:

    sudo apt-get install libstdc++6

Installing third party software

In Matlab type

    gsp_install

as the first command from the installation directory. This will try to download and install third party software.

Documentation

You can find the complete documentation at https://epfl-lts2.github.io/gspbox-html/.

gspbox's People

Contributors

dshuman1 avatar mdeff avatar nperraud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gspbox's Issues

Querry related to GSP_TOOLBOX

Sir,
Please tell me about the variables input you have used for the program like 'G', 'F', 'param'.
If I already have the graph structure why do i need another signal f and what's this param. I will be highly obliged if you could help me with my doubts.

Coordinates are not proper

In some of the functions for creating graph signals G = gsp_erdos_renyi(N,p)
G = gsp_random_regular(100,3) , G.coords is taking default (0,0) value.

Graph multiresolution: eps computation

The current code throws "GSP_GRAPH_SPARSIFY: Epsilon out of required range" if gsp_graph_multiresolution() comes to the point that the current graph has three nodes. I think L175 in gsp_graph_multiresolution.m should be if Gs{lev+1}.N>3 as 2/sqrt(3)>1, a condition in gsp_graph_sparsify(). Another useful condition would be sum(find(Gs{lev+1}.A,1))>0 as otherwise there is nothing to sparsify and this later leads to error in results=gendist(Pe',q,1);.
In addition a piggy-backed comment: gsp_graph_sparsify() should be documented that it is non-deterministic.

Graph multiresolution: largest_eigenvector

I think the behavior on L141 in gsp_graph_multiresolution.m is wrong in the case when largest_eigenvector(1)==0, which now leads to filling largest_eigenvector with 0s as sign(0)=0. I suggest L141 being executed only if largest_eigenvector(1)~=0.
Also, as eig works up to eps precision, one should IMHO have nonnegative_logicals=(largest_eigenvector >= -eps); instead of nonnegative_logicals=(largest_eigenvector >= 0);, as the current may lead to problems with graphs with multiple connected components, which are then numerically not properly identified to be kept, which may lead to NaNs in Kron reduction.

gsp_isomap

Hello everyone,
In the following function: "gsp_isomap" you are using the "dijkstra" function hence it is not implemented in matlab! I tried to download one from MathWorks File Exchange but I found lots of functions!
Can you send me the right one?
Best regards and thanks in advance
Jennifer

incorrect gft results with a ring graph

I found a bug that makes an incorrect gft result with a ring graph.

Example

Gfted one-hot vector's amplitude is constant.
And its phase should be a line.
However, this example shows gft makes an incorrect result.

N = 64;
G = gsp_ring(N);
G = gsp_compute_fourier_basis(G);

f = zeros(N);
f(10) = 1;

plot(1:N,angle(gsp_gft(G,f)))
xlim([1 N])
ylim([-pi pi])
ylabel("phase [rad]")
yticks([-pi,0,pi])

phase

The cause

This is because the sort of eigenvalues and eigenvectors in

if isfield(G,'type') && strcmp(G.type,'ring')==1 % && mod(G.N,2)==0
U = dftmtx(G.N)/sqrt(G.N);
E = (2-2*cos(2*pi*(0:G.N-1)'/G.N));
inds = gsp_classic2graph_eig_order( G.N );
% [G.E, inds]=sort(E,'ascend');
G.e = E(inds);
if strcmp(G.lap_type,'normalized')
G.e = G.e/2;
end

However, this sort is important when we talk about graph frequency...

gsp_erdos_renyi(N,p) wrong probability

The current implementation of the Erdos-Renyi graph seems to have an issue related to the generation of the adjacency matrix. In particular, the edge probability does not follow the input probability p but it is roughly half. This is due to the following lines:

G.W = sprandsym(N,p)>0;
G.W(1:N+1:end) = 0;

where sprandsym(N,p) generates a sparse matrix with nonzero probability p but the nonzero entries are normally distributed, so taking >0 only selects half of those.

A quick fix, albeit inefficient, is

G.W = tril(rand(N,N)<p);
G.W = G.W - eye(N);
G.W = G.W + G.W';

Errors in gsp_nn_hypergraph.m file

In line 86 of the gsp_nn_hypergraph.m file, this line of code should be G.W (edge, ii)=sqrt(sum(w((1:k)+(ii-1)*k))), instead of G.W (edge, ii)=sqrt (sum (w (edge)).

New wavelet filters

Hiya,

I'm loving the toolbox! I was wondering if you had plans to add in different wavelet families like the Haar or daubechies wavelets?

gsp_estimate_vertex_time

function appears to have many dependencies not included in the repo, including:
normalize_data
gabwin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.