A web page describing how curve fitting with generalized linear models and cubic B-splines works.