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