Geothmetic Meandian

版本 1.0.0 (1.6 KB) 作者: Bramvg
Calculates the Geothmetic Meandian as defined by xkcd.com/2435
14.0 次下载
更新时间 2021/3/12

查看许可证

Calculates the Geothmetic Meandian as defined by xkcd.com/2435

M = geothmetic_meandian(X)
M = geothmetic_meandian(X, dim)

M is given by computating 3 parameters: mean(X), geomean(abs(X)) and
median(X), and iterating the computation until the 3 parameters converge.
The parameters are considered converged if their range < 1e-10 * range(X).
The final M is the mean of the converged parameters.

input:
X: input array
dim: dimension on which calculations are applied (default = first non-singleton dimension)

引用格式

Bramvg (2024). Geothmetic Meandian (https://www.mathworks.com/matlabcentral/fileexchange/88763-geothmetic-meandian), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2021a
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0