@stdlib/random-streams-improved-ziggurat 0.1.0 → 0.2.0
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/NOTICE +1 -1
- package/README.md +6 -3
- package/SECURITY.md +5 -0
- package/docs/types/index.d.ts +15 -15
- package/package.json +20 -20
- package/CITATION.cff +0 -30
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2024 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -519,7 +519,7 @@ See [LICENSE][stdlib-license].
|
|
|
519
519
|
|
|
520
520
|
## Copyright
|
|
521
521
|
|
|
522
|
-
Copyright © 2016-
|
|
522
|
+
Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
523
523
|
|
|
524
524
|
</section>
|
|
525
525
|
|
|
@@ -534,8 +534,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
534
534
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/random-streams-improved-ziggurat.svg
|
|
535
535
|
[npm-url]: https://npmjs.org/package/@stdlib/random-streams-improved-ziggurat
|
|
536
536
|
|
|
537
|
-
[test-image]: https://github.com/stdlib-js/random-streams-improved-ziggurat/actions/workflows/test.yml/badge.svg?branch=v0.
|
|
538
|
-
[test-url]: https://github.com/stdlib-js/random-streams-improved-ziggurat/actions/workflows/test.yml?query=branch:v0.
|
|
537
|
+
[test-image]: https://github.com/stdlib-js/random-streams-improved-ziggurat/actions/workflows/test.yml/badge.svg?branch=v0.2.0
|
|
538
|
+
[test-url]: https://github.com/stdlib-js/random-streams-improved-ziggurat/actions/workflows/test.yml?query=branch:v0.2.0
|
|
539
539
|
|
|
540
540
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/random-streams-improved-ziggurat/main.svg
|
|
541
541
|
[coverage-url]: https://codecov.io/github/stdlib-js/random-streams-improved-ziggurat?branch=main
|
|
@@ -562,8 +562,11 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
562
562
|
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
563
563
|
|
|
564
564
|
[deno-url]: https://github.com/stdlib-js/random-streams-improved-ziggurat/tree/deno
|
|
565
|
+
[deno-readme]: https://github.com/stdlib-js/random-streams-improved-ziggurat/blob/deno/README.md
|
|
565
566
|
[umd-url]: https://github.com/stdlib-js/random-streams-improved-ziggurat/tree/umd
|
|
567
|
+
[umd-readme]: https://github.com/stdlib-js/random-streams-improved-ziggurat/blob/umd/README.md
|
|
566
568
|
[esm-url]: https://github.com/stdlib-js/random-streams-improved-ziggurat/tree/esm
|
|
569
|
+
[esm-readme]: https://github.com/stdlib-js/random-streams-improved-ziggurat/blob/esm/README.md
|
|
567
570
|
[branches-url]: https://github.com/stdlib-js/random-streams-improved-ziggurat/blob/main/branches.md
|
|
568
571
|
|
|
569
572
|
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/random-streams-improved-ziggurat/main/LICENSE
|
package/SECURITY.md
ADDED
package/docs/types/index.d.ts
CHANGED
|
@@ -92,7 +92,7 @@ declare class RandomStream extends Readable {
|
|
|
92
92
|
* @returns stream instance
|
|
93
93
|
*
|
|
94
94
|
* @example
|
|
95
|
-
* var inspectStream = require(
|
|
95
|
+
* var inspectStream = require( '@stdlib/streams-node-inspect-sink' );
|
|
96
96
|
*
|
|
97
97
|
* function log( chunk ) {
|
|
98
98
|
* console.log( chunk.toString() );
|
|
@@ -111,37 +111,37 @@ declare class RandomStream extends Readable {
|
|
|
111
111
|
/**
|
|
112
112
|
* Destruction state.
|
|
113
113
|
*/
|
|
114
|
-
private readonly _destroyed: boolean;
|
|
114
|
+
private readonly _destroyed: boolean;
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* Flag indicating whether a stream is operating in object mode.
|
|
118
118
|
*/
|
|
119
|
-
private readonly _objectMode: boolean;
|
|
119
|
+
private readonly _objectMode: boolean;
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
122
|
* Data separator.
|
|
123
123
|
*/
|
|
124
|
-
private readonly _sep: string;
|
|
124
|
+
private readonly _sep: string;
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
127
|
* Total number of iterations.
|
|
128
128
|
*/
|
|
129
|
-
private readonly _iter: number;
|
|
129
|
+
private readonly _iter: number;
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
132
|
* Number of iterations after which to emit the underlying PRNG state.
|
|
133
133
|
*/
|
|
134
|
-
private readonly _siter: number;
|
|
134
|
+
private readonly _siter: number;
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
137
|
* Iteration counter.
|
|
138
138
|
*/
|
|
139
|
-
private _i: number;
|
|
139
|
+
private _i: number;
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
142
|
* Pseudorandom number generator for generating standard normally distributed pseudorandom numbers.
|
|
143
143
|
*/
|
|
144
|
-
private readonly _prng: random.PRNG;
|
|
144
|
+
private readonly _prng: random.PRNG;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* Underlying PRNG.
|
|
@@ -178,7 +178,7 @@ declare class RandomStream extends Readable {
|
|
|
178
178
|
*
|
|
179
179
|
* @param size - number (of bytes) to read
|
|
180
180
|
*/
|
|
181
|
-
_read( size: number ): void;
|
|
181
|
+
_read( size: number ): void;
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
184
|
* Gracefully destroys a stream, providing backward compatibility.
|
|
@@ -219,7 +219,7 @@ interface Constructor {
|
|
|
219
219
|
* @returns Stream instance
|
|
220
220
|
*
|
|
221
221
|
* @example
|
|
222
|
-
* var inspectStream = require(
|
|
222
|
+
* var inspectStream = require( '@stdlib/streams-node-inspect-sink' );
|
|
223
223
|
*
|
|
224
224
|
* function log( chunk ) {
|
|
225
225
|
* console.log( chunk.toString() );
|
|
@@ -255,7 +255,7 @@ interface Constructor {
|
|
|
255
255
|
* @returns Stream instance
|
|
256
256
|
*
|
|
257
257
|
* @example
|
|
258
|
-
* var inspectStream = require(
|
|
258
|
+
* var inspectStream = require( '@stdlib/streams-node-inspect-sink' );
|
|
259
259
|
*
|
|
260
260
|
* function log( chunk ) {
|
|
261
261
|
* console.log( chunk.toString() );
|
|
@@ -323,7 +323,7 @@ interface Constructor {
|
|
|
323
323
|
* @returns Stream instance
|
|
324
324
|
*
|
|
325
325
|
* @example
|
|
326
|
-
* var inspectStream = require(
|
|
326
|
+
* var inspectStream = require( '@stdlib/streams-node-inspect-sink' );
|
|
327
327
|
*
|
|
328
328
|
* function log( v ) {
|
|
329
329
|
* console.log( v );
|
|
@@ -349,7 +349,7 @@ interface Constructor {
|
|
|
349
349
|
* @returns stream instance
|
|
350
350
|
*
|
|
351
351
|
* @example
|
|
352
|
-
* var inspectStream = require(
|
|
352
|
+
* var inspectStream = require( '@stdlib/streams-node-inspect-sink' );
|
|
353
353
|
*
|
|
354
354
|
* function log( chunk ) {
|
|
355
355
|
* console.log( chunk.toString() );
|
|
@@ -365,7 +365,7 @@ interface Constructor {
|
|
|
365
365
|
* stream.pipe( inspectStream( log ) );
|
|
366
366
|
*
|
|
367
367
|
* @example
|
|
368
|
-
* var inspectStream = require(
|
|
368
|
+
* var inspectStream = require( '@stdlib/streams-node-inspect-sink' );
|
|
369
369
|
*
|
|
370
370
|
* function log( chunk ) {
|
|
371
371
|
* console.log( chunk.toString() );
|
|
@@ -397,7 +397,7 @@ interface Constructor {
|
|
|
397
397
|
* }
|
|
398
398
|
*
|
|
399
399
|
* @example
|
|
400
|
-
* var inspectStream = require(
|
|
400
|
+
* var inspectStream = require( '@stdlib/streams-node-inspect-sink' );
|
|
401
401
|
*
|
|
402
402
|
* function log( v ) {
|
|
403
403
|
* console.log( v );
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/random-streams-improved-ziggurat",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Create a readable stream for generating pseudorandom numbers drawn from a standard normal distribution using the Improved Ziggurat algorithm.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -37,29 +37,29 @@
|
|
|
37
37
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@stdlib/assert-has-own-property": "^0.
|
|
41
|
-
"@stdlib/assert-is-boolean": "^0.
|
|
42
|
-
"@stdlib/assert-is-error": "^0.
|
|
43
|
-
"@stdlib/assert-is-nonnegative-integer": "^0.
|
|
44
|
-
"@stdlib/assert-is-nonnegative-number": "^0.
|
|
45
|
-
"@stdlib/assert-is-plain-object": "^0.
|
|
46
|
-
"@stdlib/assert-is-positive-integer": "^0.
|
|
47
|
-
"@stdlib/assert-is-string": "^0.
|
|
48
|
-
"@stdlib/buffer-from-string": "^0.
|
|
49
|
-
"@stdlib/object-assign": "^0.
|
|
50
|
-
"@stdlib/random-base-improved-ziggurat": "^0.
|
|
51
|
-
"@stdlib/string-format": "^0.
|
|
52
|
-
"@stdlib/utils-define-nonenumerable-property": "^0.
|
|
53
|
-
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.
|
|
54
|
-
"@stdlib/utils-define-read-only-accessor": "^0.
|
|
55
|
-
"@stdlib/utils-define-read-write-accessor": "^0.
|
|
56
|
-
"@stdlib/utils-inherit": "^0.
|
|
57
|
-
"@stdlib/utils-next-tick": "^0.
|
|
40
|
+
"@stdlib/assert-has-own-property": "^0.2.0",
|
|
41
|
+
"@stdlib/assert-is-boolean": "^0.2.0",
|
|
42
|
+
"@stdlib/assert-is-error": "^0.2.0",
|
|
43
|
+
"@stdlib/assert-is-nonnegative-integer": "^0.2.0",
|
|
44
|
+
"@stdlib/assert-is-nonnegative-number": "^0.2.0",
|
|
45
|
+
"@stdlib/assert-is-plain-object": "^0.2.0",
|
|
46
|
+
"@stdlib/assert-is-positive-integer": "^0.2.0",
|
|
47
|
+
"@stdlib/assert-is-string": "^0.2.0",
|
|
48
|
+
"@stdlib/buffer-from-string": "^0.2.0",
|
|
49
|
+
"@stdlib/object-assign": "^0.2.0",
|
|
50
|
+
"@stdlib/random-base-improved-ziggurat": "^0.2.0",
|
|
51
|
+
"@stdlib/string-format": "^0.2.0",
|
|
52
|
+
"@stdlib/utils-define-nonenumerable-property": "^0.2.0",
|
|
53
|
+
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.0",
|
|
54
|
+
"@stdlib/utils-define-read-only-accessor": "^0.2.0",
|
|
55
|
+
"@stdlib/utils-define-read-write-accessor": "^0.2.0",
|
|
56
|
+
"@stdlib/utils-inherit": "^0.2.0",
|
|
57
|
+
"@stdlib/utils-next-tick": "^0.2.0",
|
|
58
58
|
"debug": "^2.6.9",
|
|
59
59
|
"readable-stream": "^2.1.4"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@stdlib/streams-node-inspect-sink": "^0.
|
|
62
|
+
"@stdlib/streams-node-inspect-sink": "^0.2.0",
|
|
63
63
|
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
|
|
64
64
|
"proxyquire": "^2.0.0",
|
|
65
65
|
"istanbul": "^0.4.1",
|
package/CITATION.cff
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
cff-version: 1.2.0
|
|
2
|
-
title: stdlib
|
|
3
|
-
message: >-
|
|
4
|
-
If you use this software, please cite it using the
|
|
5
|
-
metadata from this file.
|
|
6
|
-
|
|
7
|
-
type: software
|
|
8
|
-
|
|
9
|
-
authors:
|
|
10
|
-
- name: The Stdlib Authors
|
|
11
|
-
url: https://github.com/stdlib-js/stdlib/graphs/contributors
|
|
12
|
-
|
|
13
|
-
repository-code: https://github.com/stdlib-js/stdlib
|
|
14
|
-
url: https://stdlib.io
|
|
15
|
-
|
|
16
|
-
abstract: |
|
|
17
|
-
Standard library for JavaScript and Node.js.
|
|
18
|
-
|
|
19
|
-
keywords:
|
|
20
|
-
- JavaScript
|
|
21
|
-
- Node.js
|
|
22
|
-
- TypeScript
|
|
23
|
-
- standard library
|
|
24
|
-
- scientific computing
|
|
25
|
-
- numerical computing
|
|
26
|
-
- statistical computing
|
|
27
|
-
|
|
28
|
-
license: Apache-2.0 AND BSL-1.0
|
|
29
|
-
|
|
30
|
-
date-released: 2016
|