Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 37074e62 authored by Nicolas Bellot's avatar Nicolas Bellot Committed by hhakim
Browse files

old_matlab : bug mac solved (MATLAB normc)

parent e16a691d
No related branches found
No related tags found
No related merge requests found
function [lambda, facts, errors] = hierarchical_fact(params)
function [lambda, facts, errors] = old_hierarchical_fact(params)
%% Description hierarchical_fact
% Hierarchical matrix factorization.
% [lambda, facts, errors] = hierarchical_fact(params) runs the hierarchical
......
function [lambda, facts] = palm4MSA(params)
function [lambda, facts] = old_palm4MSA(params)
%% Description: palm4MSA.
% Factorization of a data matrix into multiple factors using PALM.
% [lambda, facts] = palm4MSA(params) runs the PALM algorithm on the
......
function y = normc(x)
%% Description normc
% Normalization of a matrix.
% y = normc(x) normalizes the columns of x, and puts the result in y.
%
% For more information on the FAuST Project, please visit the website of
% the project : <http://faust.gforge.inria.fr>
%
%% License:
% Copyright (2016): Luc Le Magoarou, Remi Gribonval
% INRIA Rennes, FRANCE
% http://www.inria.fr/
%
% The FAuST Toolbox is distributed under the terms of the GNU Affero
% General Public License.
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU Affero General Public License as published
% by the Free Software Foundation.
%
% This program is distributed in the hope that it will be useful, but
% WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
% See the GNU Affero General Public License for more details.
%
% You should have received a copy of the GNU Affero General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%
%% Contacts:
% Luc Le Magoarou: luc.le-magoarou@inria.fr
% Remi Gribonval : remi.gribonval@inria.fr
%
%% References:
% [1] Le Magoarou L. and Gribonval R., "Flexible multi-layer sparse
% approximations of matrices and applications", Journal of Selected
% Topics in Signal Processing, 2016.
% <https://hal.archives-ouvertes.fr/hal-01167948v1>
%%
rows = size(x,1);
n = 1 ./ sqrt(sum(x.*x,1));
y = x .* n(ones(1,rows),:);
y(~isfinite(y)) = 1;
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment