{"action":"created","issue":{"url":"https://api.github.com/repos/twitter/algebird/issues/391","labels_url":"https://api.github.com/repos/twitter/algebird/issues/391/labels{/name}","comments_url":"https://api.github.com/repos/twitter/algebird/issues/391/comments","events_url":"https://api.github.com/repos/twitter/algebird/issues/391/events","html_url":"https://github.com/twitter/algebird/pull/391","id":53275630,"number":391,"title":"add averageFrom to DecayedValue","user":{"login":"avibryant","id":9892,"avatar_url":"https://avatars.githubusercontent.com/u/9892?v=3","gravatar_id":"","url":"https://api.github.com/users/avibryant","html_url":"https://github.com/avibryant","followers_url":"https://api.github.com/users/avibryant/followers","following_url":"https://api.github.com/users/avibryant/following{/other_user}","gists_url":"https://api.github.com/users/avibryant/gists{/gist_id}","starred_url":"https://api.github.com/users/avibryant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avibryant/subscriptions","organizations_url":"https://api.github.com/users/avibryant/orgs","repos_url":"https://api.github.com/users/avibryant/repos","events_url":"https://api.github.com/users/avibryant/events{/privacy}","received_events_url":"https://api.github.com/users/avibryant/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-02T20:25:51Z","updated_at":"2015-01-07T02:41:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/twitter/algebird/pulls/391","html_url":"https://github.com/twitter/algebird/pull/391","diff_url":"https://github.com/twitter/algebird/pull/391.diff","patch_url":"https://github.com/twitter/algebird/pull/391.patch"},"body":"DecayedValue's `average` method is useful but it gives artificially low results if the counter is only a small number of half lives old. `averageFrom` accounts for the fact that you might have a fixed bound in the past for your oldest value.\r\n\r\nIt currently requires passing an explicit endTime. I'm not sure if it's worth having a version which derives the endTime from the scaledTime (or possibly *only* having that version, and maybe adding a separate `asOf` method which can be used in conjunction... this seems better than having `valueAsOf` on the monoid, anyway)."},"comment":{"url":"https://api.github.com/repos/twitter/algebird/issues/comments/68971399","html_url":"https://github.com/twitter/algebird/pull/391#issuecomment-68971399","issue_url":"https://api.github.com/repos/twitter/algebird/issues/391","id":68971399,"user":{"login":"avibryant","id":9892,"avatar_url":"https://avatars.githubusercontent.com/u/9892?v=3","gravatar_id":"","url":"https://api.github.com/users/avibryant","html_url":"https://github.com/avibryant","followers_url":"https://api.github.com/users/avibryant/followers","following_url":"https://api.github.com/users/avibryant/following{/other_user}","gists_url":"https://api.github.com/users/avibryant/gists{/gist_id}","starred_url":"https://api.github.com/users/avibryant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avibryant/subscriptions","organizations_url":"https://api.github.com/users/avibryant/orgs","repos_url":"https://api.github.com/users/avibryant/repos","events_url":"https://api.github.com/users/avibryant/events{/privacy}","received_events_url":"https://api.github.com/users/avibryant/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T02:41:37Z","updated_at":"2015-01-07T02:41:37Z","body":"@johnynek added `discreteAverage` and some tests that demonstrate where the three types of average method are useful."}}