Class ExponentialDecayExample

All Implemented Interfaces:
PlotChangeListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class ExponentialDecayExample extends AExample
Example demonstrating the exponential decay fit (y(x) = A·exp(-x/τ) + C).

Synthetic data is generated from a known decay, Gaussian noise is added, and the built-in CurveDrawingMethod.EXPONENTIAL_DECAY fitting method is applied. The fit overlay is drawn automatically by the canvas.

The true parameters used are:

  • A = 8.0 (initial amplitude)
  • τ = 2.5 (decay constant; the signal falls to 1/e ≈ 37% at x = τ)
  • C = 1.0 (asymptotic baseline)

This shape arises in radioactive decay, RC circuit discharge, fluorescence lifetime measurements, and many other physical systems.

See Also:
  • Constructor Details

    • ExponentialDecayExample

      public ExponentialDecayExample(boolean headless)
      Creates the example, optionally without showing a window.
      Parameters:
      headless - if true the window is not displayed (useful for embedding in SplotDemoView)
  • Method Details