理系学生日記

おまえはいつまで学生気分なのか

2007-10-14から1日間の記事一覧

問題1-32(b)

accumulate再帰的プロセスばん。 (define (accumulate-recursive combiner null-value term a next b) (if (> a b) null-value (combiner (term a) (accumulate-recursive combiner null-value term (next a) next b))))

問題1-32(a)

こんなaccumulateを定義すると、 (define (accumulate combiner null-value term a next b) (define (iter a result) (if (> a b) result (iter (next a) (combiner (term a) result)))) (iter a null-value)) sumもproductもこれつかって定義できるようにな…

中央値と平均値の使い分け方がわかりません><

バカと思われるかもしれませんが ふと思ったのだけれど、中央値と平均値ってどうやって使い分けたらいいんだろうなーとか思いました。じつはぼく、よくわかっていない。 なんとなく中央値のほうが便利ぽい気もする データの一般的な傾向とやらを見るのに使う…