I have placed 100 bounty on this question which is really interesting to me: Conditions and techniques for discretizing a real function. See here on Math.SE
https://math.stackexchange.com/q/4190894/947420
https://math.stackexchange.com/q/4190894/947420