@thi.ng/cellular 0.2.23 → 0.2.25
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/1d.d.ts +6 -2
- package/1d.js +6 -2
- package/CHANGELOG.md +1 -1
- package/README.md +1 -1
- package/api.d.ts +2 -1
- package/package.json +8 -8
package/1d.d.ts
CHANGED
|
@@ -162,7 +162,9 @@ export declare class MultiCA1D implements IClear {
|
|
|
162
162
|
setPattern(target: Target, width: number, stride: number, val?: number, inc?: number, offset?: number): this;
|
|
163
163
|
/**
|
|
164
164
|
* Sets cells in current generation array to a random state using given
|
|
165
|
-
* `probability` and optional PRNG
|
|
165
|
+
* `probability` and optional PRNG
|
|
166
|
+
* ([`IRandom`](https://docs.thi.ng/umbrella/random/interfaces/IRandom.html)
|
|
167
|
+
* instance).
|
|
166
168
|
*
|
|
167
169
|
* @param target
|
|
168
170
|
* @param prob
|
|
@@ -217,7 +219,9 @@ export declare class MultiCA1D implements IClear {
|
|
|
217
219
|
}
|
|
218
220
|
/**
|
|
219
221
|
* Creates a random rule ID for given `kernelSize` and using optionally provided
|
|
220
|
-
* `rnd`
|
|
222
|
+
* `rnd`
|
|
223
|
+
* [`IRandom`](https://docs.thi.ng/umbrella/random/interfaces/IRandom.html)
|
|
224
|
+
* instance.
|
|
221
225
|
*
|
|
222
226
|
* @param kernelSize
|
|
223
227
|
* @param rnd
|
package/1d.js
CHANGED
|
@@ -200,7 +200,9 @@ export class MultiCA1D {
|
|
|
200
200
|
}
|
|
201
201
|
/**
|
|
202
202
|
* Sets cells in current generation array to a random state using given
|
|
203
|
-
* `probability` and optional PRNG
|
|
203
|
+
* `probability` and optional PRNG
|
|
204
|
+
* ([`IRandom`](https://docs.thi.ng/umbrella/random/interfaces/IRandom.html)
|
|
205
|
+
* instance).
|
|
204
206
|
*
|
|
205
207
|
* @param target
|
|
206
208
|
* @param prob
|
|
@@ -361,7 +363,9 @@ const __rotate = (buf, dir) => {
|
|
|
361
363
|
};
|
|
362
364
|
/**
|
|
363
365
|
* Creates a random rule ID for given `kernelSize` and using optionally provided
|
|
364
|
-
* `rnd`
|
|
366
|
+
* `rnd`
|
|
367
|
+
* [`IRandom`](https://docs.thi.ng/umbrella/random/interfaces/IRandom.html)
|
|
368
|
+
* instance.
|
|
365
369
|
*
|
|
366
370
|
* @param kernelSize
|
|
367
371
|
* @param rnd
|
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ This project is part of the
|
|
|
31
31
|
|
|
32
32
|

|
|
33
33
|
|
|
34
|
-
Highly customizable 1D cellular automata, shared env, multiple rules, arbitrary sized/shaped neighborhoods, short term memory, cell states etc
|
|
34
|
+
Highly customizable 1D cellular automata, shared env, multiple rules, arbitrary sized/shaped neighborhoods, short term memory, cell states etc..
|
|
35
35
|
|
|
36
36
|
The generic implementation provided by this package enables many novel and
|
|
37
37
|
unusual CA setups as well as coevolution of multiple CAs within a shared
|
package/api.d.ts
CHANGED
|
@@ -104,7 +104,8 @@ export interface UpdateImageOpts1D {
|
|
|
104
104
|
probabilistic: boolean;
|
|
105
105
|
/**
|
|
106
106
|
* PRNG instance to use for perturbance. Default:
|
|
107
|
-
*
|
|
107
|
+
* [`SYSTEM`](https://docs.thi.ng/umbrella/random/variables/SYSTEM.html) aka
|
|
108
|
+
* `Math.random`.
|
|
108
109
|
*/
|
|
109
110
|
rnd: IRandom;
|
|
110
111
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/cellular",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.25",
|
|
4
4
|
"description": "Highly customizable 1D cellular automata, shared env, multiple rules, arbitrary sized/shaped neighborhoods, short term memory, cell states etc.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.6.
|
|
38
|
-
"@thi.ng/checks": "^3.3.
|
|
39
|
-
"@thi.ng/errors": "^2.2.
|
|
40
|
-
"@thi.ng/random": "^3.3.
|
|
41
|
-
"@thi.ng/transducers": "^8.3.
|
|
37
|
+
"@thi.ng/api": "^8.6.2",
|
|
38
|
+
"@thi.ng/checks": "^3.3.6",
|
|
39
|
+
"@thi.ng/errors": "^2.2.7",
|
|
40
|
+
"@thi.ng/random": "^3.3.20",
|
|
41
|
+
"@thi.ng/transducers": "^8.3.28"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@microsoft/api-extractor": "^7.33.7",
|
|
45
|
-
"@thi.ng/testament": "^0.3.
|
|
45
|
+
"@thi.ng/testament": "^0.3.8",
|
|
46
46
|
"rimraf": "^3.0.2",
|
|
47
47
|
"tools": "^0.0.1",
|
|
48
48
|
"typedoc": "^0.23.22",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
],
|
|
93
93
|
"year": 2022
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "bc6f7f5e2765bb96fe64db804eaf4b2443b47fc6\n"
|
|
96
96
|
}
|