Preview, recompute, and accept a fit
Curve Fitter separates the provisional parameter estimate from accepting a curve as a Session result. The commands Preview fit, Recompute Preview and Accept fit perform different operations, with specific consequences for the History and the stored data.
Reference interface: GX-TXT DEV112-P011 · Dataset Curve Fit.
Three operations, three meanings
A Preview lets you examine the fitted function, the residuals and the statistics before confirming the result. Recompute Preview explicitly requests a new calculation of the current configuration. Accept fit, on the other hand, stores a named curve among the accepted results of Curve Fitter.
None of these operations is the same as publishing a Dataset. A fit can be accepted and stay inside the Workspace; generating a new scientific Dataset requires a later, separate command.
In our example we use a synthetic calibration Dataset, c14_linear_calibration, containing eleven pairs of time in seconds and voltage in volts. The observations follow an approximately linear law with small deterministic deviations.
Prepare the original curve
Open Viewers → Curve Fitter and select the c14_linear_calibration Dataset. Set X = Time (s) and Y = Voltage (V), then press Add Dataset curve. In the configuration choose Fit orientation = Y = f(X), Model = linear, Fit points = all and Output domain = source.
Run Preview fit
Press Preview fit or use the Fit → Preview fit menu. The shortcut is F5. The Viewer calculates the model and displays the fitted curve, usually as a dashed green line over the original data.
For the synthetic calibration, the fitted model is:
U(t) ≈ ( 0.150000 V/s) · t + 0.250000 V.
The estimate uses all eleven observations and returns RMSE = 0.014460 V and R² = 0.999072. The intercept is in volts and the slope in volts per second. The curve is consistent with the model used to generate the synthetic data, but the RMSE is not zero because the points deviate slightly from the line.
The Residuals, Parameters & Statistics and Technical Details tabs let you examine the deviations, the summary indicators and the solution details respectively. The Preview remains a result under evaluation, not a new publication.
Repeat Preview without changing the problem
If the Dataset, point selection, model, parameters and relevant settings do not change, a second click on Preview fit can reuse the result already calculated. There is no need to request an identical regression every time.
In this condition the status bar shows the Current result reused message, meaning that Curve Fitter keeps the previous Preview. The curve and the statistics stay the same.
Force a recalculation with Recompute Preview
To actually repeat the calculation, open the Fit → Recompute Preview menu. This command is useful when you want to regenerate the result of the current configuration without having to artificially change a parameter.
In our example the recalculation again returns slope 0.15 V/s, intercept 0.25 V, RMSE 0.014460 V and R² 0.999072, because the Dataset and settings are unchanged. This agreement is expected for a deterministic linear fit.
If the model involves nonlinear optimization or different starting points, the results can depend on the solver configuration. To compare two runs, keep all numerical conditions, not just the model name.
Accept the curve with a name
When the Preview is satisfactory, press Accept fit or use Fit → Accept fit; the shortcut is F6. A window opens asking for the name to assign to the accepted curve.
Replace the proposed name with, for example, C14 Linear Calibration and press Accept named curve . The curve is added to the Results and publication → Accepted fits section.
The accepted curve keeps the coefficients, the model, the indicators and the references to the source. The acceptance command does not automatically create a second Dataset and does not replace the eleven original observations.
The same Preview cannot be accepted twice as if it were a new calculation: after acceptance the command is disabled until a new admissible Preview exists.
What is recorded in History
History distinguishes reusing a result from a new calculation and from acceptance. The example workflow shows this sequence:
| Action | Steps recorded in the example | Meaning |
|---|---|---|
| Source loading | 1 | The curve is available in the Session |
| First Preview | 2 | New fitting result |
| Identical Preview reused | 2 | No new step |
| Recompute Preview | 3 | New explicit calculation |
| Accept named curve | 4 | Result named and stored |
The absolute number of steps depends on the earlier operations in your Workspace; the key point is that an identical reused Preview does not record a new calculation, while recomputing and accepting do.
History lets you follow the sequence of scientific operations and tell apart the configurations that produced different results. The name given to the curve identifies it in the list of accepted fits.
Accept fit is not equivalent to Publish Dataset
Once the curve is accepted, you can keep it in the Workspace and go on analyzing other sources or models. If you need a numerical Dataset usable by other GX-TXT tools, you must separately choose one of the publishing actions in the Results menu separately.
This separation avoids confusing the choice of a model with the creation of a new scientific object. Before publishing, check the names and units of the variables, the output domain, the sources and the metadata that describe the result.
Essential procedure
Load and check the data; configure the model; use Preview fit to read the curve, residuals and coefficients. If the same configuration has already been calculated, the result can be reused. For a new calculation choose Recompute Preview. When the solution is appropriate, assign a name with Accept fit and verify that it appears in Accepted fits. Publish a Dataset only if you really need it.





