EVAL_MSD: Evaluate mean-square-difference between a model and an example. Code written by Katherine Smith, 2003 GENERAL score = eval_msd(params, model, example) INPUT/S -params: Parameters for model construction. -model: The model to be compared with the example -example: The example to be compared with the model. OUTPUT/S -score: Mean-squared difference score. PENDING WORK - KNOWN BUG/S -None. COMMENT/S -This is just a mediating function. Is it really necessary or is it just deceiving? RELATED FUNCTION/S MSD ABOUT -Created: November 23rd, 2003 -Last update: Novermber 26th, 2003 -Revision: 0.0.2 -Author: R. S. Schestowitz, University of Manchester ==============================================================
0001 function score = eval_msd(params, model, example) 0002 % EVAL_MSD: Evaluate mean-square-difference between a model and 0003 % an example. 0004 % 0005 % Code written by Katherine Smith, 2003 0006 % 0007 % GENERAL 0008 % 0009 % score = eval_msd(params, model, example) 0010 % 0011 % INPUT/S 0012 % 0013 % -params: 0014 % Parameters for model construction. 0015 % 0016 % -model: 0017 % The model to be compared with the example 0018 % 0019 % -example: 0020 % The example to be compared with the model. 0021 % 0022 % OUTPUT/S 0023 % 0024 % -score: 0025 % Mean-squared difference score. 0026 % 0027 % PENDING WORK 0028 % 0029 % - 0030 % 0031 % KNOWN BUG/S 0032 % 0033 % -None. 0034 % 0035 % COMMENT/S 0036 % 0037 % -This is just a mediating function. Is it really necessary or 0038 % is it just deceiving? 0039 % 0040 % RELATED FUNCTION/S 0041 % 0042 % MSD 0043 % 0044 % ABOUT 0045 % 0046 % -Created: November 23rd, 2003 0047 % -Last update: Novermber 26th, 2003 0048 % -Revision: 0.0.2 0049 % -Author: R. S. Schestowitz, University of Manchester 0050 % ============================================================== 0051 0052 score = msd(construct_model_example(params, model, 1:50),example);