Ajouter 'octave/remmean.m'
This commit is contained in:
parent
b4995f33c1
commit
2715650503
|
|
@ -0,0 +1,16 @@
|
|||
function [newVectors, meanValue] = remmean(vectors);
|
||||
%REMMEAN - remove the mean from vectors
|
||||
%
|
||||
% [newVectors, meanValue] = remmean(vectors);
|
||||
%
|
||||
% Removes the mean of row vectors.
|
||||
% Returns the new vectors and the mean.
|
||||
%
|
||||
% This function is needed by FASTICA and FASTICAG
|
||||
|
||||
% 24.8.1998
|
||||
% Hugo Gävert
|
||||
|
||||
newVectors = zeros (size (vectors));
|
||||
meanValue = mean (vectors')';
|
||||
newVectors = vectors - meanValue * ones (1,size (vectors, 2));
|
||||
Loading…
Reference in New Issue