Changeset 569 for applications

Show
Ignore:
Timestamp:
08/20/09 00:54:47 (15 years ago)
Author:
smidl
Message:

new object discrete_support, merger adapted to accept this input as well

Location:
applications/bdmtoolbox
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • applications/bdmtoolbox/mex/merger.cpp

    r568 r569  
    9393        } 
    9494        catch (UIException &e) { 
    95                 shared_ptr<epdf> g0 = UI::build<epdf> (Cfg, "Support"); 
    96                 Merger->set_support (*g0, 100); 
     95                shared_ptr<discrete_support> DisSup = UI::build<discrete_support> (Cfg, "Support"); 
     96                Merger->set_support (*DisSup); 
    9797        } 
    9898// COMPUTE RESULTS 
  • applications/bdmtoolbox/tutorial/merging/merge_grid.m

    r568 r569  
    4848 
    4949% 2D support 
    50 type=0; 
     50type=1; 
    5151if type==0 
    5252    support2.class='rectangular_support'; 
     
    5454    support2.gridsizes=[10,10]; 
    5555else 
    56     support2=struct('pdf',... 
    57             struct('class','enorm<ldmat>','mu',[1,2],'R',[2 0; 0 2])); 
    58     support2.nsamples=[100]; 
     56    support2.class='discrete_support'; 
     57    support2.epdf= struct('class','enorm<ldmat>','mu',[1,2],'R',[2 0; 0 2]); 
     58    support2.npoints=[100]; 
    5959end     
    6060 
     
    6363 
    6464if type==0 
    65     X=zeros(support2.nbins(1)); 
    66     Y=zeros(support2.nbins(1)); 
    67     Z=zeros(support2.nbins(1)); 
     65    X=zeros(support2.gridsizes(1)); 
     66    Y=zeros(support2.gridsizes(1)); 
     67    Z=zeros(support2.gridsizes(1)); 
    6868 
    6969    X(:)=vy2.support(1,:);