Ignore:
Timestamp:
07/23/09 11:18:49 (15 years ago)
Author:
smasson
Message:

update documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Documentation/idldoc_assistant_output/Interpolation/spl_incr.html

    r338 r402  
    213213 
    214214    <h3>Examples</h3><pre> 
    215  IDL> n = 100L 
    216  IDL> x = (dindgen(n))^2 
    217  IDL> y = abs(randomn(0, n)) 
    218  IDL> y[n/2:n/2+1] = 0. 
    219  IDL> y[n-n/3] = 0. 
    220  IDL> y[n-n/6:n-n/6+5] = 0. 
    221  IDL> y = total(y, /cumulative, /double) 
    222  IDL> x2 = dindgen((n-1)^2) 
    223  IDL> n2 = n_elements(x2) 
    224  IDL> print, min(y[1:n-1]-y[0:n-2]) LT 0 
    225  IDL> y2 = spl_incr( x, y, x2) 
    226  IDL> splot, x, y, xstyle = 1, ystyle = 1, ysurx=.25, petit = [1, 2, 1], /land 
    227  IDL> oplot, x2, y2, color = 100 
    228  IDL> c = y2[1:n2-1] - y2[0:n2-2] 
    229  IDL> print, min(c) LT 0 
    230  IDL> print, min(c, max = ma), ma 
    231  IDL> splot,c,xstyle=1,ystyle=1, yrange=[-.01,.05], ysurx=.25, petit = [1, 2, 2], /noerase 
    232  IDL> oplot,[0, n_elements(c)], [0, 0], linestyle = 1 
     215 
     216   IDL> n = 100L 
     217   IDL> x = (dindgen(n))^2 
     218   IDL> y = abs(randomn(0, n)) 
     219   IDL> y[n/2:n/2+1] = 0. 
     220   IDL> y[n-n/3] = 0. 
     221   IDL> y[n-n/6:n-n/6+5] = 0. 
     222   IDL> y = total(y, /cumulative, /double) 
     223   IDL> x2 = dindgen((n-1)^2) 
     224   IDL> n2 = n_elements(x2) 
     225   IDL> print, min(y[1:n-1]-y[0:n-2]) LT 0 
     226   IDL> y2 = spl_incr( x, y, x2) 
     227   IDL> splot, x, y, xstyle = 1, ystyle = 1, ysurx=.25, petit = [1, 2, 1], /land 
     228   IDL> oplot, x2, y2, color = 100 
     229   IDL> c = y2[1:n2-1] - y2[0:n2-2] 
     230   IDL> print, min(c) LT 0 
     231   IDL> print, min(c, max = ma), ma 
     232   IDL> splot,c,xstyle=1,ystyle=1, yrange=[-.01,.05], ysurx=.25, petit = [1, 2, 2], /noerase 
     233   IDL> oplot,[0, n_elements(c)], [0, 0], linestyle = 1 
    233234 
    234235    </pre><h3>Version history</h3> 
    235236     
    236237    <h4>Version</h4> 
    237  $Id: spl_incr.pro 327 2007-12-13 16:22:35Z pinsard $ 
     238 $Id: spl_incr.pro 371 2008-08-07 09:32:02Z pinsard $ 
    238239 
    239240    <h4>History</h4> 
Note: See TracChangeset for help on using the changeset viewer.