{"action":"created","comment":{"url":"https://api.github.com/repos/scipy/scipy/pulls/comments/25692237","id":25692237,"diff_hunk":"@@ -248,6 +248,84 @@ def freqz(b, a=1, worN=None, whole=0, plot=None):\n     return w, h\n \n \n+def grpdelay(b, a=1, w=None, whole=False):\n+    r\"\"\"Compute the group delay of a digital filter.\n+\n+    The group delay shows by how many samples different spectral components of\n+    a signal are delayed by a filter. It is formally defined as\n+    :math:`D(\\omega) = -\\frac{d}{d \\omega} \\arg H(e^{j \\omega})`, where\n+    :math:`H(e^{j \\omega})` is the frequency response of a filter and\n+    continuous (unwrapped) phase is used for differentiation.\n+\n+    Parameters\n+    ----------\n+    b : array-like\n+        Numerator of a filter transfer function.\n+    a : array-like, optional\n+        Denominator of a filter transfer function.\n+    w : {None, int, array-like}, optional\n+        If None (default), then compute at 512 frequencies equally spaced\n+        around the unit circle.\n+        If a single integer, then compute at that many frequencies.\n+        If an array-like, compute the delay at the frequencies given (in","path":"scipy/signal/filter_design.py","position":32,"original_position":32,"commit_id":"41f5a43f5e5582503830fd771577c9dd2271452a","original_commit_id":"41f5a43f5e5582503830fd771577c9dd2271452a","user":{"login":"rgommers","id":98330,"avatar_url":"https://avatars.githubusercontent.com/u/98330?v=3","gravatar_id":"","url":"https://api.github.com/users/rgommers","html_url":"https://github.com/rgommers","followers_url":"https://api.github.com/users/rgommers/followers","following_url":"https://api.github.com/users/rgommers/following{/other_user}","gists_url":"https://api.github.com/users/rgommers/gists{/gist_id}","starred_url":"https://api.github.com/users/rgommers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgommers/subscriptions","organizations_url":"https://api.github.com/users/rgommers/orgs","repos_url":"https://api.github.com/users/rgommers/repos","events_url":"https://api.github.com/users/rgommers/events{/privacy}","received_events_url":"https://api.github.com/users/rgommers/received_events","type":"User","site_admin":false},"body":"``If an array``. In the text ``array_like`` can be referred to as array.","created_at":"2015-03-03T14:49:16Z","updated_at":"2015-03-03T14:49:16Z","html_url":"https://github.com/scipy/scipy/pull/4549#discussion_r25692237","pull_request_url":"https://api.github.com/repos/scipy/scipy/pulls/4549","_links":{"self":{"href":"https://api.github.com/repos/scipy/scipy/pulls/comments/25692237"},"html":{"href":"https://github.com/scipy/scipy/pull/4549#discussion_r25692237"},"pull_request":{"href":"https://api.github.com/repos/scipy/scipy/pulls/4549"}}},"pull_request":{"url":"https://api.github.com/repos/scipy/scipy/pulls/4549","id":29837885,"html_url":"https://github.com/scipy/scipy/pull/4549","diff_url":"https://github.com/scipy/scipy/pull/4549.diff","patch_url":"https://github.com/scipy/scipy/pull/4549.patch","issue_url":"https://api.github.com/repos/scipy/scipy/issues/4549","number":4549,"state":"open","locked":false,"title":"ENH : Added grpdelay to scipy.signal","user":{"login":"nmayorov","id":7074023,"avatar_url":"https://avatars.githubusercontent.com/u/7074023?v=3","gravatar_id":"","url":"https://api.github.com/users/nmayorov","html_url":"https://github.com/nmayorov","followers_url":"https://api.github.com/users/nmayorov/followers","following_url":"https://api.github.com/users/nmayorov/following{/other_user}","gists_url":"https://api.github.com/users/nmayorov/gists{/gist_id}","starred_url":"https://api.github.com/users/nmayorov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmayorov/subscriptions","organizations_url":"https://api.github.com/users/nmayorov/orgs","repos_url":"https://api.github.com/users/nmayorov/repos","events_url":"https://api.github.com/users/nmayorov/events{/privacy}","received_events_url":"https://api.github.com/users/nmayorov/received_events","type":"User","site_admin":false},"body":"Hi! \r\n\r\nI used the description [here](https://ccrma.stanford.edu/~jos/fp/Numerical_Computation_Group_Delay.html) to implement this function. I hope it could be helpful.","created_at":"2015-02-23T19:34:14Z","updated_at":"2015-03-03T14:49:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2b7a57ccc7bf85f079c12c467723d292ab63a655","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scipy/scipy/pulls/4549/commits","review_comments_url":"https://api.github.com/repos/scipy/scipy/pulls/4549/comments","review_comment_url":"https://api.github.com/repos/scipy/scipy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scipy/scipy/issues/4549/comments","statuses_url":"https://api.github.com/repos/scipy/scipy/statuses/41f5a43f5e5582503830fd771577c9dd2271452a","head":{"label":"nmayorov:grpdelay","ref":"grpdelay","sha":"41f5a43f5e5582503830fd771577c9dd2271452a","user":{"login":"nmayorov","id":7074023,"avatar_url":"https://avatars.githubusercontent.com/u/7074023?v=3","gravatar_id":"","url":"https://api.github.com/users/nmayorov","html_url":"https://github.com/nmayorov","followers_url":"https://api.github.com/users/nmayorov/followers","following_url":"https://api.github.com/users/nmayorov/following{/other_user}","gists_url":"https://api.github.com/users/nmayorov/gists{/gist_id}","starred_url":"https://api.github.com/users/nmayorov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmayorov/subscriptions","organizations_url":"https://api.github.com/users/nmayorov/orgs","repos_url":"https://api.github.com/users/nmayorov/repos","events_url":"https://api.github.com/users/nmayorov/events{/privacy}","received_events_url":"https://api.github.com/users/nmayorov/received_events","type":"User","site_admin":false},"repo":{"id":31169507,"name":"scipy","full_name":"nmayorov/scipy","owner":{"login":"nmayorov","id":7074023,"avatar_url":"https://avatars.githubusercontent.com/u/7074023?v=3","gravatar_id":"","url":"https://api.github.com/users/nmayorov","html_url":"https://github.com/nmayorov","followers_url":"https://api.github.com/users/nmayorov/followers","following_url":"https://api.github.com/users/nmayorov/following{/other_user}","gists_url":"https://api.github.com/users/nmayorov/gists{/gist_id}","starred_url":"https://api.github.com/users/nmayorov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmayorov/subscriptions","organizations_url":"https://api.github.com/users/nmayorov/orgs","repos_url":"https://api.github.com/users/nmayorov/repos","events_url":"https://api.github.com/users/nmayorov/events{/privacy}","received_events_url":"https://api.github.com/users/nmayorov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nmayorov/scipy","description":"Scipy library main repository","fork":true,"url":"https://api.github.com/repos/nmayorov/scipy","forks_url":"https://api.github.com/repos/nmayorov/scipy/forks","keys_url":"https://api.github.com/repos/nmayorov/scipy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nmayorov/scipy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nmayorov/scipy/teams","hooks_url":"https://api.github.com/repos/nmayorov/scipy/hooks","issue_events_url":"https://api.github.com/repos/nmayorov/scipy/issues/events{/number}","events_url":"https://api.github.com/repos/nmayorov/scipy/events","assignees_url":"https://api.github.com/repos/nmayorov/scipy/assignees{/user}","branches_url":"https://api.github.com/repos/nmayorov/scipy/branches{/branch}","tags_url":"https://api.github.com/repos/nmayorov/scipy/tags","blobs_url":"https://api.github.com/repos/nmayorov/scipy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nmayorov/scipy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nmayorov/scipy/git/refs{/sha}","trees_url":"https://api.github.com/repos/nmayorov/scipy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nmayorov/scipy/statuses/{sha}","languages_url":"https://api.github.com/repos/nmayorov/scipy/languages","stargazers_url":"https://api.github.com/repos/nmayorov/scipy/stargazers","contributors_url":"https://api.github.com/repos/nmayorov/scipy/contributors","subscribers_url":"https://api.github.com/repos/nmayorov/scipy/subscribers","subscription_url":"https://api.github.com/repos/nmayorov/scipy/subscription","commits_url":"https://api.github.com/repos/nmayorov/scipy/commits{/sha}","git_commits_url":"https://api.github.com/repos/nmayorov/scipy/git/commits{/sha}","comments_url":"https://api.github.com/repos/nmayorov/scipy/comments{/number}","issue_comment_url":"https://api.github.com/repos/nmayorov/scipy/issues/comments{/number}","contents_url":"https://api.github.com/repos/nmayorov/scipy/contents/{+path}","compare_url":"https://api.github.com/repos/nmayorov/scipy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nmayorov/scipy/merges","archive_url":"https://api.github.com/repos/nmayorov/scipy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nmayorov/scipy/downloads","issues_url":"https://api.github.com/repos/nmayorov/scipy/issues{/number}","pulls_url":"https://api.github.com/repos/nmayorov/scipy/pulls{/number}","milestones_url":"https://api.github.com/repos/nmayorov/scipy/milestones{/number}","notifications_url":"https://api.github.com/repos/nmayorov/scipy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nmayorov/scipy/labels{/name}","releases_url":"https://api.github.com/repos/nmayorov/scipy/releases{/id}","created_at":"2015-02-22T16:30:36Z","updated_at":"2015-02-27T20:27:47Z","pushed_at":"2015-03-02T10:29:05Z","git_url":"git://github.com/nmayorov/scipy.git","ssh_url":"git@github.com:nmayorov/scipy.git","clone_url":"https://github.com/nmayorov/scipy.git","svn_url":"https://github.com/nmayorov/scipy","homepage":"http://scipy.org/scipylib/","size":53677,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"scipy:master","ref":"master","sha":"bad8f121606abcb6abcfb75a2f21719a62bae7c6","user":{"login":"scipy","id":288277,"avatar_url":"https://avatars.githubusercontent.com/u/288277?v=3","gravatar_id":"","url":"https://api.github.com/users/scipy","html_url":"https://github.com/scipy","followers_url":"https://api.github.com/users/scipy/followers","following_url":"https://api.github.com/users/scipy/following{/other_user}","gists_url":"https://api.github.com/users/scipy/gists{/gist_id}","starred_url":"https://api.github.com/users/scipy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scipy/subscriptions","organizations_url":"https://api.github.com/users/scipy/orgs","repos_url":"https://api.github.com/users/scipy/repos","events_url":"https://api.github.com/users/scipy/events{/privacy}","received_events_url":"https://api.github.com/users/scipy/received_events","type":"Organization","site_admin":false},"repo":{"id":1460385,"name":"scipy","full_name":"scipy/scipy","owner":{"login":"scipy","id":288277,"avatar_url":"https://avatars.githubusercontent.com/u/288277?v=3","gravatar_id":"","url":"https://api.github.com/users/scipy","html_url":"https://github.com/scipy","followers_url":"https://api.github.com/users/scipy/followers","following_url":"https://api.github.com/users/scipy/following{/other_user}","gists_url":"https://api.github.com/users/scipy/gists{/gist_id}","starred_url":"https://api.github.com/users/scipy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scipy/subscriptions","organizations_url":"https://api.github.com/users/scipy/orgs","repos_url":"https://api.github.com/users/scipy/repos","events_url":"https://api.github.com/users/scipy/events{/privacy}","received_events_url":"https://api.github.com/users/scipy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scipy/scipy","description":"Scipy library main repository","fork":false,"url":"https://api.github.com/repos/scipy/scipy","forks_url":"https://api.github.com/repos/scipy/scipy/forks","keys_url":"https://api.github.com/repos/scipy/scipy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scipy/scipy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scipy/scipy/teams","hooks_url":"https://api.github.com/repos/scipy/scipy/hooks","issue_events_url":"https://api.github.com/repos/scipy/scipy/issues/events{/number}","events_url":"https://api.github.com/repos/scipy/scipy/events","assignees_url":"https://api.github.com/repos/scipy/scipy/assignees{/user}","branches_url":"https://api.github.com/repos/scipy/scipy/branches{/branch}","tags_url":"https://api.github.com/repos/scipy/scipy/tags","blobs_url":"https://api.github.com/repos/scipy/scipy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scipy/scipy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scipy/scipy/git/refs{/sha}","trees_url":"https://api.github.com/repos/scipy/scipy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scipy/scipy/statuses/{sha}","languages_url":"https://api.github.com/repos/scipy/scipy/languages","stargazers_url":"https://api.github.com/repos/scipy/scipy/stargazers","contributors_url":"https://api.github.com/repos/scipy/scipy/contributors","subscribers_url":"https://api.github.com/repos/scipy/scipy/subscribers","subscription_url":"https://api.github.com/repos/scipy/scipy/subscription","commits_url":"https://api.github.com/repos/scipy/scipy/commits{/sha}","git_commits_url":"https://api.github.com/repos/scipy/scipy/git/commits{/sha}","comments_url":"https://api.github.com/repos/scipy/scipy/comments{/number}","issue_comment_url":"https://api.github.com/repos/scipy/scipy/issues/comments{/number}","contents_url":"https://api.github.com/repos/scipy/scipy/contents/{+path}","compare_url":"https://api.github.com/repos/scipy/scipy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scipy/scipy/merges","archive_url":"https://api.github.com/repos/scipy/scipy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scipy/scipy/downloads","issues_url":"https://api.github.com/repos/scipy/scipy/issues{/number}","pulls_url":"https://api.github.com/repos/scipy/scipy/pulls{/number}","milestones_url":"https://api.github.com/repos/scipy/scipy/milestones{/number}","notifications_url":"https://api.github.com/repos/scipy/scipy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scipy/scipy/labels{/name}","releases_url":"https://api.github.com/repos/scipy/scipy/releases{/id}","created_at":"2011-03-09T18:52:03Z","updated_at":"2015-03-03T14:46:05Z","pushed_at":"2015-03-03T14:46:05Z","git_url":"git://github.com/scipy/scipy.git","ssh_url":"git@github.com:scipy/scipy.git","clone_url":"https://github.com/scipy/scipy.git","svn_url":"https://github.com/scipy/scipy","homepage":"http://scipy.org/scipylib/","size":83426,"stargazers_count":1519,"watchers_count":1519,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":798,"mirror_url":null,"open_issues_count":781,"forks":798,"open_issues":781,"watchers":1519,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scipy/scipy/pulls/4549"},"html":{"href":"https://github.com/scipy/scipy/pull/4549"},"issue":{"href":"https://api.github.com/repos/scipy/scipy/issues/4549"},"comments":{"href":"https://api.github.com/repos/scipy/scipy/issues/4549/comments"},"review_comments":{"href":"https://api.github.com/repos/scipy/scipy/pulls/4549/comments"},"review_comment":{"href":"https://api.github.com/repos/scipy/scipy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scipy/scipy/pulls/4549/commits"},"statuses":{"href":"https://api.github.com/repos/scipy/scipy/statuses/41f5a43f5e5582503830fd771577c9dd2271452a"}}}}