fitting

Fit reflectivity data to models and generate parameter reports.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/mdoucet/analyzer --skill fitting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fitting
Source: https://github.com/mdoucet/analyzer/tree/main/skills/fitting
Command: npx skills add https://github.com/mdoucet/analyzer --skill fitting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the end-to-end fitting workflow for reflectivity data, enabling rapid fitting of combined data to a model, assessment of fit quality, and iterative model refinement.

Core Features & Use Cases

  • Run fits: fit combined data to theoretical models and produce parameter estimates.
  • Assess results: evaluate chi-squared, parameter uncertainties, and generate plots/reports.
  • Iterate models: create temporary models and re-fit to improve quality; supports widening bounds and refining parameters.
  • Use Case: Apply to several measurement sets to compare competing models and generate a consolidated report.

Quick Start

Provide a data file and a model specification, then run the full fitting workflow to obtain results and a report.

Frequently Asked Questions about fitting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate reflectivity data fitting and model evaluation?

Reflectivity data fitting is automated by providing combined data and model definitions to generate best-fit parameters, chi-squared assessments, and plots. The workflow evaluates fit quality across experiments and allows iterative model refinement by widening bounds.

What is the best way to fit combined reflectivity data from multiple experiments to a single model?

Fitting combined reflectivity data from multiple experiments requires specifying a combined_data_dir and model definitions. The workflow processes these inputs to produce consolidated fitted parameters, reports, and plots for assessing overall model quality.

Can I iterate and refine reflectivity models when initial fitting yields poor results?

Iterating reflectivity models is supported by creating temporary models to re-fit and improve quality. You can refine parameters and widen bounds during model evaluation to achieve better fits and updated parameter estimates.

How does MCMC help assess parameter uncertainties in reflectivity modeling?

MCMC for reflectivity modeling helps assess parameter uncertainties by exploring the probability space to derive best-fit parameters. The workflow evaluates chi-squared and uncertainty metrics, generating reports to quantify fit confidence.

Do I need any specific dependencies or components to run reflectivity fitting workflows?

No specific dependencies or components are required to run reflectivity fitting workflows. You provide inputs from combined_data_dir and results_dir with model definitions and data files to output fitted parameters, reports, and plots.

When should I widen parameter bounds during reflectivity model evaluation?

Widening parameter bounds during reflectivity model evaluation is necessary when initial fitting yields poor chi-squared values or unrealistic parameter estimates. The workflow supports temporary model creation to re-fit and improve quality iteratively.