For straightness / curvature, you can calculate the approximate first derivative of the curve, for smoothness, the second and highest derivatives. If by closure you mean a tendency to return to places several times, you could, for example, calculate how many segments intersect each other.
source share