Move runtime and document pages into their correct scope, remove obsolete pending entries, and regenerate the function index.\nUpdate agent test guidance and API skill routing to match the new reference layout.
5.6 KiB
5.6 KiB
Builtin - 资源 / 网络
Network_Conv_AdjDir(matrix, matrix_type, dir_type)
图结构算法-矩阵转换:方向调整 将3类关联矩阵转为方向统一的矩阵: 1)正向处理 统计类矩阵,越大越好,value 相关系数矩阵,绝对值越大越好,abs(value) 距离类矩阵,越小越好,1/value 2)反向处理:上述取倒数
| 参数 | 类型 | 说明 |
|---|---|---|
matrix |
array | 二维数字数组, 关联矩阵 |
matrix_type |
any | 用户自定义, 关联矩阵类型 |
dir_type |
any | 用户自定义, 关联矩阵调整方向 |
返回:array
Network_Conv_ToDist(matrix)
将关联矩阵转换为距离矩阵 要求关联矩阵是正数矩阵,且值越大表示关联性越强
| 参数 | 类型 | 说明 |
|---|---|---|
matrix |
array | 二维数字数组, 关联矩阵,其中值大于0表示两节点之间的关联强度 |
返回:array
Network_Node_DegreeCentrality(matrix)
度中心度
| 参数 | 类型 | 说明 |
|---|---|---|
matrix |
array | 二维数字数组类型,关联矩阵 |
返回:array
Network_Node_ClosenessCentrality(matrix, matrix_type)
邻近中心度
| 参数 | 类型 | 说明 |
|---|---|---|
matrix |
array | 二维数字数组类型,关联矩阵 |
matrix_type |
any | 整数型,关联矩阵类型 |
返回:array
Network_Node_BetweennessCentrality(matrix, matrix_type)
中介中心度
| 参数 | 类型 | 说明 |
|---|---|---|
matrix |
array | 二维数字数组类型,关联矩阵 |
matrix_type |
any | 整数型,关联矩阵类型 |
返回:array
Network_Node_NetCentrality(matrix, matrix_type)
网络中心度
| 参数 | 类型 | 说明 |
|---|---|---|
matrix |
array | 二维数字数组类型,关联矩阵 |
matrix_type |
any | 整数型,关联矩阵类型 |
返回:array
Network_Node_EigenvectorCentrality(matrix, matrix_type)
特征向量中心度
| 参数 | 类型 | 说明 |
|---|---|---|
matrix |
array | 二维数字数组类型,关联矩阵 |
matrix_type |
any | 整数型,关联矩阵类型 |
返回:array
Network_Density(matrix)
网络密度
| 参数 | 类型 | 说明 |
|---|---|---|
matrix |
array | 二维数字数组类型,关联矩阵 |
返回:float
Network_AveragePathLength(matrix, matrix_type)
平均路径长度
| 参数 | 类型 | 说明 |
|---|---|---|
matrix |
array | 二维数字数组类型,关联矩阵 |
matrix_type |
any | 整数型,关联矩阵类型 |
返回:float
Network_MeanOccupiedLayer(matrix, matrix_type)
平均占有层
| 参数 | 类型 | 说明 |
|---|---|---|
matrix |
array | 二维数字数组类型,关联矩阵 |
matrix_type |
any | 整数型,关联矩阵类型 |
返回:float
sysSendMail()
(参考文档未提供简述。)
返回:any
getUrl(src_url, parse_url)
解析在HTML中出现的URL,返回全路径URL串。
| 参数 | 类型 | 说明 |
|---|---|---|
src_url |
string | 字符串类型,所需解析的URL所在HTML的源URL。 |
parse_url |
string | 字符串类型,所需要解析的URL。 |
返回:string
示例
getUrl('http://www.tinysoft.com.cn', 'index.html')
// 结果为:http://www.tinysoft.com.cn/index.html
createHttpSession()
创建一个http Session对象,并返回会话ID,即Session id。仅新一代TSL语言支持该函数。
返回:integer
示例
// 获取指定网页的头部信息
sid := createHttpSession();
url := "http://www.baidu.com";
r := getHttp(sid, url, 60000, v, code);
hd := getHttpResponseHeader(sid);
echo hd, "\r\n";
return 1;
parseHtml(html, parsed, attr_name_is_index)
将指定的Html字符串解析成为类似于DOM格式的结构。
| 参数 | 类型 | 说明 |
|---|---|---|
html |
string | 字符串类型,所需解析的HTML串。 |
parsed |
array | 存放返回的类DOM结构。 |
attr_name_is_index |
bool=false | 节点的属性是否以属性名作为下标。缺省值为假,属性以0,1,2自然下标序列的数字下标排列,为真则属性值以属性名为字符串下标。 |
返回:bool