Examples
Every figure below comes from the
tutorial notebook,
which runs from top to bottom with no data to download. A script,
examples/build_notebook.py,
writes the notebook, so its prose, code and figures stay in one file that can
be reviewed. To regenerate it:
python examples/build_notebook.py
For sampled inputs rather than figures, see
examples/02_uncertainty.py
and Sweeps and uncertainty.
Published data couples every carrier at exactly 1

Built from one profile, heat and cold correlate at exactly 1; loadcast gives
the correlation asked for. Correlation between heat and cold at each offset.
Published multi-carrier data builds every carrier as a fixed multiple of one
shared profile, \(P_m(t) = \kappa_m\,p(t)\). The notebook rebuilds that
construction and measures its heat–cold correlation: 1.000000. loadcast
puts the peak where you ask.

The correlation you set is not the one you observe: the shared calendar adds a floor.
The correlation you observe is not the one the generator sets. The carriers share a calendar, so they stay correlated even when their fluctuations are independent. The generator sets the correlation of those fluctuations, and a closed-form formula maps it to the correlation of the finished profiles.
Each profile is a product of four factors

Each carrier follows the weekly rhythm with a fluctuation of its own. One week, each carrier divided by its own mean, with the weekend shaded.

A profile is a calendar times a fluctuation. A fortnight of the calendar, the fluctuation and their product.
Each carrier is the product \(P_m(t) = L_m \cdot S(t) \cdot M_m(t-\tau_m) \cdot R_m(t-\tau_m)\) of a level, a calendar, an on/off state and a residual fluctuation. Every factor except the level has mean 1, so the level alone sets the annual energy.
Two constants keep the residual right

Without its two corrections, the fluctuation drifts in spread and in mean.
Left: without the \(\sqrt{1-\phi^2}\) factor, the residual takes several hundred hours to reach its own spread. Right: without the \(-\sigma^2/2\) correction, the residual's mean grows with its spread, so widening the fluctuations would add annual energy.
The cap flattens the top; the on/off state makes the tail

The four classes range from steady running to idling half the hours. A fortnight of heat demand in each.

The cap gives every class a flat top; the classes that stop add a tail near zero.
The flat top of each duration curve is the cap on the peak, which holds the load factor exactly. The on/off state gives the campaign and batch classes their long tail of near-zero hours, which spread alone cannot produce.
A lag looks like a weak coupling at zero offset

A lag moves the peak of the correlation to the lag, and pulls the value at zero offset down to the calendar's floor.
As the lag \(\tau\) grows, the correlation at zero offset falls towards the calendar floor, which is also where a weak coupling would put it. To tell the two apart, look at where the correlogram peaks, not only how high.
The step length does not change the site

Hourly, 30-minute and 15-minute steps keep the same range and rhythm.
Energy, load factor and persistence measured in hours are the same on every grid. The process classes were calibrated on hourly meters, so detail below the hour is drawn, not measured.
Waste heat trails the heat it comes from

Waste heat follows the heat demand, two hours behind.
Waste heat is a by-product the site rejects, not energy it buys, so
waste_to_heat sizes it from the heat demand. It has its own residual and can
take its own lag; here it trails the heat by two hours.
Refitting on generated output degrades a class

Refitting on generated output makes the profile ever more persistent, while the imposed load factor barely moves.
Refit a class on its own generated output, round after round, and its persistence climbs towards a fixed point while its spread drains away. The load factor is imposed, so it stays flat until the profile has grown too smooth to reach its cap; only then does the generator warn.