Code covered by the BSD License
-
consolidator(x,y,aggregation_...
consolidator: consolidate "replicates" in x, also aggregate corresponding y
-
intgrad1(fx,dx,f1,method)
intgrad: generates a vector, integrating derivative information.
-
intgrad2(fx,fy,dx,dy,f11)
intgrad: generates a 2-d surface, integrating gradient information.
-
intgrad3(fx,fy,fz,dx,dy,dz,f1...
intgrad: generates a surface, integrating gradient information.
-
ReadMe.m
-
View all files
Inverse (integrated) gradient
by John D'Errico
23 Jan 2006
(Updated 02 Jan 2013)
Vectorized & fully sparse 1-d, 2-d, & 3-d integrated gradients
|
Watch this File
|
| File Information |
| Description |
The inverse of the gradient function. I've provided versions that work on 1-d vectors, or 2-d or 3-d arrays. In the 1-d case I offer 5 different methods, from cumtrapz, and an integrated cubic spline, plus several finite difference methods.
In higher dimensions, only a finite difference/linear algebra solution is provided, but it is fully vectorized and fully sparse in its approach. In 2-d and 3-d, if the gradients are inconsistent, then a least squares solution is generated.
(I'll enhance the 2-d and 3d tools if there is any interest. Currently they are set to be 2nd order methods on uniform grids.)
Please notify me of any bugs. |
| Acknowledgements |
Inverse Gradient
inspired this file.
This file inspired
Piv Mat 3.02.
|
| MATLAB release |
MATLAB 7.0.1 (R14SP1)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (6) |
| 15 May 2013 |
Martyn
|
|
|
| 01 Jan 2013 |
garima
|
|
|
| 17 Mar 2007 |
Uland Wong
|
|
|
| 07 Jul 2006 |
F Moisy
|
|
|
| 27 Jan 2006 |
John D'Errico
|
|
|
| 27 Jan 2006 |
Sergei Koptenko
|
|
|
| Updates |
| 27 Jan 2006 |
This release upgrades the finite difference approximations used in intgrad1. Higher accuracy is now achieved for non-uniform spacing, as well as the addition of a 4th order method. |
| 27 Jan 2006 |
Upgrades to the 1-d cumulative integration code, for both accuracy and speed in the finite difference methods. |
| 02 Jan 2013 |
Fixed bug for complex inputs |
|
Contact us