Stochastic inverse heat conduction using a spectral approach | Synapse