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

查看:401
本文介绍了如何在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天全站免登陆