Fits Theoretical X-ray or electron scattering patters to experiment.
Reads in trajectories in load_trajectories.m
and experimental signal in load_experiment.m
- modify as needed.
For theory - a series of geometries over N trajectories, and their spin multiplicities are required.
For experiment you need the experimental difference signal, time bins and q range.
- minimisation of constrained multi-variable function via. interior-point or active-set algorithms.
- non-linear least squares minimisation
- Polarisation correction (for X-ray scattering only)
- Inelastic (Compton) correction (assuming geometry independent within Independent Atom Model)
- Fits individual trajectories, or classes of trajectories based on spin multiplicity (must have labels for spin of trajs)
- Include excitation fraction in optimisation - or scan a range
- Scan time zero over range of experimental times
- Single or double convolution of theoretical signal with pump/ probe pulse
- Run in parallel
- Tune optimisation tolerances/ threshs
- Use the
post_opt_analysis.m
script to analyse your optimisation. - Just edit the file names to loop over for each optimisation run.
- Inspect the optimisation visually using the FLAGplot option.
generate_comparison_signals.m
can be used to generate equally weighted reference signals w specific gaussian widths and xfracsplot_T0.m
can be used to plot the fits of the rise in intensity around T0 against experiment