Infinity function

Simulated dataset