© Copyright 2000-2015 Source Code Online. Free Source Code and Scripts Downloads.
|Code Listing by Wolfgang Schwanghart|
dpsimplify uses the recursive Douglas-Peucker line simplification algorithm to reduce the number of vertices in a polyline according to a specified tolerance. The algorithm is also know as Iterative Endpoint Fit algorithm. dpsimplify can handle polylines and polygones in 2d and higher dimensions.
The submission now contains another m-file (dpsimplify_octave.m) that has been slightly modified to run with GNU Octave.
shufflelabel randomly changes the order of label values in a label matrix. Zeros and nans are ignored. The label matrix can be every numerical data type, char or a cell array of strings.
L = kron([1 2 3;3 2...
Often I have to extract a subset of a two-dimensional array for further analysis. Usually I do this with logical indexing. But most often the problem with logical indexing is that I get a column vector which I then have to reshape or index into a...
How much water flows where? Use this algorithm to calculate the upslope area of each cell in a digital elevation model.
- multiple flow direction
- single flow direction
- routes across flats
variogram calculates the isotropic and anisotropic experimental variogram in various dimensions.
d = variogram(x,y)
d = variogram(x,y,'pn','pv',...)
The function uses parseargs (objectId=10670) by Malcolm...
accumconncomps creates vectors by accumulating elements in one vector using the connected components in another vector of same size. Connected components are regarded as subsequent, identical elements in a vector.
This function completes what I have started with the functions variogram and variogramfit. It is not intended to be a highly optimized code for performing kriging but may have educational value. Note that for using kriging, you should download the...
The Strahler Stream Order is a way to classify rivers based on a hierarchy of tributaries. First-order streams don't have tributaries. When two first-order streams come together, they form a second-order stream. When two second-order streams come...
variogramfit performs a least squares fit of various theoretical variograms to an experimental, isotropic variogram. The user can choose between various bounded (e.g. spherical) and unbounded (e.g. exponential) models. A nugget variance can be...
All files and free downloads are copyright of their respective owners. We do not provide any hacked, cracked, illegal, pirated version of scripts, codes, components downloads. All files are downloaded from the publishers website, our file servers or download mirrors. Always Virus check files downloaded from the web specially zip, rar, exe, trial, full versions etc. Download links from rapidshare, depositfiles, megaupload etc not published.