%% Train Hash Similarity Model
% Load training data.

load('hashTrainVectors.mat')

% The training data is a cell array of column vectors. Each column vector is a degradation feature profile for a component.
%
% Create a hash similarity model with default settings. By default, the hashed features used by the model are the signal maximum, minimum, and standard deviation values.

mdl = hashSimilarityModel;

%
% Train the similarity model using the training data.

fit(mdl,hashTrainVectors)

% Copyright 2012 The MathWorks, Inc.