The difference between a valley and a peak is the measure of the distance going up and the distances going down. $$ \Delta\mu_{x \in C} y = \mu \left( \left\{ y \, \vert \, x \in C \wedge n > 0 \right\} \right) -
\mu \left( \left\{ y \, \vert \, x \in C \wedge n < 0 \right\} \right) $$ $n$ tells whether the function is decreasing or increasing. How do I state this as an integral so that this statement applies to vectors as well? I think something like $$ \Delta_{x \in C} \vec{y} = \oint \mu \left( \left\{ y \, \vert \, x \in C \wedge \frac{\mathrm{d} \vec{y}}{\mathrm{d} x} = \hat{r}\abs{\…