- 追加された行はこの色です。
- 削除された行はこの色です。
- median へ行く。
TITLE:中央値
- [http://ja.wikipedia.org/wiki/%E4%B8%AD%E5%A4%AE%E5%80%A4 中央値]@Wikipedia
貧富の差が激しい国では、一部の超大金持ちが平均年収をつり上げてしまっている為、
平均年収は「普通の人」の年収よりもずっと高い値になってしまう。 この為平均年収は
「普通の人」の生活水準を推し測るには向かない。
一方中央値は、年収が低い順に国民を並べたときに丁度真ん中になる人の年収を表している為、
一部の超大金持ちの年収は中央値に影響せず、中央値は「普通の人」の生活水準により近くなる。
* 実装 [#lf1abd06]
- http://www.opensource.apple.com/darwinsource/Current/remote_cmds-13/timed.tproj/timed.tproj/networkdelta.c
/*
* compute the median of an array of signed integers, using the idea
* in <<Numerical Recipes>>.
*/
static long
median(a0, eps_ptr, x, xlim, gnuf)
double a0; /* initial guess for the median */
float *eps_ptr; /* spacing near the median */
long *x, *xlim; /* the data */
unsigned int gnuf; /* good enough estimate */
{
* 関連 [#rel]
- 数学 ([[Math]])
- アルゴリズム ([[Algorithm]])