{"action":"created","issue":{"url":"https://api.github.com/repos/tbeu/Modelica/issues/1400","repository_url":"https://api.github.com/repos/tbeu/Modelica","labels_url":"https://api.github.com/repos/tbeu/Modelica/issues/1400/labels{/name}","comments_url":"https://api.github.com/repos/tbeu/Modelica/issues/1400/comments","events_url":"https://api.github.com/repos/tbeu/Modelica/issues/1400/events","html_url":"https://github.com/tbeu/Modelica/issues/1400","id":184739136,"number":1400,"title":"Mathematical mean functions","user":{"login":"modelica-trac-importer","id":22202507,"avatar_url":"https://avatars.githubusercontent.com/u/22202507?v=3","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tbeu/Modelica/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/tbeu/Modelica/labels/Math","name":"Math","color":"0000aa"},{"url":"https://api.github.com/repos/tbeu/Modelica/labels/P:%20normal","name":"P: normal","color":"aa8888"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/tbeu/Modelica/milestones/1","html_url":"https://github.com/tbeu/Modelica/milestones/*undecided*","labels_url":"https://api.github.com/repos/tbeu/Modelica/milestones/1/labels","id":2087445,"number":1,"title":"*undecided*","description":"''Tickets that haven't yet been scheduled for a particular release.''","creator":{"login":"modelica-trac-importer","id":22202507,"avatar_url":"https://avatars.githubusercontent.com/u/22202507?v=3","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"open_issues":27,"closed_issues":0,"state":"open","created_at":"2016-10-23T17:54:51Z","updated_at":"2016-10-24T03:01:24Z","due_on":"1969-12-31T00:00:00Z","closed_at":null},"comments":1,"created_at":"2016-10-24T03:01:24Z","updated_at":"2016-10-24T03:01:33Z","closed_at":null,"body":"**Reported by kdavies on 17 Jan 2014 00:39 UTC**\nThis ticket is to add a package of mathematical mean functions to Modelica.Math.  They were necessary for a model library I created and maybe they are useful to others.\n\nMigrated-From: https://trac.modelica.org/Modelica/ticket/1400"},"comment":{"url":"https://api.github.com/repos/tbeu/Modelica/issues/comments/255638163","html_url":"https://github.com/tbeu/Modelica/issues/1400#issuecomment-255638163","issue_url":"https://api.github.com/repos/tbeu/Modelica/issues/1400","id":255638163,"user":{"login":"modelica-trac-importer","id":22202507,"avatar_url":"https://avatars.githubusercontent.com/u/22202507?v=3","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T03:01:33Z","updated_at":"2016-10-24T03:01:33Z","body":"**Comment by hansolsson on 17 Jan 2014 09:20 UTC**\nI think we need to consider these in more detail: first and foremost exactly what we need in MSL (do we need mean-functions at all? other similar functions? the median? as blocks as well?), and then where to place these functions.\r\n\r\nLooking at the proposed implementation I see two issues:\r\n* No guard against unnecessary overflow. The product of all elements is likely to overflow for longer vectors (just think of a geometric mean of a vector of 100 values each between 50 and 100)- there are ways of handling that, but it makes the algorithm longer - especially if you want to avoid any unnecessary rounding errors as well.\r\n* Too many ifs. Having a special case for size=2 is not needed, and I found it more confusing for the harmonic mean."}}
{"actor":{"display_login":"modelica-trac-importer"}}