trimm.m

% ------------------------------------------------------------------------
% Function: m=trimm(e,percent)
% ------------------------------------------------------------------------
% Aim:
% Trimmed values of RMS and RMSECV
% -----------------------------------------------------------------------
% Inputs:
% e, vector (n,1), squared residuals
% percent, scalar, percent of trimming (assumed fraction of contamination 
% in %)
% -----------------------------------------------------------------------
% Output:
% m, scalar, trimmed value of RMS or RMSECV
% -----------------------------------------------------------------------
% Example:
% tRMS=trimm(e,10)
Valid CSS! Valid HTML 4.01!