{"action":"created","issue":{"url":"https://api.github.com/repos/STOR-i/Changepoints.jl/issues/11","labels_url":"https://api.github.com/repos/STOR-i/Changepoints.jl/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/STOR-i/Changepoints.jl/issues/11/comments","events_url":"https://api.github.com/repos/STOR-i/Changepoints.jl/issues/11/events","html_url":"https://github.com/STOR-i/Changepoints.jl/issues/11","id":60134609,"number":11,"title":"Segment costs have unintuitive interface","user":{"login":"fairbrot","id":9114687,"avatar_url":"https://avatars.githubusercontent.com/u/9114687?v=3","gravatar_id":"","url":"https://api.github.com/users/fairbrot","html_url":"https://github.com/fairbrot","followers_url":"https://api.github.com/users/fairbrot/followers","following_url":"https://api.github.com/users/fairbrot/following{/other_user}","gists_url":"https://api.github.com/users/fairbrot/gists{/gist_id}","starred_url":"https://api.github.com/users/fairbrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fairbrot/subscriptions","organizations_url":"https://api.github.com/users/fairbrot/orgs","repos_url":"https://api.github.com/users/fairbrot/repos","events_url":"https://api.github.com/users/fairbrot/events{/privacy}","received_events_url":"https://api.github.com/users/fairbrot/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-06T17:46:04Z","updated_at":"2015-03-10T18:47:19Z","closed_at":"2015-03-10T18:47:19Z","body":"Consider the following cost function:\r\ncost = NormalMeanSegment(x)\r\n\r\nNow, the function call cost(s,t) gives the cost of the points x[s+1], ... x[t] rather than x[s], ..., x[t]. This is unintuitive, and may cause problems when users write their own cost functions. It certainly caused me some confusion when working on the binary segmentation algorithm."},"comment":{"url":"https://api.github.com/repos/STOR-i/Changepoints.jl/issues/comments/78120644","html_url":"https://github.com/STOR-i/Changepoints.jl/issues/11#issuecomment-78120644","issue_url":"https://api.github.com/repos/STOR-i/Changepoints.jl/issues/11","id":78120644,"user":{"login":"fairbrot","id":9114687,"avatar_url":"https://avatars.githubusercontent.com/u/9114687?v=3","gravatar_id":"","url":"https://api.github.com/users/fairbrot","html_url":"https://github.com/fairbrot","followers_url":"https://api.github.com/users/fairbrot/followers","following_url":"https://api.github.com/users/fairbrot/following{/other_user}","gists_url":"https://api.github.com/users/fairbrot/gists{/gist_id}","starred_url":"https://api.github.com/users/fairbrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fairbrot/subscriptions","organizations_url":"https://api.github.com/users/fairbrot/orgs","repos_url":"https://api.github.com/users/fairbrot/repos","events_url":"https://api.github.com/users/fairbrot/events{/privacy}","received_events_url":"https://api.github.com/users/fairbrot/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T18:47:19Z","updated_at":"2015-03-10T18:47:19Z","body":"Ok, we'll stick with the changepoint convention for now. It should be fine as long as this is explained in the documentation."}}