Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Change language to: English - Français - Português - Русский

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

Scilabヘルプ >> Statistics > Data with Missing Values > 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)```

### 参考文献

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