Change language to:
English - Français - Português

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

Scilab help >> Statistics > nanmean

# nanmean

### 呼び出し手順

```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,'*')`は スカラー`m``val`の(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)```

Carlos Klimann

### 参考文献

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

 << nanmax Statistics nanmeanf >>

 Copyright (c) 2022-2023 (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:Thu May 12 11:45:55 CEST 2011