Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.0 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Statistics > Data with Missing Values > nanmean

nanmean

平均 (Nanを無視)

呼び出し手順

m=nanmean(val)
m=nanmean(val,'r') (or m=nanmean(val,1))
m=nanmean(val,'c') (or m=nanmean(val,2))

パラメータ

val

実数または複素数のベクトルまたは行列

説明

この関数は,ある実数または数値行列valについて, 値の平均(NaNは無視)をmに出力します.

valが数値ベクトルまたは行列の場合, m=nanmean(val)または m=nanmean(val,'*')は スカラーmvalの(NaNを無視した)全エントリの平均を 返します.

m=nanmean(val,'r') (もしくは等価な m=nanmean(val,1))は, 1xsize(val,'c')の行ベクトルmの 各エントリにvalの各列の (NaNを無視した)平均を返します.

m=nanmeanf(val,'c') (もしくは等価な m=nanmean(val,2)は, size(val,'c')x1の列ベクトルmの 各エントリにvalの各行の (NaNを無視した)平均を返します.

Labostatでは, NAN 値は表における欠損値を意味します.

x=[0.2113249 %nan 0.6653811;0.7560439 0.3303271 0.6283918]
m=nanmean(x)
m=nanmean(x,1)
m=nanmean(x,2)

参考文献

Wonacott, T.H. & Wonacott, R.J.; Introductory Statistics, fifth edition, J.Wiley & Sons, 1990.

Report an issue
<< nanmax Data with Missing Values nanmeanf >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Oct 01 17:40:31 CEST 2012