Deborah.Miriam.ReweightingCurve

Deborah.Miriam.ReweightingCurve.reweighting_curve!Method
reweighting_curve!(
    rw::Reweighting.ReweightingSolver{T},
    ens_array::Ensemble.EnsembleArray{T},
    nkappaT::Int,
    bin_size::Int,
    fname::String,
    jobid::Union{Nothing, String}=nothing
) -> Nothing

Compute and export reweighting curves and transition $\kappa_T$ estimates based on interpolated cumulants.

This function performs a full sweep of reweighting analysis:

  1. Scans nkappaT values of $\kappa_T$ over the range defined by the ensemble.
  2. Computes reweighted observables (chiral condensate, susceptibility, skewness, kurtosis, Binder cumulant) at each point.
  3. Tracks the peak (or extremum) $\kappa_T$ for each observable.
  4. Uses 3-point Lagrange interpolation around the extremum to estimate transition $\kappa_T$.
  5. Exports full sweep and transition analysis results to a file.

Arguments

  • rw::Reweighting.ReweightingSolver{T}: Instance holding ensembles and internal buffer for reweighting weights.
  • ens_array::Ensemble.EnsembleArray{T}: Ensemble data for scanning $\kappa_T$.
  • nkappaT::Int: Number of $\kappa_T$ points to scan across the range.
  • bin_size::Int: Bin size for Jackknife resampling.
  • fname::String: Output filename where curve and transition results will be written.
  • jobid::Union{Nothing, String}: Optional job ID tag for logging.

Behavior

  • Writes header and reweighting data to fname.
  • Writes estimated transition $\kappa_T$s for susp, skew, and kurt via interpolation of jackknife resamples.
  • Logs each transition computation phase using Deborah.Sarah.JobLoggerTools.log_stage_sub1_benji.

Returns

  • Nothing: All output is side-effect (written to file, modifies internal weights rw.w).
source