function test_examples(model, ref_points_vec)
% TEST_EXAMPLES: Given model and reference points, plot 10
%                randomally generated examples from this model.
%
% Code written by Katherine Smith, 2003
%
%    GENERAL
%
%      function test_examples(model, ref_points_vec)
%
%    INPUT/S
%
%      -model: 
%           The model that is used to generate the examples
%
%      -ref_points_vec:
%           The vector of reference points that correspond to the
%           model given.
%           
%    OUTPUT/S
%
%      -None. Plots are generated though.
%
%    PENDING WORK
%
%      -Does not appear to require any work right now.
%
%    KNOWN BUG/S
%
%      -None
%
%    COMMENT/S
%
%      -The documentation of this file is possibly inaccurate and needs
%       a review.
%
%    RELATED FUNCTION/S
%
%      Need to find out which functions use this one. It is not yet obvious
%      to me.
%      
%    ABOUT
%
%      -Created:     November 22nd, 2003
%      -Last update: Novermber 24th, 2003
%      -Revision:    0.0.3
%      -Author:      R. S. Schestowitz, University of Manchester
% ==============================================================

for i=1:10 % 10 times
  params = randn(1,size(model.params,2)).*sqrt(model.variances);
     % get some random parameters, first argument in range 1
  example = construct_model_example(params, model, ref_points_vec);
     % construct using the random parameters
  figure,plot(example);
     % and plot it (10 plots)
end
  
