此功能获得描述性统计信息的关键值,例如均值,性病,模式,中值,四分位数和百分位数。这包括五个和七个数字的摘要。
输入X必须是向量或矩阵,如果x是矩阵,则x的每一列被视为数据集。输入param是一个可选的参数单元列表,例如param = {'whisker',2}设置晶须=2。多个用户定义的选项由半柱子分开,例如,param = {'whisker',2;'qmethod',' - mean'}。
输出DS是一个结构。提取四分位数,例如QUART = DS.Quartile。
例子:
ds = getDescriptivestatics(Randn(1000,10))
ds = getDescriptivestatistics(rand(1000,2),{'whisker',2;'qmethod',' - mean'})
ds = getDescriptivestatistics(rand(1000,2),{'百分比',[25 50 75];'pmethod','newStrank'})
引用为
Matthias Chung(2022)。描述性统计(//www.tatmou.com/matlabcentral/fileexchange/29305-descriptive-statistics),matlab中央文件交换。检索。