pypomp.core.rw_sigma.RWSigma.cosine_cooling¶
- RWSigma.cosine_cooling(c: float, M: int) RWSigma[source]¶
Configure the RWSigma instance to use cosine cooling.
- The returned cooling function computes a cooling factor as:
cooling_factor = c + (1.0 - c) * 0.5 * (1.0 + cos(pi * progress))
- where:
progress = (nt / ntimes + m) / M nt: Time step index (integer). m: Current iteration index (integer). ntimes: Total number of time steps (integer).
- Parameters:
- Returns:
A new RWSigma instance configured with cosine cooling.
- Return type: