{"action":"created","issue":{"url":"https://api.github.com/repos/wmayner/pyemd/issues/6","labels_url":"https://api.github.com/repos/wmayner/pyemd/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/wmayner/pyemd/issues/6/comments","events_url":"https://api.github.com/repos/wmayner/pyemd/issues/6/events","html_url":"https://github.com/wmayner/pyemd/issues/6","id":120551072,"number":6,"title":"about the input","user":{"login":"edwinZeng","id":16165402,"avatar_url":"https://avatars.githubusercontent.com/u/16165402?v=3","gravatar_id":"","url":"https://api.github.com/users/edwinZeng","html_url":"https://github.com/edwinZeng","followers_url":"https://api.github.com/users/edwinZeng/followers","following_url":"https://api.github.com/users/edwinZeng/following{/other_user}","gists_url":"https://api.github.com/users/edwinZeng/gists{/gist_id}","starred_url":"https://api.github.com/users/edwinZeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwinZeng/subscriptions","organizations_url":"https://api.github.com/users/edwinZeng/orgs","repos_url":"https://api.github.com/users/edwinZeng/repos","events_url":"https://api.github.com/users/edwinZeng/events{/privacy}","received_events_url":"https://api.github.com/users/edwinZeng/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-05T12:32:09Z","updated_at":"2015-12-21T21:03:17Z","closed_at":"2015-12-05T14:47:28Z","body":"Thanks for providing a wrapper to the emd calculation in python:\r\n\r\nwhat is the meaning of the signature? as far as i know, emd basically calculate a distance between two distribution. I guess that the distance_matrix as input is the ground distance [e.g. pairwise L2 distance], but what does the signature stands for? is it considering the weight in the historgram? \r\n\r\nHow about the N? looks like that it is a total number of bins in both histogram.\r\n\r\nThanks for your time in answering the question.\r\nEdwin"},"comment":{"url":"https://api.github.com/repos/wmayner/pyemd/issues/comments/166419474","html_url":"https://github.com/wmayner/pyemd/issues/6#issuecomment-166419474","issue_url":"https://api.github.com/repos/wmayner/pyemd/issues/6","id":166419474,"user":{"login":"wmayner","id":1775632,"avatar_url":"https://avatars.githubusercontent.com/u/1775632?v=3","gravatar_id":"","url":"https://api.github.com/users/wmayner","html_url":"https://github.com/wmayner","followers_url":"https://api.github.com/users/wmayner/followers","following_url":"https://api.github.com/users/wmayner/following{/other_user}","gists_url":"https://api.github.com/users/wmayner/gists{/gist_id}","starred_url":"https://api.github.com/users/wmayner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmayner/subscriptions","organizations_url":"https://api.github.com/users/wmayner/orgs","repos_url":"https://api.github.com/users/wmayner/repos","events_url":"https://api.github.com/users/wmayner/events{/privacy}","received_events_url":"https://api.github.com/users/wmayner/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T21:03:17Z","updated_at":"2015-12-21T21:03:17Z","body":"Hi,\r\n\r\nUnless I've misunderstood something, I believe you can achieve what you want by simply adding empty bins to the shorter histogram so that they're the same length. The distance from the empty bins can then be assigned to be larger than any other distance.\r\n\r\nUnder those conditions, no mass will ever be moved from or to the “padding” bins, so the computed distance will effectively be between the 5-bin and 7-bin histograms, whatever order you compare them in."}}