Addendum: Thats the discription inside the model
% Residual Similarity model compares the magnitudes of the residuals
% generated by the ensemble models to determine the nearest neighbors of a
% test component's degradation profile. First, each member of the
% historical data ensemble is fitted with a model of identical structure,
% using the "fit" method. Then the test component's degradation data is used
% to compute 1-step prediction errors for each model. The magnitudes of
% these errors serve as indicators of closeness of the test component
% to the historical ensemble members; the smaller the residual,
% the closer the test component is to the member that generated it. You can
% view Residual Similarity model as a special type of Pairwise Similarity
% model that uses the magnitudes of model residuals as a measure of
% distance.
%
% The remaining useful life (RUL) of the test component is estimated as the
% median statistic of the life span of most similar components minus the
% current life time value (see predictRUL).