changed approach to better handle curves defined on a different number of points
changed approach to better handle curves defined on a different number of points


Former-commit-id: a941493fb750d57bb8166afe7b02b2c01cf5535b [formerly a941493fb750d57bb8166afe7b02b2c01cf5535b [formerly 26e82ab3b4daf04c44a188ed3d79adee1ea3cce2]]
Former-commit-id: c725e73b4d17f290acda4ae7920113a52bb56258
Former-commit-id: 17f9a7449ef3661cf10da0ba3ca3a349780eb739
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine