std1.0.0-beta-7 SafeC docs

std :: ml::diffusion

Function std::edm_karras_sigmas

#include <std/ml/diffusion.h> source · definition

void edm_karras_sigmas(
    unsigned long numSteps,
    float sigmaMin,
    float sigmaMax,
    float rho,
    &float outSigmas,
)

sigma(i) = (sigmaMax^(1/rho) + i/(numSteps-1)*(sigmaMin^(1/rho)-sigmaMax^(1/rho)))^rho for i in [0,numSteps), followed by sigma(numSteps)=0 (the final, noise-free point). 'outSigmas' must have numSteps+1 slots (caller- allocated) — the standard Karras et al. sigma sequence used by EDM/ k-diffusion-style samplers (e.g. Heun/Euler ancestral, not reimplemented here — this schedule alone is the deferred-scope-item std/ml/ROADMAP.md previously listed).