Compute Curve stats

Addresses https://bugs.launchpad.net/oq-risklib/+bug/1216995