DeaglanBartlett / ESR

21 stars 6 forks source link

Remove restriction for no more than 4 fitting parameters #7

Closed DeaglanBartlett closed 1 year ago

DeaglanBartlett commented 1 year ago

Previously, functions which needed more than 4 parameters could not be fitted with ESR. This is restrictive if one uses complexities greater than 10, and also if one wants to fit an arbitrary function with the code. This has now been removed, and the output files can have a varying number of columns now, depending on the number of parameters. The files that read and write these automatically determine the number of columns/parameters needed. The old file style with 4 parameters is still enforced for complexities <= 10 for backwards compatibility.