diff --git a/buffer/reviver/coverage.ndjson b/buffer/reviver/coverage.ndjson index 290b66708f..a3632ce3a8 100644 --- a/buffer/reviver/coverage.ndjson +++ b/buffer/reviver/coverage.ndjson @@ -1 +1,2 @@ [101,101,100,7,7,100,1,1,100,101,101,100,"8ef1f9eb45527886ba9b0c341704c8ffe6cffbb3","2023-12-28 23:13:04 -0800"] +[101,101,100,7,7,100,1,1,100,101,101,100,"c5ec686da087534151644c4fe060656dbec0d5c8","2024-01-16 19:41:46 -0800"] diff --git a/buffer/reviver/index.html b/buffer/reviver/index.html index 710b8c92a5..08cf32f91c 100644 --- a/buffer/reviver/index.html +++ b/buffer/reviver/index.html @@ -116,7 +116,7 @@

All files buffer/reviver/lib

+ + + + + + \ No newline at end of file diff --git a/random/base/kumaraswamy/index.html b/random/base/kumaraswamy/index.html new file mode 100644 index 0000000000..9ef8e5cdfd --- /dev/null +++ b/random/base/kumaraswamy/index.html @@ -0,0 +1,176 @@ + + + + + + Code coverage report for random/base/kumaraswamy/lib + + + + + + + + + +
+
+

All files random/base/kumaraswamy/lib

+
+ +
+ 99.58% + Statements + 477/479 +
+ + +
+ 98.14% + Branches + 53/54 +
+ + +
+ 100% + Functions + 12/12 +
+ + +
+ 99.58% + Lines + 477/479 +
+ + +
+

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

+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileStatementsBranchesFunctionsLines
factory.js +
+
99.26%269/27197.72%43/44100%10/1099.26%269/271
index.js +
+
100%57/57100%1/1100%0/0100%57/57
kumaraswamy.js +
+
100%45/45100%2/2100%1/1100%45/45
main.js +
+
100%50/50100%1/1100%0/0100%50/50
validate.js +
+
100%56/56100%6/6100%1/1100%56/56
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/random/base/kumaraswamy/index.js.html b/random/base/kumaraswamy/index.js.html new file mode 100644 index 0000000000..e4c5a549b1 --- /dev/null +++ b/random/base/kumaraswamy/index.js.html @@ -0,0 +1,256 @@ + + + + + + Code coverage report for random/base/kumaraswamy/lib/index.js + + + + + + + + + +
+
+

All files / random/base/kumaraswamy/lib index.js

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

+ 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 +581x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2018 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';
+ 
+/**
+* Kumaraswamy's double bounded distributed pseudorandom numbers.
+*
+* @module @stdlib/random/base/kumaraswamy
+*
+* @example
+* var kumaraswamy = require( '@stdlib/random/base/kumaraswamy' );
+*
+* var v = kumaraswamy( 2.0, 3.0 );
+* // returns <number>
+*
+* @example
+* var factory = require( '@stdlib/random/base/kumaraswamy' ).factory;
+*
+* var kumaraswamy = factory( 3.0, 2.0, {
+*     'seed': 297
+* });
+*
+* var v = kumaraswamy();
+* // returns <number>
+*/
+ 
+// MODULES //
+ 
+var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
+var main = require( './main.js' );
+var factory = require( './factory.js' );
+ 
+ 
+// MAIN //
+ 
+setReadOnly( main, 'factory', factory );
+ 
+ 
+// EXPORTS //
+ 
+module.exports = main;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/random/base/kumaraswamy/kumaraswamy.js.html b/random/base/kumaraswamy/kumaraswamy.js.html new file mode 100644 index 0000000000..e29fb5f280 --- /dev/null +++ b/random/base/kumaraswamy/kumaraswamy.js.html @@ -0,0 +1,220 @@ + + + + + + Code coverage report for random/base/kumaraswamy/lib/kumaraswamy.js + + + + + + + + + +
+
+

All files / random/base/kumaraswamy/lib kumaraswamy.js

+
+ +
+ 100% + Statements + 45/45 +
+ + +
+ 100% + Branches + 2/2 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 45/45 +
+ + +
+

+ 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 +462x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +8900x +8900x +8900x +8900x +2x +2x +2x +2x +2x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2018 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 pow = require( '@stdlib/math/base/special/pow' );
+ 
+ 
+// MAIN //
+ 
+/**
+* Returns a random number drawn from Kumaraswamy's double bounded distribution.
+*
+* @private
+* @param {PRNG} rand - pseudorandom number generator for uniformly distributed numbers
+* @param {PositiveNumber} a - first shape parameter
+* @param {PositiveNumber} b - second shape parameter
+* @returns {Probability} pseudorandom number
+*/
+function sample( rand, a, b ) {
+	var u = rand();
+	return pow( 1.0 - pow( 1.0-u, 1.0/b ), 1.0/a );
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = sample;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/random/base/kumaraswamy/main.js.html b/random/base/kumaraswamy/main.js.html new file mode 100644 index 0000000000..bcc41d8290 --- /dev/null +++ b/random/base/kumaraswamy/main.js.html @@ -0,0 +1,235 @@ + + + + + + Code coverage report for random/base/kumaraswamy/lib/main.js + + + + + + + + + +
+
+

All files / random/base/kumaraswamy/lib main.js

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

+ 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 +511x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2018 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 factory = require( './factory.js' );
+ 
+ 
+// MAIN //
+ 
+/**
+* Generates a Kumaraswamy's double bounded distributed random number.
+*
+* @name kumaraswamy
+* @type {PRNG}
+* @param {PositiveNumber} a - first shape parameter
+* @param {PositiveNumber} b - second shape parameter
+* @returns {Probability} pseudorandom number
+*
+* @example
+* var r = kumaraswamy( 2.0, 5.0 );
+* // returns <number>
+*
+* @example
+* var r = kumaraswamy( -2.0, 5.0 );
+* // returns NaN
+*/
+var kumaraswamy = factory();
+ 
+ 
+// EXPORTS //
+ 
+module.exports = kumaraswamy;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/random/base/kumaraswamy/validate.js.html b/random/base/kumaraswamy/validate.js.html new file mode 100644 index 0000000000..6bc76fd975 --- /dev/null +++ b/random/base/kumaraswamy/validate.js.html @@ -0,0 +1,253 @@ + + + + + + Code coverage report for random/base/kumaraswamy/lib/validate.js + + + + + + + + + +
+
+

All files / random/base/kumaraswamy/lib validate.js

+
+ +
+ 100% + Statements + 56/56 +
+ + +
+ 100% + Branches + 6/6 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 56/56 +
+ + +
+

+ 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 +572x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +2x +58x +58x +20x +20x +58x +11x +11x +27x +58x +2x +2x +2x +2x +2x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2018 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 isPositive = require( '@stdlib/assert/is-positive-number' ).isPrimitive;
+var format = require( '@stdlib/string/format' );
+ 
+ 
+// MAIN //
+ 
+/**
+* Validates parameters.
+*
+* @private
+* @param {PositiveNumber} a - first shape parameter
+* @param {PositiveNumber} b - second shape parameter
+* @returns {(Error|null)} error or null
+*
+* @example
+* var err = validate( 1.0, 2.0 );
+* if ( err ) {
+*     throw err;
+* }
+*/
+function validate( a, b ) {
+	if ( !isPositive( a ) ) {
+		return new TypeError( format( 'invalid argument. First argument must be a positive number. Value: `%s`.', a ) );
+	}
+	if ( !isPositive( b ) ) {
+		return new TypeError( format( 'invalid argument. Second argument must be a positive number. Value: `%s`.', b ) );
+	}
+	return null;
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = validate;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/string/pascalcase/coverage.ndjson b/string/pascalcase/coverage.ndjson new file mode 100644 index 0000000000..c7b3766828 --- /dev/null +++ b/string/pascalcase/coverage.ndjson @@ -0,0 +1 @@ +[109,109,100,5,5,100,1,1,100,109,109,100,"c5ec686da087534151644c4fe060656dbec0d5c8","2024-01-16 19:41:46 -0800"] diff --git a/string/pascalcase/index.html b/string/pascalcase/index.html new file mode 100644 index 0000000000..a7dead4572 --- /dev/null +++ b/string/pascalcase/index.html @@ -0,0 +1,131 @@ + + + + + + Code coverage report for string/pascalcase/lib + + + + + + + + + +
+
+

All files string/pascalcase/lib

+
+ +
+ 100% + Statements + 109/109 +
+ + +
+ 100% + Branches + 5/5 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 109/109 +
+ + +
+

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

+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileStatementsBranchesFunctionsLines
index.js +
+
100%46/46100%1/1100%0/0100%46/46
main.js +
+
100%63/63100%4/4100%1/1100%63/63
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/string/pascalcase/index.js.html b/string/pascalcase/index.js.html new file mode 100644 index 0000000000..2dbb905e5c --- /dev/null +++ b/string/pascalcase/index.js.html @@ -0,0 +1,223 @@ + + + + + + Code coverage report for string/pascalcase/lib/index.js + + + + + + + + + +
+
+

All files / string/pascalcase/lib index.js

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

+ 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 +4710x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2021 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';
+ 
+/**
+* Convert a string to Pascal case.
+*
+* @module @stdlib/string/pascalcase
+*
+* @example
+* var pascalcase = require( '@stdlib/string/pascalcase' );
+*
+* var str = pascalcase( 'foo bar' );
+* // returns 'FooBar'
+*
+* str = pascalcase( '--foo-bar--' );
+* // returns 'FooBar'
+*
+* str = pascalcase( 'Hello World!' );
+* // returns 'HelloWorld'
+*/
+ 
+// MODULES //
+ 
+var main = require( './main.js' );
+ 
+ 
+// EXPORTS //
+ 
+module.exports = main;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/string/pascalcase/main.js.html b/string/pascalcase/main.js.html new file mode 100644 index 0000000000..77634ebc18 --- /dev/null +++ b/string/pascalcase/main.js.html @@ -0,0 +1,274 @@ + + + + + + Code coverage report for string/pascalcase/lib/main.js + + + + + + + + + +
+
+

All files / string/pascalcase/lib main.js

+
+ +
+ 100% + Statements + 63/63 +
+ + +
+ 100% + Branches + 4/4 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 63/63 +
+ + +
+

+ 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 +6410x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +10x +41x +41x +9x +9x +32x +41x +10x +10x +10x +10x +10x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2021 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 isString = require( '@stdlib/assert/is-string' ).isPrimitive;
+var format = require( '@stdlib/string/format' );
+var base = require( '@stdlib/string/base/pascalcase' );
+ 
+ 
+// MAIN //
+ 
+/**
+* Converts a string to Pascal case.
+*
+* @param {string} str - string to convert
+* @throws {TypeError} must provide a string
+* @returns {string} Pascal-cased string
+*
+* @example
+* var out = pascalcase( 'foo bar' );
+* // returns 'FooBar'
+*
+* @example
+* var out = pascalcase( 'IS_MOBILE' );
+* // returns 'IsMobile'
+*
+* @example
+* var out = pascalcase( 'Hello World!' );
+* // returns 'HelloWorld'
+*
+* @example
+* var out = pascalcase( '--foo-bar--' );
+* // returns 'FooBar'
+*/
+function pascalcase( str ) {
+	if ( !isString( str ) ) {
+		throw new TypeError( format( 'invalid argument. First argument must be a string. Value: `%s`.', str ) );
+	}
+	return base( str );
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = pascalcase;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file