aic.m 177 B

1234567891011121314
  1. function g=aic(varargin)
  2. pen = 2.0;
  3. fit = locfit(varargin{:});
  4. rs = rsum(fit);
  5. df0 = rs(1);
  6. df1 = rs(2);
  7. llk = rs(3);
  8. ai = -2*llk + pen * df0;
  9. g = [llk df0 df1 ai];
  10. return;