{"action":"created","issue":{"url":"https://api.github.com/repos/lballabio/quantlib-old/issues/329","labels_url":"https://api.github.com/repos/lballabio/quantlib-old/issues/329/labels{/name}","comments_url":"https://api.github.com/repos/lballabio/quantlib-old/issues/329/comments","events_url":"https://api.github.com/repos/lballabio/quantlib-old/issues/329/events","html_url":"https://github.com/lballabio/quantlib-old/pull/329","id":109672769,"number":329,"title":"add piecewise integral and function","user":{"login":"pcaspers","id":2605997,"avatar_url":"https://avatars.githubusercontent.com/u/2605997?v=3","gravatar_id":"","url":"https://api.github.com/users/pcaspers","html_url":"https://github.com/pcaspers","followers_url":"https://api.github.com/users/pcaspers/followers","following_url":"https://api.github.com/users/pcaspers/following{/other_user}","gists_url":"https://api.github.com/users/pcaspers/gists{/gist_id}","starred_url":"https://api.github.com/users/pcaspers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcaspers/subscriptions","organizations_url":"https://api.github.com/users/pcaspers/orgs","repos_url":"https://api.github.com/users/pcaspers/repos","events_url":"https://api.github.com/users/pcaspers/events{/privacy}","received_events_url":"https://api.github.com/users/pcaspers/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-04T10:11:40Z","updated_at":"2015-12-21T11:45:21Z","closed_at":"2015-12-21T11:45:21Z","pull_request":{"url":"https://api.github.com/repos/lballabio/quantlib-old/pulls/329","html_url":"https://github.com/lballabio/quantlib-old/pull/329","diff_url":"https://github.com/lballabio/quantlib-old/pull/329.diff","patch_url":"https://github.com/lballabio/quantlib-old/pull/329.patch"},"body":"This adds an integrator suitable for functions that are piecewise well behaved. For example, piecewise constant functions can easily be integrated exactly (using a `SegmentIntegral` with 1 point as the base integrator). Other functions that are piecewise smooth can be integrated more efficiently. In addition it can be avoided that the function is evaluated at the critical points.\r\n\r\nSecondly, a small macro to support the implementation of piecewise constant functions based on x / y coordinates given in STL containers (like `vector`, `list` and the like) is added.\r\n\r\nThis will be used in some new models I hope to contribute soon, but seems interesting enough on a standalone basis as well."},"comment":{"url":"https://api.github.com/repos/lballabio/quantlib-old/issues/comments/166279633","html_url":"https://github.com/lballabio/quantlib-old/pull/329#issuecomment-166279633","issue_url":"https://api.github.com/repos/lballabio/quantlib-old/issues/329","id":166279633,"user":{"login":"lballabio","id":170560,"avatar_url":"https://avatars.githubusercontent.com/u/170560?v=3","gravatar_id":"","url":"https://api.github.com/users/lballabio","html_url":"https://github.com/lballabio","followers_url":"https://api.github.com/users/lballabio/followers","following_url":"https://api.github.com/users/lballabio/following{/other_user}","gists_url":"https://api.github.com/users/lballabio/gists{/gist_id}","starred_url":"https://api.github.com/users/lballabio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lballabio/subscriptions","organizations_url":"https://api.github.com/users/lballabio/orgs","repos_url":"https://api.github.com/users/lballabio/repos","events_url":"https://api.github.com/users/lballabio/events{/privacy}","received_events_url":"https://api.github.com/users/lballabio/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T11:45:21Z","updated_at":"2015-12-21T11:45:21Z","body":"Migrated to https://github.com/lballabio/QuantLib/pull/17"}}