diff --git a/random/strided/exponential/coverage.ndjson b/random/strided/exponential/coverage.ndjson index 564e5f873..bca6edefa 100644 --- a/random/strided/exponential/coverage.ndjson +++ b/random/strided/exponential/coverage.ndjson @@ -1,2 +1,3 @@ [281,281,100,17,17,100,3,3,100,281,281,100,"57d81e4c196065f6680f08f22aeccfdc6e590b8f","2023-12-03 19:40:43 -0800"] [281,281,100,17,17,100,3,3,100,281,281,100,"0cb1c9609816ed86207fafdd9e57a30a3e946f8d","2024-01-05 15:41:27 -0800"] +[181,181,100,3,3,100,0,0,100,181,181,100,"c3079d227d7ab83141bc51c42bcf7501766baa86","2024-01-27 22:40:13 -0800"] diff --git a/random/strided/exponential/factory.js.html b/random/strided/exponential/factory.js.html new file mode 100644 index 000000000..0c2dcbd89 --- /dev/null +++ b/random/strided/exponential/factory.js.html @@ -0,0 +1,277 @@ + + + + + + Code coverage report for random/strided/exponential/lib/factory.js + + + + + + + + + +
+
+

All files / random/strided/exponential/lib factory.js

+
+ +
+ 100% + Statements + 64/64 +
+ + +
+ 100% + Branches + 1/1 +
+ + +
+ 100% + Functions + 0/0 +
+ + +
+ 100% + Lines + 64/64 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +654x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x +4x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2023 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+// MODULES //
+ 
+var unaryFactory = require( '@stdlib/random/strided/tools/unary-factory' );
+var base = require( '@stdlib/random/base/exponential' );
+ 
+ 
+// MAIN //
+ 
+/**
+* Returns a function for filling strided arrays containing pseudorandom numbers drawn from an exponential distribution.
+*
+* @name factory
+* @type {Function}
+* @param {Options} [options] - function options
+* @param {PRNG} [options.prng] - pseudorandom number generator which generates uniformly distributed pseudorandom numbers
+* @param {PRNGSeedMT19937} [options.seed] - pseudorandom number generator seed
+* @param {PRNGStateMT19937} [options.state] - pseudorandom number generator state
+* @param {boolean} [options.copy=true] - boolean indicating whether to copy a provided pseudorandom number generator state
+* @throws {TypeError} options argument must be an object
+* @throws {TypeError} must provide valid options
+* @throws {Error} must provide a valid state
+* @returns {Function} function for filling strided arrays
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var exponential = factory();
+* // returns <Function>
+*
+* var out = new Float64Array( 10 );
+* // returns <Float64Array>
+*
+* var arr = exponential( out.length, [ 2.0 ], 0, out, 1 );
+* // returns <Float64Array>
+*
+* var bool = ( arr === out );
+* // returns true
+*/
+var factory = unaryFactory( base );
+ 
+ 
+// EXPORTS //
+ 
+module.exports = factory;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/random/strided/exponential/index.html b/random/strided/exponential/index.html index e7e372753..919bf9665 100644 --- a/random/strided/exponential/index.html +++ b/random/strided/exponential/index.html @@ -25,28 +25,28 @@

All files random/strided/exponential/li
100% Statements - 281/281 + 181/181
100% Branches - 17/17 + 3/3
100% Functions - 3/3 + 0/0
100% Lines - 281/281 + 181/181
@@ -79,63 +79,48 @@

All files random/strided/exponential/li - index.js + factory.js
100% - 63/63 + 64/64 100% 1/1 100% 0/0 100% - 63/63 + 64/64 - main.js + index.js
100% - 70/70 - 100% - 4/4 + 63/63 100% 1/1 100% - 70/70 - - - - ndarray.js - -
- - 100% - 72/72 - 100% - 4/4 - 100% - 1/1 + 0/0 100% - 72/72 + 63/63 - prng.js + main.js
100% - 76/76 - 100% - 8/8 + 54/54 100% 1/1 100% - 76/76 + 0/0 + 100% + 54/54 @@ -146,7 +131,7 @@

All files random/strided/exponential/li