stdlib-js / stats-pcorrtest
Showing 1 of 2 files from the diff.
Other files ignored by Codecov

@@ -53,11 +53,11 @@
Loading
53 53
* @param {number} [options.alpha=0.05] - significance level
54 54
* @param {string} [options.alternative='two-sided'] - alternative hypothesis (`two-sided`, `less` or `greater`)
55 55
* @param {number} [options.rho=0.0] - correlation under H0
56 -
* @throws {TypeError} x argument has to be a typed array or array of numbers
57 -
* @throws {TypeError} y argument has to be a typed array or array of numbers
58 -
* @throws {Error} x and y must be arrays of the same length
59 -
* @throws {Error} x and y must contain at least four elements
60 -
* @throws {TypeError} options has to be simple object
56 +
* @throws {TypeError} first argument has to be a typed array or array of numbers
57 +
* @throws {TypeError} second argument has to be a typed array or array of numbers
58 +
* @throws {Error} first and second arguments must be arrays having the same length
59 +
* @throws {Error} first and second arguments must contain at least four elements
60 +
* @throws {TypeError} options must be an object
61 61
* @throws {TypeError} must provide valid options
62 62
* @returns {Object} test result object
63 63
*
@@ -92,7 +92,7 @@
Loading
92 92
	}
93 93
	n = x.length;
94 94
	if ( n !== y.length ) {
95 -
		throw new Error( 'invalid arguments. Arguments `x` and `y` must be arrays of the same length.' );
95 +
		throw new Error( 'invalid arguments. First and second arguments must be arrays having the same length.' );
96 96
	}
97 97
	opts = {};
98 98
	if ( options ) {
@@ -107,7 +107,7 @@
Loading
107 107
		alpha = opts.alpha;
108 108
	}
109 109
	if ( n < 4 ) {
110 -
		throw new Error( 'not enough observations. `x` and `y` must contain at least four observations.' );
110 +
		throw new Error( 'invalid arguments. Not enough observations. First and second arguments must contain at least four observations.' );
111 111
	}
112 112
	if ( opts.rho === void 0 ) {
113 113
		rho = 0.0;
Files Coverage
lib 100.00%
Project Totals (5 files) 100.00%
2285188763
unittests
2251841134
unittests
2361824897
unittests
2322957213
unittests
2438293852
unittests
2399820705
unittests
2519137913
unittests
2478658116
unittests
2559352192
unittests

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading