There is a common measure of wiggliness of a curve which is the integral of the square of its second derivative. I don't know if it has a name, or any formal basis, although perhaps it is related to ...