%  INTERNAL FUNCTION: makes to vectors have the same minimum and maximum
% 
%  ::
% 
%    new=apply_range(type,refv,newv)
% 
%  Args:
% 
%     - **refv** [vector]: reference vector
%     - **newv** [vector]: vector to modify
% 
%  Returns:
%     :
% 
%     - **newv** [vector]: modified vector
% 
%