- Timestamp:
- 06/27/06 17:47:06 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/idldoc_html_output/Interpolation/spl_incr.html
r111 r118 763 763 </h4> 764 764 765 <div class="comments"> An n-element (at least 2) input vector that specifies the 766 tabulate points in a strict ascending order. 765 <div class="comments"> 766 An n-element (at least 2) input vector that specifies the tabulate points in 767 a strict ascending order. 767 768 </div> 768 769 … … 778 779 </h4> 779 780 780 <div class="comments"> The input values for which the interpolated values are 781 desired. Its values must be strictly monotonically increasing. 782 783 784 781 <div class="comments"> 782 The input values for which the interpolated values are 783 desired. Its values must be strictly monotonically increasing. 785 784 </div> 786 785 … … 796 795 </h4> 797 796 798 <div class="comments"> f(x) = y. An n-element input vector that specifies the values 797 <div class="comments"> 798 f(x) = y. An n-element input vector that specifies the values 799 799 of the tabulated function F(Xi) corresponding to Xi. As f is 800 800 supposed to be monotonically increasing, y values must be … … 839 839 </h4> 840 840 841 <div class="comments"></div> 842 843 844 845 846 847 848 <h3>Examples</h3><div class="value"> y2 = spl_incr(x, y, x2) 841 <div class="comments"> 842 </div> 843 844 845 846 847 848 849 <h3>Examples</h3><div class="value"> 850 IDL> y2 = spl_incr(x, y, x2) 849 851 850 852 851 853 852 853 x = (dindgen(n))^2854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 854 IDL> n = 100L 855 IDL> x = (dindgen(n))^2 856 IDL> y = abs(randomn(0, n)) 857 IDL> y[n/2:n/2+1] = 0. 858 IDL> y[n-n/3] = 0. 859 IDL> y[n-n/6:n-n/6+5] = 0. 860 IDL> y = total(y, /cumulative, /double) 861 IDL> x2 = dindgen((n-1)^2) 862 IDL> n2 = n_elements(x2) 863 IDL> print, min(y[1:n-1]-y[0:n-2]) LT 0 864 IDL> y2 = spl_incr( x, y, x2) 865 IDL> splot, x, y, xstyle = 1, ystyle = 1, ysurx=.25, petit = [1, 2, 1], /land 866 IDL> oplot, x2, y2, color = 100 867 IDL> c = y2[1:n2-1] - y2[0:n2-2] 868 IDL> print, min(c) LT 0 869 IDL> print, min(c, max = ma), ma 870 IDL> splot,c,xstyle=1,ystyle=1, yrange=[-.01,.05], ysurx=.25, petit = [1, 2, 2], /noerase 871 IDL> oplot,[0, n_elements(c)], [0, 0], linestyle = 1 870 872 </div> 871 873 <h3>Version history</h3> 872 874 873 875 <h4>Version</h4><div class="value"> $Id$ 876 </div> 874 877 <h4>History</h4><div class="value"> 875 Sebastien Masson (smasson@lodyc.jussieu.fr): May-Dec 2005</div> 878 Sebastien Masson (smasson@lodyc.jussieu.fr): May-Dec 2005 879 </div> 876 880 877 881 … … 914 918 915 919 <h4 id="_pure_convex_param_x1">x1 920 <span class="attr">in</span> 921 922 923 <span class="attr">required</span> 924 925 926 927 928 </h4> 929 930 <div class="comments"> 931 An n-element (at least 2) input vector that specifies the tabulate points in 932 a strict ascending order. 933 </div> 934 935 <h4 id="_pure_convex_param_x2">x2 936 <span class="attr">in</span> 937 938 939 <span class="attr">required</span> 940 941 942 943 944 </h4> 945 946 <div class="comments"> 947 The input values for which the interpolated values are 948 desired. Its values must be strictly monotonically increasing. 949 </div> 950 951 <h4 id="_pure_convex_param_y1">y1 952 <span class="attr">in</span> 953 954 955 <span class="attr">required</span> 956 957 958 959 960 </h4> 961 962 <div class="comments"> 963 f(x) = y. An n-element input vector that specifies the values 964 of the tabulated function F(Xi) corresponding to Xi. As f is 965 supposed to be monotonically increasing, y values must be 966 monotonically increasing. y can have equal consecutive values. 967 </div> 968 969 <h4 id="_pure_convex_param_y2">y2 916 970 917 971 … … 926 980 <div class="comments"></div> 927 981 928 <h4 id="_pure_convex_param_ x2">x2 982 <h4 id="_pure_convex_param_der2">der2 929 983 930 984 … … 939 993 <div class="comments"></div> 940 994 941 <h4 id="_pure_convex_param_y1">y1 942 943 944 945 946 947 948 949 950 </h4>951 952 <div class="comments"></div>953 954 <h4 id="_pure_convex_param_y2">y2 955 956 957 958 959 960 961 962 963 </h4>964 965 <div class="comments"></div>966 967 <h4 id="_pure_convex_param_der2">der2 968 969 970 971 972 973 974 975 976 </h4>977 978 <div class="comments"></div>979 980 995 <h4 id="_pure_convex_param_x">x 981 996 … … 989 1004 </h4> 990 1005 991 <div class="comments"></div> 1006 <div class="comments"> 1007 </div> 992 1008 993 1009
Note: See TracChangeset
for help on using the changeset viewer.