Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import { float64ndarray, typedndarray } from '@stdlib/types/ndarray';
* var v = dmeanstdev( [ x, out, correction ] );
* // returns <ndarray>[ 2.5, ~1.2910 ]
*/
declare function dmeanstdev<T extends typedndarray<number> = typedndarray<number>>( arrays: [ float64ndarray, float64ndarray, T ] ): float64ndarray;
declare function dmeanstdev( arrays: [ float64ndarray, float64ndarray, typedndarray<number> ] ): float64ndarray;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import { float64ndarray, typedndarray } from '@stdlib/types/ndarray';
* var v = dnanstdev( [ x, correction ] );
* // returns ~2.0817
*/
declare function dnanstdev<T extends typedndarray<number> = typedndarray<number>>( arrays: [ float64ndarray, T ] ): number;
declare function dnanstdev( arrays: [ float64ndarray, typedndarray<number> ] ): number;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import { float64ndarray, typedndarray } from '@stdlib/types/ndarray';
* var v = dnanstdevch( [ x, correction ] );
* // returns ~2.0817
*/
declare function dnanstdevch<T extends typedndarray<number> = typedndarray<number>>( arrays: [ float64ndarray, T ] ): number;
declare function dnanstdevch( arrays: [ float64ndarray, typedndarray<number> ] ): number;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import { float64ndarray, typedndarray } from '@stdlib/types/ndarray';
* var v = dnanstdevpn( [ x, correction ] );
* // returns ~2.0817
*/
declare function dnanstdevpn<T extends typedndarray<number> = typedndarray<number>>( arrays: [ float64ndarray, T ] ): number;
declare function dnanstdevpn( arrays: [ float64ndarray, typedndarray<number> ] ): number;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import { float32ndarray, typedndarray } from '@stdlib/types/ndarray';
* var v = sstdev( [ x, correction ] );
* // returns ~2.0817
*/
declare function sstdev<T extends typedndarray<number> = typedndarray<number>>( arrays: [ float32ndarray, T ] ): number;
declare function sstdev( arrays: [ float32ndarray, typedndarray<number> ] ): number;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import { float32ndarray, typedndarray } from '@stdlib/types/ndarray';
* var v = sstdevch( [ x, correction ] );
* // returns ~2.0817
*/
declare function sstdevch<T extends typedndarray<number> = typedndarray<number>>( arrays: [ float32ndarray, T ] ): number;
declare function sstdevch( arrays: [ float32ndarray, typedndarray<number> ] ): number;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import { float32ndarray, typedndarray } from '@stdlib/types/ndarray';
* var v = sstdevpn( [ x, correction ] );
* // returns ~2.0817
*/
declare function sstdevpn<T extends typedndarray<number> = typedndarray<number>>( arrays: [ float32ndarray, T ] ): number;
declare function sstdevpn( arrays: [ float32ndarray, typedndarray<number> ] ): number;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import { float32ndarray, typedndarray } from '@stdlib/types/ndarray';
* var v = sstdevtk( [ x, correction ] );
* // returns ~2.0817
*/
declare function sstdevtk<T extends typedndarray<number> = typedndarray<number>>( arrays: [ float32ndarray, T ] ): number;
declare function sstdevtk( arrays: [ float32ndarray, typedndarray<number> ] ): number;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import { float32ndarray, typedndarray } from '@stdlib/types/ndarray';
* var v = sstdevwd( [ x, correction ] );
* // returns ~2.0817
*/
declare function sstdevwd<T extends typedndarray<number> = typedndarray<number>>( arrays: [ float32ndarray, T ] ): number;
declare function sstdevwd( arrays: [ float32ndarray, typedndarray<number> ] ): number;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import { float32ndarray, typedndarray } from '@stdlib/types/ndarray';
* var v = sstdevyc( [ x, correction ] );
* // returns ~2.0817
*/
declare function sstdevyc<T extends typedndarray<number> = typedndarray<number>>( arrays: [ float32ndarray, T ] ): number;
declare function sstdevyc( arrays: [ float32ndarray, typedndarray<number> ] ): number;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type accumulator = ( x?: number ) => number | null;
/**
* Returns an accumulator function which incrementally computes an unbiased sample variance, ignoring `NaN` values.
*
* @param mu - known mean
* @param mean - known mean
* @returns accumulator function
*
* @example
Expand All @@ -50,7 +50,7 @@ type accumulator = ( x?: number ) => number | null;
* s2 = accumulator();
* // returns 24.5
*/
declare function incrnanvariance( mu?: number ): accumulator;
declare function incrnanvariance( mean?: number ): accumulator;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type accumulator = ( x?: number ) => number | null;
/**
* Returns an accumulator function which incrementally computes a corrected sample standard deviation.
*
* @param mu - known mean
* @param mean - known mean
* @returns accumulator function
*
* @example
Expand All @@ -53,7 +53,7 @@ type accumulator = ( x?: number ) => number | null;
* s = accumulator();
* // returns ~4.95
*/
declare function incrstdev( mu?: number ): accumulator;
declare function incrstdev( mean?: number ): accumulator;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type accumulator = ( x?: number ) => number | null;
/**
* Returns an accumulator function which incrementally computes an unbiased sample variance.
*
* @param mu - known mean
* @param mean - known mean
* @returns accumulator function
*
* @example
Expand All @@ -53,7 +53,7 @@ type accumulator = ( x?: number ) => number | null;
* s2 = accumulator();
* // returns 24.5
*/
declare function incrvariance( mu?: number ): accumulator;
declare function incrvariance( mean?: number ): accumulator;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ interface Routine {
* @param N - number of indexed elements
* @param x - input array
* @param strideX - stride length
* @param offset - starting index
* @param offsetX - starting index
* @returns arithmetic mean
*
* @example
Expand All @@ -62,7 +62,7 @@ interface Routine {
* var v = meanwd.ndarray( x.length, x, 1, 0 );
* // returns ~0.3333
*/
ndarray( N: number, x: InputArray, strideX: number, offset: number ): number;
ndarray( N: number, x: InputArray, strideX: number, offsetX: number ): number;
}

/**
Expand Down
Loading