Scilab 6.0.1
Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
center
中心
呼び出し手順
s=center(x) s=center(x,'r') or s=center(x,1) s=center(x,'c') or s=center(x,2)
パラメータ
x: 実数または複素数のベクトルまたは行列
説明
この関数は,数値行列xを中心化した s
を計算します.
あるベクトルまたは行列xについて, s=center(x) は,
値(x(i,j)-xbar)を
行列 s の要素(i,j) に返します.
ただし,xbar は,xの係数の値の平均です.
s=center(x,'r') (もしくは等価なs=center(x,1)) は,
xの値の行方向の中心化です.
この関数は,xbarv(j)をj列の平均として,
値(x(i,j)-xbarv(j))をエントリs(i,j)に
有する行列を返します.
s=center(x,'c') (もしくは等価な
s=center(x,2)) は,xの値の列方向の中心化です.
この関数は,xbarh(i)をi行の平均として,
値(x(i,j)-xbarh(i))をエントリs(i,j)に
有する行列を返します.
例
x=[0.2113249 0.0002211 0.6653811; 0.7560439 0.3303271 0.6283918] s=center(x) s=center(x,'r') s=center(x,'c')
参照
- wcenter — 中心化と重み付け
| Report an issue | ||
| << Descriptive Statistics | Descriptive Statistics | correl >> |