MK_COARSE_FINE_MAPPING: create a mapping matrix from coarse to fine FEM [c2f,out]= mk_coarse_fine_mapping( f_mdl, c_mdl, opt ); C2F_ij is the fraction of f_mdl element i which is contained in c_mdl element j. This is used to map from data on the reconstruction model (c_mdl) to the forward model f_mdl as elem_data_fine = Mapping*elem_data_coase OUT_i is the fraction of f_mdl element i which is not contained in any c_mdl element. Parameters: c_mdl is coarse fwd_model f_mdl is fine fwd_model opt is option structure (optional, see below) This function is a compatibility wrapper. The actual calculations are carried out by either MK_ANALYTIC_C2F or MK_APPROX_C2F (the older method). To set a specific implementation use eidors_default('set','mk_coarse_fine_mapping','mk_approx_c2f'); To query current implementation use eidors_default('get','mk_coarse_fine_mapping'); NOTE that MK_ANALYTIC_C2F accepts an optional third argument whereas MK_APPROXIMATE_C2F does not. See also: EIDORS_DEFAULT, MK_ANALYTIC_C2F, MK_APPROX_C2F, CHECK_C2F_QUALITY
0001 function [mapping, outside] = mk_coarse_fine_mapping(varargin) 0002 %MK_COARSE_FINE_MAPPING: create a mapping matrix from coarse to fine FEM 0003 % [c2f,out]= mk_coarse_fine_mapping( f_mdl, c_mdl, opt ); 0004 % 0005 % C2F_ij is the fraction of f_mdl element i which is 0006 % contained in c_mdl element j. This is used to map 0007 % from data on the reconstruction model (c_mdl) to 0008 % the forward model f_mdl as 0009 % elem_data_fine = Mapping*elem_data_coase 0010 % OUT_i is the fraction of f_mdl element i which is not 0011 % contained in any c_mdl element. 0012 % 0013 % Parameters: 0014 % c_mdl is coarse fwd_model 0015 % f_mdl is fine fwd_model 0016 % opt is option structure (optional, see below) 0017 % 0018 % This function is a compatibility wrapper. The actual calculations are 0019 % carried out by either MK_ANALYTIC_C2F or MK_APPROX_C2F (the older 0020 % method). 0021 % 0022 % To set a specific implementation use 0023 % eidors_default('set','mk_coarse_fine_mapping','mk_approx_c2f'); 0024 % 0025 % To query current implementation use 0026 % eidors_default('get','mk_coarse_fine_mapping'); 0027 % 0028 % NOTE that MK_ANALYTIC_C2F accepts an optional third argument whereas 0029 % MK_APPROXIMATE_C2F does not. 0030 % 0031 % See also: EIDORS_DEFAULT, MK_ANALYTIC_C2F, MK_APPROX_C2F, CHECK_C2F_QUALITY 0032 0033 % (C) 2015 Bartlomiej Grychtol 0034 % License: GPL version 2 or version 3 0035 % $Id: mk_coarse_fine_mapping.m 5932 2019-04-18 14:24:16Z aadler $ 0036 0037 0038 [mapping, outside] = eidors_default(varargin{:});