I have a set of data (two columns of CSV numbers) which varies quite a bit initially and then stabilises around a certain number. I'm trying to spot the point at which the graph first seems to stabilise in an automated way using standard Bash utilities. In an ASCII graph, the data may look like something such as this:
y
^ ___ stabilised
| . |
| . |
| . . |
| . . . . . ▾
| . . . . . . . . . . . . . . . . . . . . . . .
| . . . .
------------------------------------------------------------> x
Note that the data do not reach a constant value, but fluctuate slightly around the stable value. Is there some way I may spot the first point at which the graph seems to become stable using standard Bash utilities?