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 ==============================================================
0001 function test_examples(model, ref_points_vec) 0002 % TEST_EXAMPLES: Given model and reference points, plot 10 0003 % randomally generated examples from this model. 0004 % 0005 % Code written by Katherine Smith, 2003 0006 % 0007 % GENERAL 0008 % 0009 % function test_examples(model, ref_points_vec) 0010 % 0011 % INPUT/S 0012 % 0013 % -model: 0014 % The model that is used to generate the examples 0015 % 0016 % -ref_points_vec: 0017 % The vector of reference points that correspond to the 0018 % model given. 0019 % 0020 % OUTPUT/S 0021 % 0022 % -None. Plots are generated though. 0023 % 0024 % PENDING WORK 0025 % 0026 % -Does not appear to require any work right now. 0027 % 0028 % KNOWN BUG/S 0029 % 0030 % -None 0031 % 0032 % COMMENT/S 0033 % 0034 % -The documentation of this file is possibly inaccurate and needs 0035 % a review. 0036 % 0037 % RELATED FUNCTION/S 0038 % 0039 % Need to find out which functions use this one. It is not yet obvious 0040 % to me. 0041 % 0042 % ABOUT 0043 % 0044 % -Created: November 22nd, 2003 0045 % -Last update: Novermber 24th, 2003 0046 % -Revision: 0.0.3 0047 % -Author: R. S. Schestowitz, University of Manchester 0048 % ============================================================== 0049 0050 for i=1:10 % 10 times 0051 params = randn(1,size(model.params,2)).*sqrt(model.variances); 0052 % get some random parameters, first argument in range 1 0053 example = construct_model_example(params, model, ref_points_vec); 0054 % construct using the random parameters 0055 figure,plot(example); 0056 % and plot it (10 plots) 0057 end 0058