calc_hyperparameter

PURPOSE ^

CALC_HYPERPARAMETER: calculate hyperparameter value

SYNOPSIS ^

function hyperparameter = calc_hyperparameter( inv_model )

DESCRIPTION ^

 CALC_HYPERPARAMETER: calculate hyperparameter value
   The hyperparameter is can be either provided directly,
     or can be based an automatic selection approach
 
 calc_hyperparameter can be called as
    hyperparameter= calc_hyperparameter( inv_model )
 where inv_model    is an inv_model structure

 if inv_model.hyperparameter.func exists, it will be
   called, otherwise inv_model.hyperparameter.value will
   be returned

 TODO: does hyperparameter depend on inv_model, or does
       it also depend on the data?

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function hyperparameter = calc_hyperparameter( inv_model )
0002 % CALC_HYPERPARAMETER: calculate hyperparameter value
0003 %   The hyperparameter is can be either provided directly,
0004 %     or can be based an automatic selection approach
0005 %
0006 % calc_hyperparameter can be called as
0007 %    hyperparameter= calc_hyperparameter( inv_model )
0008 % where inv_model    is an inv_model structure
0009 %
0010 % if inv_model.hyperparameter.func exists, it will be
0011 %   called, otherwise inv_model.hyperparameter.value will
0012 %   be returned
0013 %
0014 % TODO: does hyperparameter depend on inv_model, or does
0015 %       it also depend on the data?
0016 
0017 % (C) 2005 Andy Adler. License: GPL version 2 or version 3
0018 % $Id: calc_hyperparameter.m 4836 2015-03-30 07:19:25Z aadler $
0019 
0020 if isfield( inv_model.hyperparameter, 'func')
0021    try inv_model.hyperparameter = str2func(inv_model.hyperparameter); end
0022    hyperparameter = eidors_cache(...
0023                     inv_model.hyperparameter.func,{inv_model},'hyperparameter');
0024 else
0025     hyperparameter= inv_model.hyperparameter.value;
0026 end

Generated on Wed 21-Jun-2017 09:29:07 by m2html © 2005