Coder Social home page Coder Social logo

riverarodrigoa / statis-matlab Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 222 KB

Fonctions pour calculer le methode STATIS sur matlab|| Functions for calculate the method STATIS in MatLAB

MATLAB 100.00%
matlab matlab-functions statistical-analysis statistics

statis-matlab's People

Contributors

mounirb avatar nafis avatar riverarodrigoa avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

nafis mounirb

statis-matlab's Issues

[Image euclidienne compromis] Test de validation échoue

Test de validation

%% Validation de l'image euclidienne compromis
alpha = sqrt(alpha_t);
B_val = alpha(1)*Xc(:,:,1);
for i=1:T
    B_val =[B_val [alpha(i)*Xc(:,:,i)]];
end
% ACP du B_val
[XU_v, VaP_v, VeP_v] = ACP(B_val);

B_val_c = XU_v(:,1:j);

Decision = isequal(B,B_val_c);
if Decision
    disp('[Validation test] Image euclidienne compromis correcte');
else
    disp('[Validation test] Image euclidienne compromis incorrecte');
    disp('Image euclidienne');
    disp(B);
    disp('Validation');
    disp(B_val_c);
end

Centrage et réduction des données

Le problème maintenant c'est de trouver la façon correcte de faire le centrage et réduction des tableaux. Il y a deux propositions pour l'instant:

Proposition 1

function [Acr] = centrer(A)
%----------------------------------
% Centrage et reduction des donnees
%----------------------------------
[n,p]=size(A);
Ac= A - repmat(mean(A),n,1);
Acr=Ac.*repmat(std(A),n,1);

Proposition 2

function [Acr] = centrer(A)
%----------------------------------
% Centrage et reduction des donnees
%----------------------------------
UN = ones(size(A));
Me = UN * diag(mean(mean(A)));
Ecart_type = UN * diag(std(std(A)));
ec  = 1./Ecart_type;
Acr  = (A - Me).*ec;
end

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.