fit_LCF function

Porting for linear combination fitting