{"action":"closed","issue":{"url":"https://api.github.com/repos/ELIFE-ASU/Inform/issues/12","repository_url":"https://api.github.com/repos/ELIFE-ASU/Inform","labels_url":"https://api.github.com/repos/ELIFE-ASU/Inform/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/ELIFE-ASU/Inform/issues/12/comments","events_url":"https://api.github.com/repos/ELIFE-ASU/Inform/issues/12/events","html_url":"https://github.com/ELIFE-ASU/Inform/issues/12","id":168359488,"number":12,"title":"Add Conditional Entropy","user":{"login":"dglmoore","id":997466,"avatar_url":"https://avatars.githubusercontent.com/u/997466?v=3","gravatar_id":"","url":"https://api.github.com/users/dglmoore","html_url":"https://github.com/dglmoore","followers_url":"https://api.github.com/users/dglmoore/followers","following_url":"https://api.github.com/users/dglmoore/following{/other_user}","gists_url":"https://api.github.com/users/dglmoore/gists{/gist_id}","starred_url":"https://api.github.com/users/dglmoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dglmoore/subscriptions","organizations_url":"https://api.github.com/users/dglmoore/orgs","repos_url":"https://api.github.com/users/dglmoore/repos","events_url":"https://api.github.com/users/dglmoore/events{/privacy}","received_events_url":"https://api.github.com/users/dglmoore/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ELIFE-ASU/Inform/labels/feature%20request","name":"feature request","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/ELIFE-ASU/Inform/milestones/1","html_url":"https://github.com/ELIFE-ASU/Inform/milestones/Release%20v0.0.5","labels_url":"https://api.github.com/repos/ELIFE-ASU/Inform/milestones/1/labels","id":1911886,"number":1,"title":"Release v0.0.5","description":"","creator":{"login":"dglmoore","id":997466,"avatar_url":"https://avatars.githubusercontent.com/u/997466?v=3","gravatar_id":"","url":"https://api.github.com/users/dglmoore","html_url":"https://github.com/dglmoore","followers_url":"https://api.github.com/users/dglmoore/followers","following_url":"https://api.github.com/users/dglmoore/following{/other_user}","gists_url":"https://api.github.com/users/dglmoore/gists{/gist_id}","starred_url":"https://api.github.com/users/dglmoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dglmoore/subscriptions","organizations_url":"https://api.github.com/users/dglmoore/orgs","repos_url":"https://api.github.com/users/dglmoore/repos","events_url":"https://api.github.com/users/dglmoore/events{/privacy}","received_events_url":"https://api.github.com/users/dglmoore/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":2,"state":"open","created_at":"2016-07-29T15:14:14Z","updated_at":"2016-08-01T22:09:35Z","due_on":"2016-08-05T04:00:00Z","closed_at":null},"comments":0,"created_at":"2016-07-29T16:09:01Z","updated_at":"2016-08-01T22:09:35Z","closed_at":"2016-08-01T22:09:34Z","body":"As a generalization of entropy rate, it would be able to compute the conditional entropy between two timeseries.\r\n\r\n### Proposed API:\r\n\r\n```C\r\ndouble inform_conditional_entropy(int const *xs, int const *ys, size_t n,\r\n    int bx, int by, double b, inform_error *err);\r\n\r\ndouble *inform_local_conditional_entropy(int const *xs, int const *ys, size_t n,\r\n    int bx, int by, double b, double *lce, inform_error *err)\r\n```\r\n\r\n### Example Usage:\r\n\r\n```C\r\n#define N 9\r\n\r\nint xs[N] = {0,0,1,1,1,1,0,0,0};\r\nint ys[N] = {1,0,0,1,0,0,1,0,0};\r\n\r\ninform_error err = INFORM_SUCCESS;\r\ninform_conditional_entropy(xs, ys, N, 2, 2, 2.0, &err); // == 0.899985\r\ninform_conditional_entropy(ys, xs, N, 2, 2, 2.0, &err); // == 0.972765\r\n\r\ndouble lce[N];\r\ninform_conditional_entropy(xs, ys, N, 2, 2, 2.0, lce, &err); // == lce\r\n// lce == {1.322 0.737, 0.415, 2.000,  0.415, 0.415, 1.322, 0.737, 0.737}\r\ninform_conditional_entropy(ys, xs, N, 2, 2, 2.0, lce, &err); // == lce\r\n// lce == {0.585, 1.000, 1.000, 1.585, 1.000, 1.000, 0.585, 1.000, 1.000}\r\n```"}}
{"actor":{"display_login":"dglmoore"}}