diff --git a/lib/matrix.js b/lib/matrix.js index 4664820..3af9100 100644 --- a/lib/matrix.js +++ b/lib/matrix.js @@ -7,7 +7,7 @@ * @param {Matrix} out - output matrix * @param {Matrix} mat - input matrix * @param {Boolean} [bias=false] - boolean indicating whether to calculate a biased or unbiased estimate of the variance -* @param {Number} [dim=2] - matrix dimension along which to compute the maximum. If `dim=1`, compute along matrix rows. If `dim=2`, compute along matrix columns. +* @param {Number} [dim=2] - matrix dimension along which to compute the variance. If `dim=1`, compute along matrix rows. If `dim=2`, compute along matrix columns. * @returns {Matrix|Null} variance or null */ function variance( out, mat, bias, dim ) { diff --git a/lib/validate.js b/lib/validate.js index 08586e2..6e8b888 100644 --- a/lib/validate.js +++ b/lib/validate.js @@ -48,7 +48,7 @@ function validate( opts, options ) { if ( options.hasOwnProperty( 'bias' ) ) { opts.bias = options.bias; if ( !isBoolean( opts.bias ) ) { - return new TypeError( 'variance()::invalid option. Bias option must be a boolean primitive. Option: `' + opts.dim + '`.' ); + return new TypeError( 'variance()::invalid option. Bias option must be a boolean primitive. Option: `' + opts.bias + '`.' ); } } return null;