dolphindb 2.0.971 → 2.0.972

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/docs.en.json +341 -976
  2. package/docs.zh.json +71 -53
  3. package/package.json +5 -5
package/docs.zh.json CHANGED
@@ -17133,7 +17133,7 @@
17133
17133
  "language": "console",
17134
17134
  "value": [
17135
17135
  " ",
17136
- " $ y=1 3 5 7 11 16 23",
17136
+ " $ x=1 3 5 7 11 16 23",
17137
17137
  " $ y=1 6 9 8 15 23 34;",
17138
17138
  "",
17139
17139
  " $ cumbeta(y,x);",
@@ -25680,7 +25680,7 @@
25680
25680
  {
25681
25681
  "type": "text",
25682
25682
  "value": [
25683
- "`A` 是一个方阵。"
25683
+ "`A` 是一个实对称矩阵或 Hermitian(共轭对称)矩阵。"
25684
25684
  ]
25685
25685
  }
25686
25686
  ]
@@ -25692,7 +25692,9 @@
25692
25692
  {
25693
25693
  "type": "text",
25694
25694
  "value": [
25695
- "返回一个字典,为矩阵A的特征值与特征向量。"
25695
+ "返回一个字典,为矩阵 A 的特征值与特征向量。",
25696
+ "",
25697
+ "该函数的计算结果与 numpy.linalg.eigh 函数的结果保持一致。"
25696
25698
  ]
25697
25699
  }
25698
25700
  ]
@@ -42068,7 +42070,7 @@
42068
42070
  {
42069
42071
  "type": "text",
42070
42072
  "value": [
42071
- "interpolate(array, [method='linear'], [limit], [inplace=false], [limit_direction='forward'], [limit_area])"
42073
+ "interpolate(X, [method='linear'], [limit], [inplace=false], [limitDirection='forward'], [limitArea])"
42072
42074
  ]
42073
42075
  }
42074
42076
  ]
@@ -42080,28 +42082,33 @@
42080
42082
  {
42081
42083
  "type": "text",
42082
42084
  "value": [
42083
- "`array` 是一个数值型向量。",
42085
+ "必填参数:",
42086
+ "`X` 是一个数值型向量。",
42084
42087
  "",
42085
- "`method` 是一个字符串,表示插值的方式。它可以是以下取值:",
42088
+ "可选参数:",
42089
+ "",
42090
+ "`method` 是一个字符串,表示插值的方式。它的可取值为:",
42086
42091
  "",
42087
42092
  "* linear: 线性插值",
42088
42093
  "* pad: 使用已有的值填充",
42089
- "* nearest: 使用最接近NULL值的有效值填充",
42090
- "* krogh: 使用krogh多项式插值",
42094
+ "* nearest: 使用最接近 NULL 值的有效值填充",
42095
+ "* krogh: 使用 krogh 多项式插值",
42091
42096
  "",
42092
- "如果没有指定,默认值为linear。",
42097
+ "如果没有指定,默认值为 linear。",
42093
42098
  "",
42094
- "`limit` 是一个正整数,表示最多要填充的连续NULL值的个数。",
42099
+ "`limit` 是一个正整数,表示最多要填充的连续 NULL 值的个数。",
42095
42100
  "",
42096
- "`inplace` 是一个布尔值,表示是否使用结果覆盖输入的array。默认值为false,会返回一个新的向量。",
42101
+ "`inplace` 是一个布尔值,表示是否使用结果覆盖输入的 X。默认值为 false,会返回一个新的向量。",
42097
42102
  "",
42098
- "`limit_direction` 是一个字符串,表示填充NULL的方向。它可以是以下取值:forward, backward和both。它是一个可选参数,默认值为forward。",
42103
+ "`limitDirection` 是一个字符串,表示填充 NULL 的方向。它的可取值为:forward, backward 和 both。默认值为 forward。",
42099
42104
  "",
42100
- "`limit_area` 是一个字符串,表示填充的区域。它可以是以下取值:",
42105
+ "`limitArea` 是一个字符串,表示填充的区域。它的可取值为:",
42101
42106
  "",
42102
42107
  "* 空字符串: 填充的区域没有限制",
42103
42108
  "* inside: 只填充有效值包围的NULL值",
42104
- "* outside: 只填充有效值之外的NULL值"
42109
+ "* outside: 只填充有效值之外的NULL值",
42110
+ "",
42111
+ "注意:指定 `method`, `limitDirection` 和 `limitArea` 的参数值时,应用 “” 或 ''包夹。"
42105
42112
  ]
42106
42113
  }
42107
42114
  ]
@@ -42113,7 +42120,18 @@
42113
42120
  {
42114
42121
  "type": "text",
42115
42122
  "value": [
42116
- "填充向量中的NULL值。"
42123
+ "填充数值型向量中的 NULL 值。"
42124
+ ]
42125
+ }
42126
+ ]
42127
+ },
42128
+ {
42129
+ "title": "返回值",
42130
+ "children": [
42131
+ {
42132
+ "type": "text",
42133
+ "value": [
42134
+ "返回填充了指定个数 NULL 值的数值型向量。数据类型:数值型向量。"
42117
42135
  ]
42118
42136
  }
42119
42137
  ]
@@ -42132,22 +42150,22 @@
42132
42150
  " $ interpolate(a);",
42133
42151
  " [,,1,2,3,4,5,6,6,6]",
42134
42152
  "",
42135
- " $ interpolate(array=a, method='pad');",
42153
+ " $ interpolate(X=a, method=\"pad\");",
42136
42154
  " [,,1,2,2,2,5,6,6,6]",
42137
42155
  "",
42138
- " $ interpolate(array=a, limit_direction='both');",
42156
+ " $ interpolate(X=a, limitDirection='both');",
42139
42157
  " [1,1,1,2,3,4,5,6,6,6]",
42140
42158
  "",
42141
- " $ interpolate(array=a, limit=1, limit_direction='both');",
42159
+ " $ interpolate(X=a, limit=1, limitDirection='both');",
42142
42160
  " [,1,1,2,3,4,5,6,6,]",
42143
42161
  "",
42144
- " $ interpolate(array=a, limit_direction='both', limit_area='outside');",
42162
+ " $ interpolate(X=a, limitDirection='both', limitArea='outside');",
42145
42163
  " [1,1,1,2,,,5,6,6,6]",
42146
42164
  "",
42147
42165
  " $ a;",
42148
42166
  " [,,1,2,,,5,6,,]",
42149
42167
  "",
42150
- " $ interpolate(array=a, limit_direction='backward', inplace=true);",
42168
+ " $ interpolate(X=a, limitDirection='backward', inplace=true);",
42151
42169
  " [1,1,1,2,3,4,5,6,,]",
42152
42170
  "",
42153
42171
  " $ a;",
@@ -48458,33 +48476,33 @@
48458
48476
  "",
48459
48477
  "返回值说明:",
48460
48478
  "",
48461
- "+------------------+---------------------------------------------------------------------------------------+",
48462
- "| 参数 | 含义 |",
48463
- "+==================+=======================================================================================+",
48464
- "| authorization | 授权的类型:trial(试用版)/test(测试版)/commercial(商业版)。 |",
48465
- "+------------------+---------------------------------------------------------------------------------------+",
48466
- "| licenseType | 许可证验证类型,有以下可选值:1:机器指纹绑定 2:在线验证 0:其他方式 |",
48467
- "+------------------+---------------------------------------------------------------------------------------+",
48468
- "| maxMemoryPerNode | 每个节点的内存上限,单位为 GB。 |",
48469
- "+------------------+---------------------------------------------------------------------------------------+",
48470
- "| bindCores | 进程绑定的 CPU 内核的编号(从0开始)。注意,仅当 bindCPU 为 true 时有效。 |",
48471
- "+------------------+---------------------------------------------------------------------------------------+",
48472
- "| maxCoresPerNode | 每个节点允许最大 CPU 核数。 |",
48473
- "+------------------+---------------------------------------------------------------------------------------+",
48474
- "| clientName | 客户名称。 |",
48475
- "+------------------+---------------------------------------------------------------------------------------+",
48476
- "| port | 为节点绑定的端口号。仅 License Server 和连接它的节点会返回此字段。 |",
48477
- "+------------------+---------------------------------------------------------------------------------------+",
48478
- "| bindCPU | 进程是否绑定 CPU。 |",
48479
- "+------------------+---------------------------------------------------------------------------------------+",
48480
- "| expiration | 许可证到期时间。 |",
48481
- "+------------------+---------------------------------------------------------------------------------------+",
48482
- "| maxNodes | 集群允许的最大节点数。 |",
48483
- "+------------------+---------------------------------------------------------------------------------------+",
48484
- "| version | server 的版本号。用户只能使用不高于 version 版本的 server。若为空,则对版本没有限制。 |",
48485
- "+------------------+---------------------------------------------------------------------------------------+",
48486
- "| modules | 模块名。用户只能使用 modules 指定的模块。若为 -1 表示对使用的模块没有限制。 |",
48487
- "+------------------+---------------------------------------------------------------------------------------+"
48479
+ "+------------------+-----------------------------------------------------------------------------------------------+",
48480
+ "| 参数 | 含义 |",
48481
+ "+==================+===============================================================================================+",
48482
+ "| authorization | 授权的类型:trial(试用版)/test(测试版)/commercial(商业版)。 |",
48483
+ "+------------------+-----------------------------------------------------------------------------------------------+",
48484
+ "| licenseType | 许可证验证类型,有以下可选值:1:机器指纹绑定;2:在线验证;3:license server;0:其他方式 |",
48485
+ "+------------------+-----------------------------------------------------------------------------------------------+",
48486
+ "| maxMemoryPerNode | 每个节点的内存上限,单位为 GB。 |",
48487
+ "+------------------+-----------------------------------------------------------------------------------------------+",
48488
+ "| bindCores | 进程绑定的 CPU 内核的编号(从0开始)。注意,仅当 bindCPU 为 true 时有效。 |",
48489
+ "+------------------+-----------------------------------------------------------------------------------------------+",
48490
+ "| maxCoresPerNode | 每个节点允许最大 CPU 核数。 |",
48491
+ "+------------------+-----------------------------------------------------------------------------------------------+",
48492
+ "| clientName | 客户名称。 |",
48493
+ "+------------------+-----------------------------------------------------------------------------------------------+",
48494
+ "| port | 为节点绑定的端口号。仅 License Server 和连接它的节点会返回此字段。 |",
48495
+ "+------------------+-----------------------------------------------------------------------------------------------+",
48496
+ "| bindCPU | 进程是否绑定 CPU。 |",
48497
+ "+------------------+-----------------------------------------------------------------------------------------------+",
48498
+ "| expiration | 许可证到期时间。 |",
48499
+ "+------------------+-----------------------------------------------------------------------------------------------+",
48500
+ "| maxNodes | 集群允许的最大节点数。 |",
48501
+ "+------------------+-----------------------------------------------------------------------------------------------+",
48502
+ "| version | server 的版本号。用户只能使用不高于 version 版本的 server。若为空,则对版本没有限制。 |",
48503
+ "+------------------+-----------------------------------------------------------------------------------------------+",
48504
+ "| modules | 模块名。用户只能使用 modules 指定的模块。若为 -1 表示对使用的模块没有限制。 |",
48505
+ "+------------------+-----------------------------------------------------------------------------------------------+"
48488
48506
  ]
48489
48507
  }
48490
48508
  ]
@@ -53072,7 +53090,7 @@
53072
53090
  {
53073
53091
  "type": "text",
53074
53092
  "value": [
53075
- "makeCall(F, args, ...)"
53093
+ "makeCall(F, args...)"
53076
53094
  ]
53077
53095
  }
53078
53096
  ]
@@ -53086,7 +53104,7 @@
53086
53104
  "value": [
53087
53105
  "`F` 是一个函数。",
53088
53106
  "",
53089
- "`args`, `...` 是 *F* 需要的参数。"
53107
+ "`args` 是 *F* 需要的参数。"
53090
53108
  ]
53091
53109
  }
53092
53110
  ]
@@ -62466,16 +62484,16 @@
62466
62484
  "",
62467
62485
  " $ X = 2 1 3 7 6 5 4",
62468
62486
  " $ X1 = 2 1 3 NULL 6 5 4",
62469
- " $ Y = 1 0.5 1 1 2 2.1",
62487
+ " $ Y = 1 0.5 1 1 2 2.1 2",
62470
62488
  "",
62471
62489
  " $ mwsum(X, Y, 3);",
62472
- " [,,5.5,10.5,22,29.5,24.5]",
62490
+ " [,,5.5,10.5,22,29.5,30.5]",
62473
62491
  "",
62474
62492
  " $ mwsum(X1, Y, 3)",
62475
- " [,,5.5,3.5,15,22.5,24.5]",
62493
+ " [,,5.5,3.5,15,22.5,30.5]",
62476
62494
  "",
62477
62495
  " $ mwsum(X1, Y, 3, minPeriods=1)",
62478
- " [2,2.5,5.5,3.5,15,22.5,24.5]",
62496
+ " [2,2.5,5.5,3.5,15,22.5,30.5]",
62479
62497
  ""
62480
62498
  ]
62481
62499
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dolphindb",
3
3
  "description": "DolphinDB JavaScript API",
4
- "version": "2.0.971",
4
+ "version": "2.0.972",
5
5
  "type": "module",
6
6
  "main": "./index.js",
7
7
  "browser": "./browser.js",
@@ -26,8 +26,8 @@
26
26
  ],
27
27
  "devDependencies": {
28
28
  "@types/node": "^20.2.5",
29
- "@typescript-eslint/eslint-plugin": "^5.59.7",
30
- "@typescript-eslint/parser": "^5.59.7",
29
+ "@typescript-eslint/eslint-plugin": "^5.59.8",
30
+ "@typescript-eslint/parser": "^5.59.8",
31
31
  "eslint": "^8.41.0",
32
32
  "eslint-plugin-xlint": "^1.0.6",
33
33
  "ts-node": "^10.9.1",
@@ -35,9 +35,9 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "dayjs": "^1.11.7",
38
- "ipaddr.js": "^2.0.1",
38
+ "ipaddr.js": "^2.1.0",
39
39
  "tslib": "^2.5.2",
40
- "xshell": "^1.0.28"
40
+ "xshell": "^1.0.30"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "tsc",