{"action":"created","comment":{"url":"https://api.github.com/repos/DGtal-team/DGtal/pulls/comments/44859426","id":44859426,"diff_hunk":"@@ -0,0 +1,461 @@\n+/**\n+ *  This program is free software: you can redistribute it and/or modify\n+ *  it under the terms of the GNU Lesser General Public License as\n+ *  published by the Free Software Foundation, either version 3 of the\n+ *  License, or  (at your option) any later version.\n+ *\n+ *  This program is distributed in the hope that it will be useful,\n+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ *  GNU General Public License for more details.\n+ *\n+ *  You should have received a copy of the GNU General Public License\n+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+ *\n+ **/\n+\n+#pragma once\n+\n+/**\n+ * @file MultiStatistics.h\n+ * @author Bertrand Kerautret (\\c kerautre@loria.fr )\n+ * LORIA (CNRS, UMR 7503), University of Nancy, France\n+ *\n+ * @author Jacques-Olivier Lachaud\n+ * @date 2015/11/09\n+ *\n+ * Header file for module MultiStatistics.cpp\n+ *\n+ * This file is part of the DGtal library.\n+ */\n+\n+#if defined(MultiStatistics_RECURSES)\n+#error Recursive header files inclusion detected in MultiStatistics.h\n+#else // defined(MultiStatistics_RECURSES)\n+/** Prevents recursive inclusion of headers. */\n+#define MultiStatistics_RECURSES\n+\n+#if !defined MultiStatistics_h\n+/** Prevents repeated inclusion of headers. */\n+#define MultiStatistics_h\n+\n+//////////////////////////////////////////////////////////////////////////////\n+// Inclusions\n+#include <iostream>\n+#include \"DGtal/base/Common.h\"\n+//////////////////////////////////////////////////////////////////////////////\n+\n+namespace DGtal\n+{\n+\n+/////////////////////////////////////////////////////////////////////////////\n+// class MultiStatistics\n+/**\n+ * Description of class 'MultiStatistics' <p> \\brief Aim: This class\n+ * stores a set of sample values for several variables and can then\n+ * compute different statistics, like sample mean, sample variance,\n+ * sample unbiased variance, etc.\n+ *","path":"src/DGtal/math/MultiStatistics.h","position":58,"original_position":58,"commit_id":"1b0decf297b9a1c7ca1fbd64712b9e16286cae6a","original_commit_id":"1b0decf297b9a1c7ca1fbd64712b9e16286cae6a","user":{"login":"dcoeurjo","id":700165,"avatar_url":"https://avatars.githubusercontent.com/u/700165?v=3","gravatar_id":"","url":"https://api.github.com/users/dcoeurjo","html_url":"https://github.com/dcoeurjo","followers_url":"https://api.github.com/users/dcoeurjo/followers","following_url":"https://api.github.com/users/dcoeurjo/following{/other_user}","gists_url":"https://api.github.com/users/dcoeurjo/gists{/gist_id}","starred_url":"https://api.github.com/users/dcoeurjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcoeurjo/subscriptions","organizations_url":"https://api.github.com/users/dcoeurjo/orgs","repos_url":"https://api.github.com/users/dcoeurjo/repos","events_url":"https://api.github.com/users/dcoeurjo/events{/privacy}","received_events_url":"https://api.github.com/users/dcoeurjo/received_events","type":"User","site_admin":false},"body":"maybe you should add a note to make clear that a \"terminale()\" before accessing quantities","created_at":"2015-11-14T14:57:02Z","updated_at":"2015-11-14T14:57:02Z","html_url":"https://github.com/DGtal-team/DGtal/pull/1076#discussion_r44859426","pull_request_url":"https://api.github.com/repos/DGtal-team/DGtal/pulls/1076","_links":{"self":{"href":"https://api.github.com/repos/DGtal-team/DGtal/pulls/comments/44859426"},"html":{"href":"https://github.com/DGtal-team/DGtal/pull/1076#discussion_r44859426"},"pull_request":{"href":"https://api.github.com/repos/DGtal-team/DGtal/pulls/1076"}}},"pull_request":{"url":"https://api.github.com/repos/DGtal-team/DGtal/pulls/1076","id":50241424,"html_url":"https://github.com/DGtal-team/DGtal/pull/1076","diff_url":"https://github.com/DGtal-team/DGtal/pull/1076.diff","patch_url":"https://github.com/DGtal-team/DGtal/pull/1076.patch","issue_url":"https://api.github.com/repos/DGtal-team/DGtal/issues/1076","number":1076,"state":"open","locked":false,"title":"Back port of the StatisticS class of ImaGene","user":{"login":"kerautret","id":772865,"avatar_url":"https://avatars.githubusercontent.com/u/772865?v=3","gravatar_id":"","url":"https://api.github.com/users/kerautret","html_url":"https://github.com/kerautret","followers_url":"https://api.github.com/users/kerautret/followers","following_url":"https://api.github.com/users/kerautret/following{/other_user}","gists_url":"https://api.github.com/users/kerautret/gists{/gist_id}","starred_url":"https://api.github.com/users/kerautret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerautret/subscriptions","organizations_url":"https://api.github.com/users/kerautret/orgs","repos_url":"https://api.github.com/users/kerautret/repos","events_url":"https://api.github.com/users/kerautret/events{/privacy}","received_events_url":"https://api.github.com/users/kerautret/received_events","type":"User","site_admin":false},"body":"Todo:\r\n- [X] backport main imagene class\r\n- [X] add catch test\r\n- [x] check DGtal naming \r\n- [x] complete doc ","created_at":"2015-11-10T11:15:41Z","updated_at":"2015-11-14T14:57:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b49f26075211d626b5de6495f7391a153793890f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DGtal-team/DGtal/pulls/1076/commits","review_comments_url":"https://api.github.com/repos/DGtal-team/DGtal/pulls/1076/comments","review_comment_url":"https://api.github.com/repos/DGtal-team/DGtal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DGtal-team/DGtal/issues/1076/comments","statuses_url":"https://api.github.com/repos/DGtal-team/DGtal/statuses/1b0decf297b9a1c7ca1fbd64712b9e16286cae6a","head":{"label":"kerautret:MultiStatisticsBackport","ref":"MultiStatisticsBackport","sha":"1b0decf297b9a1c7ca1fbd64712b9e16286cae6a","user":{"login":"kerautret","id":772865,"avatar_url":"https://avatars.githubusercontent.com/u/772865?v=3","gravatar_id":"","url":"https://api.github.com/users/kerautret","html_url":"https://github.com/kerautret","followers_url":"https://api.github.com/users/kerautret/followers","following_url":"https://api.github.com/users/kerautret/following{/other_user}","gists_url":"https://api.github.com/users/kerautret/gists{/gist_id}","starred_url":"https://api.github.com/users/kerautret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerautret/subscriptions","organizations_url":"https://api.github.com/users/kerautret/orgs","repos_url":"https://api.github.com/users/kerautret/repos","events_url":"https://api.github.com/users/kerautret/events{/privacy}","received_events_url":"https://api.github.com/users/kerautret/received_events","type":"User","site_admin":false},"repo":{"id":1760445,"name":"DGtal","full_name":"kerautret/DGtal","owner":{"login":"kerautret","id":772865,"avatar_url":"https://avatars.githubusercontent.com/u/772865?v=3","gravatar_id":"","url":"https://api.github.com/users/kerautret","html_url":"https://github.com/kerautret","followers_url":"https://api.github.com/users/kerautret/followers","following_url":"https://api.github.com/users/kerautret/following{/other_user}","gists_url":"https://api.github.com/users/kerautret/gists{/gist_id}","starred_url":"https://api.github.com/users/kerautret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerautret/subscriptions","organizations_url":"https://api.github.com/users/kerautret/orgs","repos_url":"https://api.github.com/users/kerautret/repos","events_url":"https://api.github.com/users/kerautret/events{/privacy}","received_events_url":"https://api.github.com/users/kerautret/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kerautret/DGtal","description":"Digital Geometry Tools and Algorithm Library","fork":true,"url":"https://api.github.com/repos/kerautret/DGtal","forks_url":"https://api.github.com/repos/kerautret/DGtal/forks","keys_url":"https://api.github.com/repos/kerautret/DGtal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kerautret/DGtal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kerautret/DGtal/teams","hooks_url":"https://api.github.com/repos/kerautret/DGtal/hooks","issue_events_url":"https://api.github.com/repos/kerautret/DGtal/issues/events{/number}","events_url":"https://api.github.com/repos/kerautret/DGtal/events","assignees_url":"https://api.github.com/repos/kerautret/DGtal/assignees{/user}","branches_url":"https://api.github.com/repos/kerautret/DGtal/branches{/branch}","tags_url":"https://api.github.com/repos/kerautret/DGtal/tags","blobs_url":"https://api.github.com/repos/kerautret/DGtal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kerautret/DGtal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kerautret/DGtal/git/refs{/sha}","trees_url":"https://api.github.com/repos/kerautret/DGtal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kerautret/DGtal/statuses/{sha}","languages_url":"https://api.github.com/repos/kerautret/DGtal/languages","stargazers_url":"https://api.github.com/repos/kerautret/DGtal/stargazers","contributors_url":"https://api.github.com/repos/kerautret/DGtal/contributors","subscribers_url":"https://api.github.com/repos/kerautret/DGtal/subscribers","subscription_url":"https://api.github.com/repos/kerautret/DGtal/subscription","commits_url":"https://api.github.com/repos/kerautret/DGtal/commits{/sha}","git_commits_url":"https://api.github.com/repos/kerautret/DGtal/git/commits{/sha}","comments_url":"https://api.github.com/repos/kerautret/DGtal/comments{/number}","issue_comment_url":"https://api.github.com/repos/kerautret/DGtal/issues/comments{/number}","contents_url":"https://api.github.com/repos/kerautret/DGtal/contents/{+path}","compare_url":"https://api.github.com/repos/kerautret/DGtal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kerautret/DGtal/merges","archive_url":"https://api.github.com/repos/kerautret/DGtal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kerautret/DGtal/downloads","issues_url":"https://api.github.com/repos/kerautret/DGtal/issues{/number}","pulls_url":"https://api.github.com/repos/kerautret/DGtal/pulls{/number}","milestones_url":"https://api.github.com/repos/kerautret/DGtal/milestones{/number}","notifications_url":"https://api.github.com/repos/kerautret/DGtal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kerautret/DGtal/labels{/name}","releases_url":"https://api.github.com/repos/kerautret/DGtal/releases{/id}","created_at":"2011-05-17T11:37:44Z","updated_at":"2015-03-30T21:22:32Z","pushed_at":"2015-11-14T13:53:32Z","git_url":"git://github.com/kerautret/DGtal.git","ssh_url":"git@github.com:kerautret/DGtal.git","clone_url":"https://github.com/kerautret/DGtal.git","svn_url":"https://github.com/kerautret/DGtal","homepage":"http://liris.cnrs.fr/dgtal","size":145686,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"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":1,"default_branch":"master"}},"base":{"label":"DGtal-team:master","ref":"master","sha":"3b2eb93f6ccb6ae44b8e47865f48a7e957a8ea10","user":{"login":"DGtal-team","id":1013900,"avatar_url":"https://avatars.githubusercontent.com/u/1013900?v=3","gravatar_id":"","url":"https://api.github.com/users/DGtal-team","html_url":"https://github.com/DGtal-team","followers_url":"https://api.github.com/users/DGtal-team/followers","following_url":"https://api.github.com/users/DGtal-team/following{/other_user}","gists_url":"https://api.github.com/users/DGtal-team/gists{/gist_id}","starred_url":"https://api.github.com/users/DGtal-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DGtal-team/subscriptions","organizations_url":"https://api.github.com/users/DGtal-team/orgs","repos_url":"https://api.github.com/users/DGtal-team/repos","events_url":"https://api.github.com/users/DGtal-team/events{/privacy}","received_events_url":"https://api.github.com/users/DGtal-team/received_events","type":"Organization","site_admin":false},"repo":{"id":1709095,"name":"DGtal","full_name":"DGtal-team/DGtal","owner":{"login":"DGtal-team","id":1013900,"avatar_url":"https://avatars.githubusercontent.com/u/1013900?v=3","gravatar_id":"","url":"https://api.github.com/users/DGtal-team","html_url":"https://github.com/DGtal-team","followers_url":"https://api.github.com/users/DGtal-team/followers","following_url":"https://api.github.com/users/DGtal-team/following{/other_user}","gists_url":"https://api.github.com/users/DGtal-team/gists{/gist_id}","starred_url":"https://api.github.com/users/DGtal-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DGtal-team/subscriptions","organizations_url":"https://api.github.com/users/DGtal-team/orgs","repos_url":"https://api.github.com/users/DGtal-team/repos","events_url":"https://api.github.com/users/DGtal-team/events{/privacy}","received_events_url":"https://api.github.com/users/DGtal-team/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DGtal-team/DGtal","description":"Digital Geometry Tools and Algorithm Library","fork":false,"url":"https://api.github.com/repos/DGtal-team/DGtal","forks_url":"https://api.github.com/repos/DGtal-team/DGtal/forks","keys_url":"https://api.github.com/repos/DGtal-team/DGtal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DGtal-team/DGtal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DGtal-team/DGtal/teams","hooks_url":"https://api.github.com/repos/DGtal-team/DGtal/hooks","issue_events_url":"https://api.github.com/repos/DGtal-team/DGtal/issues/events{/number}","events_url":"https://api.github.com/repos/DGtal-team/DGtal/events","assignees_url":"https://api.github.com/repos/DGtal-team/DGtal/assignees{/user}","branches_url":"https://api.github.com/repos/DGtal-team/DGtal/branches{/branch}","tags_url":"https://api.github.com/repos/DGtal-team/DGtal/tags","blobs_url":"https://api.github.com/repos/DGtal-team/DGtal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DGtal-team/DGtal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DGtal-team/DGtal/git/refs{/sha}","trees_url":"https://api.github.com/repos/DGtal-team/DGtal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DGtal-team/DGtal/statuses/{sha}","languages_url":"https://api.github.com/repos/DGtal-team/DGtal/languages","stargazers_url":"https://api.github.com/repos/DGtal-team/DGtal/stargazers","contributors_url":"https://api.github.com/repos/DGtal-team/DGtal/contributors","subscribers_url":"https://api.github.com/repos/DGtal-team/DGtal/subscribers","subscription_url":"https://api.github.com/repos/DGtal-team/DGtal/subscription","commits_url":"https://api.github.com/repos/DGtal-team/DGtal/commits{/sha}","git_commits_url":"https://api.github.com/repos/DGtal-team/DGtal/git/commits{/sha}","comments_url":"https://api.github.com/repos/DGtal-team/DGtal/comments{/number}","issue_comment_url":"https://api.github.com/repos/DGtal-team/DGtal/issues/comments{/number}","contents_url":"https://api.github.com/repos/DGtal-team/DGtal/contents/{+path}","compare_url":"https://api.github.com/repos/DGtal-team/DGtal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DGtal-team/DGtal/merges","archive_url":"https://api.github.com/repos/DGtal-team/DGtal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DGtal-team/DGtal/downloads","issues_url":"https://api.github.com/repos/DGtal-team/DGtal/issues{/number}","pulls_url":"https://api.github.com/repos/DGtal-team/DGtal/pulls{/number}","milestones_url":"https://api.github.com/repos/DGtal-team/DGtal/milestones{/number}","notifications_url":"https://api.github.com/repos/DGtal-team/DGtal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DGtal-team/DGtal/labels{/name}","releases_url":"https://api.github.com/repos/DGtal-team/DGtal/releases{/id}","created_at":"2011-05-06T00:20:52Z","updated_at":"2015-10-29T23:29:00Z","pushed_at":"2015-11-14T13:53:33Z","git_url":"git://github.com/DGtal-team/DGtal.git","ssh_url":"git@github.com:DGtal-team/DGtal.git","clone_url":"https://github.com/DGtal-team/DGtal.git","svn_url":"https://github.com/DGtal-team/DGtal","homepage":"http://dgtal.org","size":200716,"stargazers_count":32,"watchers_count":32,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":41,"forks":39,"open_issues":41,"watchers":32,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DGtal-team/DGtal/pulls/1076"},"html":{"href":"https://github.com/DGtal-team/DGtal/pull/1076"},"issue":{"href":"https://api.github.com/repos/DGtal-team/DGtal/issues/1076"},"comments":{"href":"https://api.github.com/repos/DGtal-team/DGtal/issues/1076/comments"},"review_comments":{"href":"https://api.github.com/repos/DGtal-team/DGtal/pulls/1076/comments"},"review_comment":{"href":"https://api.github.com/repos/DGtal-team/DGtal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DGtal-team/DGtal/pulls/1076/commits"},"statuses":{"href":"https://api.github.com/repos/DGtal-team/DGtal/statuses/1b0decf297b9a1c7ca1fbd64712b9e16286cae6a"}}}}