A common problem in Physics and Engineering is to interpolate discrete samples while preserving the overall shape of the data: for example, maintaining positivity for a temperature curve, or monotonicity for a cumulative probability. The well-known methods do not have this property, and while several solutions can be found in the literature, they may not be smooth enough for some applications, too computationally expensive or difficult to implement. In this paper we present a shape preserving interpolation scheme that yields interpolants with an arbitrary differentiability class. It is suitable for modelling data in differential equations, fast and easy to implement. Our method is based on a convolutional operation called mollification, which we apply to a simpler shape preserving interpolant to achieve the desired degree of smoothness. With an appropriate polynomial mollification, the convolution has a closed form, so it can be computed quickly, giving a Cn interpolant. We define the general scheme for an arbitrary mollifier, provide an error analysis and an explicit C2 implementation. Finally, we show how the latter was applied successfully to model the plasma density in the electron cyclotron waves raytracer GRAY.
Guerini Rocco, M., Scioscioli, F., Figini, L. (2026). Shape preserving interpolation with arbitrary smoothness based on mollification. COMPUTER PHYSICS COMMUNICATIONS, 328(November 2026) [10.1016/j.cpc.2026.110307].
Shape preserving interpolation with arbitrary smoothness based on mollification
Guerini Rocco, M
Primo
;
2026
Abstract
A common problem in Physics and Engineering is to interpolate discrete samples while preserving the overall shape of the data: for example, maintaining positivity for a temperature curve, or monotonicity for a cumulative probability. The well-known methods do not have this property, and while several solutions can be found in the literature, they may not be smooth enough for some applications, too computationally expensive or difficult to implement. In this paper we present a shape preserving interpolation scheme that yields interpolants with an arbitrary differentiability class. It is suitable for modelling data in differential equations, fast and easy to implement. Our method is based on a convolutional operation called mollification, which we apply to a simpler shape preserving interpolant to achieve the desired degree of smoothness. With an appropriate polynomial mollification, the convolution has a closed form, so it can be computed quickly, giving a Cn interpolant. We define the general scheme for an arbitrary mollifier, provide an error analysis and an explicit C2 implementation. Finally, we show how the latter was applied successfully to model the plasma density in the electron cyclotron waves raytracer GRAY.| File | Dimensione | Formato | |
|---|---|---|---|
|
Guerini-2026-Computer Physics Communications-preprint.pdf
accesso aperto
Tipologia di allegato:
Submitted Version (Pre-print)
Licenza:
Creative Commons
Dimensione
171.01 kB
Formato
Adobe PDF
|
171.01 kB | Adobe PDF | Visualizza/Apri |
|
Guerini-2026-Computer Physics Communications-VoR.pdf
Solo gestori archivio
Tipologia di allegato:
Publisher’s Version (Version of Record, VoR)
Licenza:
Tutti i diritti riservati
Dimensione
2.11 MB
Formato
Adobe PDF
|
2.11 MB | Adobe PDF | Visualizza/Apri Richiedi una copia |
I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.


