%28-05-2016
%Cesar Sousa - MEAI
%cesarsousa@ua.pt
%
% Returns the vector with gaussian distribution arround the value of
% ImputArr within the 3sigma = MaxVariationPercent

%Garbage
%Experiencia com a distribuição normal

function [OutputArr] = getNormGausVar(ImputArr,MaxVariationPercent)

if nargin < 2
    error(message('stats:normrnd:TooFewInputs'));
end
DIM = length(ImputArr);
OutputArr = zeros(1,DIM);
for ii=1:DIM
    OutputArr(ii) = ImputArr(ii) + normrnd(0,abs(ImputArr(ii)*MaxVariationPercent/300));
end