matlab的quantile函数,Quantile 函数详解
在matlab
图像处理应用中,经常会用到quantile函数,这个函数的作用是求数列或矩阵的分位数。
在程序中给的文档说明如下:
语法
Y = quantile(X,p)
Y =
quantile(X,p,dim)
Y = quantile(X,N,...)
描述 Y = quantile(X,p) returns
quantiles of the values in X. p is a scalar or a vector of
cumulative probability values. When X is a vector, Y is the same
size as p, and Y(i) contains the p(i)th quantile. When X is a
matrix, the ith row of Y contains the p(i)th quantiles of each
column of X. For n-dimensional arrays, quantile operates along the
first nonsingleton dimension of X.
Y = quantile(X,p,dim)
calculates quantiles along dimension dim. The dimth dimension of Y
has length length(P). Quantiles are specified
using cumulative probabilities from 0 to 1. For an n-element vector
X, quantile computes quantiles as follows: 1. The
sorted values in X are taken as the (0.5/n), (1.5/n), ...,
([n–0.5]/n) quantiles. 2.
Linear interpolation is used to compute quantiles for probabilities
between (0.5/n) and ([n–0.5]/n).
3. The minimum or maximum values in X are
assigned to quantiles for probabilities outside that range.
quantile treats NaNs as missing values and
removes them.
Y = quantile(X,N,...) returns quantiles at the N
evenly-spaced cumulative probabilities (1:N)/(N+1). N is a scalar
positive integer value.
举例:
x[1 1 2 3 4 5 5 8 10]
数组中有9个元素,
n=9 p=0.6
y=quantile(x,p);
也可以写成y=quantile(a(:),[.6]);
得到:y=4.9
matlab的quantile函数,Quantile 函数详解相关推荐
- matlab 调整灰度,matlab灰度图像调整及imadjust函数的用法详解
matlab--imadjust函数作用: 对进行图像的灰度变换,即调节灰度图像的亮度或彩色图像的颜色矩阵 在MATLAB中,通过函数imadjust()进行图像灰度的调整,该函数调用格式如下: J= ...
- matlab里open命令,matlab函数bwareaopen的详解
matlab函数_连通区域 1. matlab函数bwareaopen──删除小面积对象 格式:BW2 = bwareaopen(BW,P,conn) 作用:删除二值图像BW中面积小于P的对象,默认情 ...
- matlab对图像进行gamma变换_matlab灰度图像调整及imadjust函数的用法详解
matlab--imadjust函数作用: 对进行图像的灰度变换,即调节灰度图像的亮度或彩色图像的颜色矩阵 在MATLAB中,通过函数imadjust()进行图像灰度的调整,该函数调用格式如下: J= ...
- 利用栈求表达式的值_高一数学月考考点之函数的表达式详解
函数表达式考点详解,教你轻松学函数 Hello,大家好,这里是摆渡学涯.很高兴在这里跟大家分享知识哦.这次课程我们来为大家讲一下函数表达式相关的考点,教你轻松学函数. 基本概念 什么是函数表达式呢?我 ...
- python时间函数报错_python3中datetime库,time库以及pandas中的时间函数区别与详解...
1介绍datetime库之前 我们先比较下time库和datetime库的区别 先说下time 在 Python 文档里,time是归类在Generic Operating System Servic ...
- python命名空间和闭包_Python函数基础实例详解【函数嵌套,命名空间,函数对象,闭包函数等】...
本文实例讲述了Python函数基础用法.分享给大家供大家参考,具体如下: 一.什么是命名关键字参数? 格式: 在*后面参数都是命名关键字参数. 特点: 1.约束函数的调用者必须按照Kye=value的 ...
- countif和sum套用_if函数嵌套countif、sumif函数实例操作详解 你需要学习了
excel中if函数嵌套countif函数实例操作详解,需要了解if函数.countif函数.sumif函数字符串引用方式,isblank函数 操作方法 01 用扫描枪连接excel后将自动将货物名称 ...
- php函数find的用法,c语言find函数的用法详解
c语言find函数的用法详解 C语言之find()函数 find函数用于查找数组中的某一个指定元素的位置. 比如:有一个数组[0, 0, 5, 4, 4]: 问:元素5的在什么位置,find函数 返回 ...
- python获取系统时间函数_python3中datetime库,time库以及pandas中的时间函数区别与详解...
1介绍datetime库之前 我们先比较下time库和datetime库的区别 先说下time 在 Python 文档里,time是归类在Generic Operating System Servic ...
- python代码大全表解释-python操作列表的函数使用代码详解
python的列表很重要,学习到后面你会发现使用的地方真的太多了.最近在写一些小项目时经常用到列表,有时其中的方法还会忘哎! 所以为了复习写下了这篇博客,大家也可以来学习一下,应该比较全面和详细了 列 ...
最新文章
- 项目管理中的组织计划
- oracle 创建clob类型字段的索引,LOB字段相关概念(自动创建LOB索引段和重建索引方法)...
- SAP License:账号锁定的处理
- 数字图像处理怎么讲yiq空间变成rgb空间_【JTRP】屏幕空间深度边缘光 Screen Space Depth Rimlight...
- VHDL计算机硬件能直接执行吗,第5章 VHDL程序结构.ppt
- Hibernate 二级缓存和查询缓存
- 【毕设选题】基于C51单片机的毕业设计题目项目汇总 - 500例
- JavaScript学习手册一:JS简介
- iOS---iPhoneXs iPhoneXs Max iPhoneXr
- QData QPair的组合使用例子一
- 天梯赛题目练习——高速公路超速处罚(附带测试点)
- python设置画布大小_python-Tkinter画布自动调整大小
- kali mysql安装教程_MySQL 安装教程(windows版)
- 古诗三百首(html)
- 数据库原理课后答案 第六章
- 鸿蒙系统登lol一直闪退,win8.1系统玩lol英雄联盟出现闪退解决方法
- 用python 实现发射爱心
- 毕业设计-基于微信小程序的“安心乘车”服务系统
- ceph存储 ceph-Architecture的Cognize
- hoops编程指南:04.4用户交互突出显示