|
|
||
|
|
| MATHEMATICA 教程 | |函数 » |
| Nearest[{elem1,elem2,...},x] | 给出与 x 最接近的 |
| Nearest[{elem1->v1,elem2->v2,...},x] | |
| 给出与 x 最接近的对应于 | |
| Nearest[{elem1,elem2,...}->{v1,v2,...},x] | |
| 给出相同的结果 | |
| Nearest[{elem1,elem2,...}->Automatic,x] | |
| Nearest[data,x,n] | 给出与 x 最接近的 n 个元素 |
| Nearest[data,x,{n,r}] | 给出在半径 r 内,与 x 最接近的 n 个元素 |
| Nearest[data] | 产生可以重复应用于不同 x 的 NearestFunction[...] |
Nearest 函数.
| In[1]:= |
| Out[1]= |
| In[2]:= |
| Out[2]= |
| In[3]:= |
| Out[3]= |
| In[4]:= |
| Out[4]= |
| In[5]:= |
| Out[5]= |
| In[6]:= |
| Out[6]= |
| In[7]:= |
| Out[7]= |
| In[8]:= |
| Out[8]= |
| In[9]:= |
| Out[9]= |
| In[10]:= |
| Out[10]= |
| In[11]:= |
| Out[11]= |
| In[12]:= |
| Out[12]= |
选项名 | 默认值 | |
| DistanceFunction | Automatic | 使用的距离度量 |
Nearest 的选项.