- Timestamp:
- 07/23/09 11:18:49 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/idldoc_html_output/Interpolation/spl_incr.html
r338 r402 238 238 239 239 <h3>Examples</h3><div class="preformat"> 240 IDL> n = 100L 241 IDL> x = (dindgen(n))^2 242 IDL> y = abs(randomn(0, n)) 243 IDL> y[n/2:n/2+1] = 0. 244 IDL> y[n-n/3] = 0. 245 IDL> y[n-n/6:n-n/6+5] = 0. 246 IDL> y = total(y, /cumulative, /double) 247 IDL> x2 = dindgen((n-1)^2) 248 IDL> n2 = n_elements(x2) 249 IDL> print, min(y[1:n-1]-y[0:n-2]) LT 0 250 IDL> y2 = spl_incr( x, y, x2) 251 IDL> splot, x, y, xstyle = 1, ystyle = 1, ysurx=.25, petit = [1, 2, 1], /land 252 IDL> oplot, x2, y2, color = 100 253 IDL> c = y2[1:n2-1] - y2[0:n2-2] 254 IDL> print, min(c) LT 0 255 IDL> print, min(c, max = ma), ma 256 IDL> splot,c,xstyle=1,ystyle=1, yrange=[-.01,.05], ysurx=.25, petit = [1, 2, 2], /noerase 257 IDL> oplot,[0, n_elements(c)], [0, 0], linestyle = 1 240 241 IDL> n = 100L 242 IDL> x = (dindgen(n))^2 243 IDL> y = abs(randomn(0, n)) 244 IDL> y[n/2:n/2+1] = 0. 245 IDL> y[n-n/3] = 0. 246 IDL> y[n-n/6:n-n/6+5] = 0. 247 IDL> y = total(y, /cumulative, /double) 248 IDL> x2 = dindgen((n-1)^2) 249 IDL> n2 = n_elements(x2) 250 IDL> print, min(y[1:n-1]-y[0:n-2]) LT 0 251 IDL> y2 = spl_incr( x, y, x2) 252 IDL> splot, x, y, xstyle = 1, ystyle = 1, ysurx=.25, petit = [1, 2, 1], /land 253 IDL> oplot, x2, y2, color = 100 254 IDL> c = y2[1:n2-1] - y2[0:n2-2] 255 IDL> print, min(c) LT 0 256 IDL> print, min(c, max = ma), ma 257 IDL> splot,c,xstyle=1,ystyle=1, yrange=[-.01,.05], ysurx=.25, petit = [1, 2, 2], /noerase 258 IDL> oplot,[0, n_elements(c)], [0, 0], linestyle = 1 258 259 </div> 259 260 <h3>Version history</h3> 260 261 261 262 <h4>Version</h4><div class="preformat"> 262 $Id: spl_incr.pro 3 27 2007-12-13 16:22:35Z pinsard $263 $Id: spl_incr.pro 371 2008-08-07 09:32:02Z pinsard $ 263 264 </div> 264 265 <h4>History</h4><div class="preformat">
Note: See TracChangeset
for help on using the changeset viewer.