如何在 MATLAB 中计算 99% 的覆盖率? [英] How to compute 99% coverage in MATLAB?

查看:34
本文介绍了如何在 MATLAB 中计算 99% 的覆盖率?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 MATLAB 中有一个矩阵,我需要为每一列找到 99% 的值.换句话说,该值使得 99% 的人口具有比它更大的值.MATLAB 中是否有用于此的函数?

I have a matrix in MATLAB and I need to find the 99% value for each column. In other words, the value such that 99% of the population has a larger value than it. Is there a function in MATLAB for this?

推荐答案

使用 QUANTILE 函数.

Use QUANTILE function.

Y = quantile(X,P);

其中 X 是矩阵,P 是标量或概率向量.例如,如果 P=0.01,Y 将是每列值的向量,因此 99% 的列值更大.

where X is a matrix and P is scalar or vector of probabilities. For example, if P=0.01, the Y will be vector of values for each columns, so that 99% of column values are larger.

这篇关于如何在 MATLAB 中计算 99% 的覆盖率?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆