issues: 210704949
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
210704949 | MDU6SXNzdWUyMTA3MDQ5NDk= | 1288 | Add trapz to DataArray for mathematical integration | 16630731 | closed | 0 | 26 | 2017-02-28T07:09:22Z | 2019-01-31T17:30:31Z | 2019-01-31T17:30:31Z | NONE | Since scientific data is often an approximation to a continuous function, when we write mean() or sum(), our underlying intention is often to approximate an integral. For example, if we have temperature of a rod T(t, x) as a function of time and space, the average value Tavg(x) is the integral of T(t,x) with respect to x, divided by the length. I would guess that in practice, many uses of For approximating an integral, it seems to me that the trapezoidal rule ( It would be very useful to have
It could even be useful to have a function like Quick examples demonstrating
This second example demonstrates the special advantages of trapz() for periodic functions because the trapezoidal rule happens to be extremely accurate for periodic functions integrated over their period.
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/1288/reactions", "total_count": 3, "+1": 3, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |