arm61 / trad_ml_methods

2 stars 0 forks source link

Incorrect formula for Lorentzian #1

Closed celinedurniak closed 3 years ago

celinedurniak commented 3 years ago

In the final html document at https://mccluskey.scot/trad_ml_methods/some_stats.html for

Screenshot 2021-02-11 at 15 14 32

parentheses are missing around (x-x0)/gamma. And only this last term should be squared.

The code is correct.

See https://mathworld.wolfram.com/LorentzianFunction.html

arm61 commented 3 years ago

fixed in https://github.com/arm61/trad_ml_methods/commit/d3bfcc59244902824ea93d0028b38ea207dd7879