Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
extrema / usr / share / extrema / Help / Functions / iclose.htm
Size: Mime:
<HTML>
<HEAD>
<TITLE>ICLOSE</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF" fgcolor="#000000">

<P><font size="+3" color="green"><B>ICLOSE</B></font></P>
<P>
<TABLE border="1" cols="2" frame="box" rules="all" width="572">
<TR>
<TD width="15%" valign="top"><B>Syntax</B>:</TD>
<TD width="85%"><CODE>
scalar = ICLOSE(vector,scalar)</CODE>
</TD></TR>
</table></p>
<p>
 The <CODE>ICLOSE</CODE> function returns the index of
 <code>vector</code> which corresponds to where <code>vector</code> is closest to
 the value of <code>scalar</code>, that is, <CODE>ICLOSE</CODE>
 returns the first <code>j</code> where <code>|vector[j]-scalar|</code> is a minimum.</p>
<P>
 <font size="+1" color="green">Example</font></P>
<P>
 Suppose you have vector <code>X = [1;2;3;4;5]</code>. If you enter
 <CODE><font color="blue">A=ICLOSE(X,2.1)</font></CODE>, the scalar <code>A</code>
 will have the value 2.</P>
</BODY>
</HTML>