demoQuadTree

PURPOSE ^

demoQuadTree Simple script showing the partition of unity created by a

SYNOPSIS ^

function demoQuadTree(dataId, minPoints, overlap, minCellSizePercent)

DESCRIPTION ^

demoQuadTree Simple script showing the partition of unity created by a
quadtree (QuadTreePURBFInterpolant class)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function demoQuadTree(dataId, minPoints, overlap, minCellSizePercent)
0002 %demoQuadTree Simple script showing the partition of unity created by a
0003 %quadtree (QuadTreePURBFInterpolant class)
0004     
0005     if nargin < 2
0006         minPoints = 10;
0007     end
0008     if nargin < 3
0009         overlap = 0.25;
0010     end
0011     if nargin < 3
0012         minCellSizePercent = 0.05;
0013     end
0014 
0015     %% Parse parameters
0016     if nargin < 1 || isempty(dataId)
0017         dataId = 'seamount';
0018     end
0019 
0020     %% Get the sample data and options
0021     [x, y, z, ~, ~, ~, ~] = getSampleDataset(dataId);
0022  
0023     %% Construct the QuadTree
0024     qt = QuadTreePURBFInterpolant(x, y, z, 'MinPointsInCell', minPoints, 'Overlap', overlap, 'MinCellSizePercent', minCellSizePercent, 'DistanceType', 'haversine');
0025     
0026     %% Plot it
0027     qt.plot();    
0028 end

Generated on Thu 10-Dec-2020 17:34:27 by m2html © 2005