yclip.cwp.lib

来自「su 的源代码库」· LIB 代码 · 共 31 行

LIB
31
字号
YCLIP - Clip a function y(x) defined by linear interpolation of theuniformly sampled values:  y(fx), y(fx+dx), ..., y(fx+(nx-1)*dx).Returns the number of samples in the clipped function.yclip		clip a function y(x) defined by linear interplolation of		uniformly sampled valuesFunction Prototype:int yclip (int nx, float dx, float fx, float y[], float ymin, float ymax,	float xc[], float yc[]);Input:nx		number of x (and y) valuesdx		x sampling intervalfx		first xy		array[nx] of uniformly sampled y(x) valuesymin		minimum y value; must not be greater than ymaxymax		maximum y value; must not be less than yminOutput:xc		array[?] of x values for clipped y(x)yc		array[?] of y values for clipped y(x)Returned:	number of samples in output arrays xc and ycNotes:The output arrays xc and yc should contain space 2*nx values, whichis the maximum possible number (nc) of xc and yc returned.Author:  Dave Hale, Colorado School of Mines, 07/03/89

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?