lumos.brdf.tools.fit
- lumos.brdf.tools.fit(data_file, model_func, bounds=None, p0=None, log_space=True, clip=0)[source]
Fits a model to experimental data.
- Parameters:
data_file (str) – A path to a .csv file containing BRDF data. DESCRIBE FORMAT.
model_func (function) – A BRDF model to fit
bounds (tuple) – Bounds passed to
scipy.optimize.curve_fit()p0 (tuple) – Initial guess for parameters passed to
scipy.optimize.curve_fit()log_space (bool) – Whether or not to fit BRDF in log_space
clip (float) – Removes BRDF data below this cutoff from fitting