ndwmean

Versione 1.1.0.0 (2,41 KB) da Russell
Up to n-dimensional weighted mean or average of an array with NaN support
175 download
Aggiornato 17 apr 2014

Visualizza la licenza

ndwmean(array,weights,directions) calculates the n-dimensional weighted mean of an array. The size of the weighting array and the optional input "directions" determine the dimensions in which the weighted mean is applied (see examples). Supports NaN values.

Examples: x = rand(3,3,3,2)
ndwmean(x,rand(1,2)) % 4th dimension
ndwmean(x,rand(3,2),[2 4]) % 2nd and 4th dimensions
ndwmean(x,rand(1,3,1,2)) % 2nd and 4th dimensions
ndwmean(x,rand(1,3)) % 3rd dimension
ndwmean(x,rand(3,3)) % 2nd and 3rd dimensions

Cita come

Russell (2026). ndwmean (https://it.mathworks.com/matlabcentral/fileexchange/45229-ndwmean), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2013a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Versione Pubblicato Note della release
1.1.0.0

Added support for arrays with NaN values.

1.0.0.0