@datagrok/compute 1.6.4 → 1.7.2
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.
- package/dist/package.js +1 -1
- package/dist/package.js.map +1 -1
- package/package.json +2 -2
- package/scripts/Lotka-Volterra.js +2 -0
- package/scripts/demo-rfv-df-input.js +3 -0
- package/scripts/demo-rfv-simple.js +4 -2
- package/scripts/heat-exchange.js +3 -0
- package/scripts/logistic-map.js +2 -0
- package/scripts/lorenz-attractor.js +1 -0
- package/scripts/pkpd.R +3 -0
- package/scripts/trig.js +3 -0
- package/scripts/vmax.js +4 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datagrok/compute",
|
|
3
3
|
"friendlyName": "Compute",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.2",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Aufar Zakiev",
|
|
7
7
|
"email": "aufar.zakiev@softwarecountry.com"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"directory": "packages/Compute"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@datagrok-libraries/compute-utils": "^1.
|
|
16
|
+
"@datagrok-libraries/compute-utils": "^1.7.2",
|
|
17
17
|
"cash-dom": "latest",
|
|
18
18
|
"datagrok-api": "^1.14.0",
|
|
19
19
|
"dayjs": "latest",
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
//input: double timeStart = 0
|
|
14
14
|
//input: double timeStop = 18
|
|
15
15
|
//output: dataframe df {viewer: Line Chart(x: "Time", multiAxis: "true", title: "Lotka-Volterra Model")}
|
|
16
|
+
//meta.runOnOpen: true
|
|
17
|
+
//meta.runOnInput: true
|
|
16
18
|
|
|
17
19
|
|
|
18
20
|
function sumArrays(...arrays) {
|
|
@@ -5,5 +5,8 @@
|
|
|
5
5
|
//input: dataframe inputDf {caption: Input dataframe; viewer: Grid()}
|
|
6
6
|
//output: dataframe outputDf {caption: Output dataframe; viewer: Line chart(block: 50) | Scatter plot(block: 50) | Statistics(block: 100); category: Stats}
|
|
7
7
|
//editor: Compute:RichFunctionViewEditor
|
|
8
|
+
//meta.runOnOpen: true
|
|
9
|
+
//meta.runOnInput: true
|
|
10
|
+
|
|
8
11
|
|
|
9
12
|
outputDf = inputDf.clone();
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
//description: Uses Newton's law of cooling to simulate object cooling process. Default values are for cube of boiling water in air.
|
|
3
3
|
//language: javascript
|
|
4
4
|
//tags: simulation, demo
|
|
5
|
-
//input: double ambTemp = 22 {caption: Ambient temperature; units: C; category: Environment}
|
|
6
|
-
//input: double initTemp = 100 {caption: Initial temperature; units: C; category: Environment}
|
|
5
|
+
//input: double ambTemp = 22 {caption: Ambient temperature; units: C; category: Environment; block: 50}
|
|
6
|
+
//input: double initTemp = 100 {caption: Initial temperature; units: C; category: Environment; block: 50}
|
|
7
7
|
//input: double desiredTemp = 30 {caption: Desired temperature; units: C; category: Environment}
|
|
8
8
|
//input: double area = 0.06 {caption: Surface area; units: m²; category: Object properties}
|
|
9
9
|
//input: double heatCap = 4200 {caption: Heat capacity; units: J/C; category: Object properties}
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
//output: double tempDiff {caption: Temperature difference; units: C; category: Calculations}
|
|
16
16
|
//editor: Compute:RichFunctionViewEditor
|
|
17
17
|
//meta.uploadMode: true
|
|
18
|
+
//meta.runOnOpen: true
|
|
19
|
+
//meta.runOnInput: true
|
|
18
20
|
|
|
19
21
|
timeToCool = undefined;
|
|
20
22
|
|
package/scripts/heat-exchange.js
CHANGED
package/scripts/logistic-map.js
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
//input: double res = 8 [Largest n-cycle visible]
|
|
9
9
|
//output: dataframe df {viewer: Scatter plot(title: "Logistic map")}
|
|
10
10
|
//meta.domain: Nonlinear dynamics
|
|
11
|
+
//meta.runOnOpen: true
|
|
12
|
+
//meta.runOnInput: true
|
|
11
13
|
|
|
12
14
|
function getRandomNumberInRange(min, max) {
|
|
13
15
|
return Math.random() * (max - min) + min;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
//input: double z0 = 1.05 [Initial conditions for distortion (from linearity) of the vertical temperature profile]
|
|
11
11
|
//output: dataframe df {caption: Lorenz attractor; viewer: 3d Scatter plot())}
|
|
12
12
|
//editor: Compute:RichFunctionViewEditor
|
|
13
|
+
//meta.runOnOpen: true
|
|
13
14
|
//meta.runOnInput: true
|
|
14
15
|
|
|
15
16
|
function lorenzEquations(x, y, z, s=10, r=28, b=2.667) {
|
package/scripts/pkpd.R
CHANGED
package/scripts/trig.js
CHANGED
package/scripts/vmax.js
CHANGED
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
//output: dataframe sampleCharacteristics {viewer: Grid(block: 25, showColumnLabels: false, showRowHeader: false); caption: Sample characteristics; category: OUTPUT}
|
|
20
20
|
//output: dataframe filter {viewer: Grid(block: 25, showColumnLabels: false, showRowHeader: false); caption: Filter; category: OUTPUT}
|
|
21
21
|
//editor: Compute:ComputationView
|
|
22
|
+
//meta.runOnOpen: true
|
|
23
|
+
//meta.runOnInput: true
|
|
24
|
+
|
|
25
|
+
|
|
22
26
|
// inputTable = grok.shell.tables[0]; reportingParameters = grok.shell.tables[1];
|
|
23
27
|
// testFilterArea = 3.5; desiredVolumeOfBatch = 25; desiredProcessTime = 0.5; sf = 1.5;
|
|
24
28
|
|