{"action":"created","comment":{"url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/pulls/comments/53010638","id":53010638,"diff_hunk":"@@ -166,19 +222,51 @@ nquantile{T<:Real}(v::AbstractArray{T}, n::Integer) = quantile(v, (0:n)/n)\n #############################\n \n # span, i.e. the range minimum(x):maximum(x)\n+\"\"\"\n+    span(x::AbstractArray{T})\n+\n+Returns the range of `x`, i.e., minimum(x):maximum(x).\n+\"\"\"\n span{T<:Integer}(x::AbstractArray{T}) = ((a, b) = extrema(x); a:b)\n \n # Variation coefficient: std / mean\n variation{T<:Real}(x::AbstractArray{T}, m::Real) = stdm(x, m) / m\n variation{T<:Real}(x::AbstractArray{T}) = variation(x, mean(x))\n+\"\"\"\n+    variation(x::AbstractArray{T}, m::Real)\n+\n+### Args:\n+* `x`: An array of type `AbstractArray`.\n+* `m`: An optional paramater, which specifies the mean.\n+\n+Computes the ratio of standard deviation to mean.\n+\"\"\"\n+function variation end\n \n # Standard error of the mean: std(a) / sqrt(len)\n+\"\"\"\n+    sem(a::AbstractArray{T})\n+\n+### Args:\n+* `a`: An array of type `AbstractArray`.\n+\n+Computes the standard error of the mean, i.e. sqrt(var / n).","path":"src/scalarstats.jl","position":127,"original_position":127,"commit_id":"a484698a65d55c1b2b272d864e81673e276085ce","original_commit_id":"a484698a65d55c1b2b272d864e81673e276085ce","user":{"login":"nalimilan","id":1120448,"avatar_url":"https://avatars.githubusercontent.com/u/1120448?v=3","gravatar_id":"","url":"https://api.github.com/users/nalimilan","html_url":"https://github.com/nalimilan","followers_url":"https://api.github.com/users/nalimilan/followers","following_url":"https://api.github.com/users/nalimilan/following{/other_user}","gists_url":"https://api.github.com/users/nalimilan/gists{/gist_id}","starred_url":"https://api.github.com/users/nalimilan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nalimilan/subscriptions","organizations_url":"https://api.github.com/users/nalimilan/orgs","repos_url":"https://api.github.com/users/nalimilan/repos","events_url":"https://api.github.com/users/nalimilan/events{/privacy}","received_events_url":"https://api.github.com/users/nalimilan/received_events","type":"User","site_admin":false},"body":"Could as well say `sqrt(var(a) / length(a))`.","created_at":"2016-02-16T13:41:30Z","updated_at":"2016-02-16T13:41:30Z","html_url":"https://github.com/JuliaStats/StatsBase.jl/pull/149#discussion_r53010638","pull_request_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/pulls/149","_links":{"self":{"href":"https://api.github.com/repos/JuliaStats/StatsBase.jl/pulls/comments/53010638"},"html":{"href":"https://github.com/JuliaStats/StatsBase.jl/pull/149#discussion_r53010638"},"pull_request":{"href":"https://api.github.com/repos/JuliaStats/StatsBase.jl/pulls/149"}}},"pull_request":{"url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/pulls/149","id":59445932,"html_url":"https://github.com/JuliaStats/StatsBase.jl/pull/149","diff_url":"https://github.com/JuliaStats/StatsBase.jl/pull/149.diff","patch_url":"https://github.com/JuliaStats/StatsBase.jl/pull/149.patch","issue_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/issues/149","number":149,"state":"open","locked":false,"title":"inline documentation","user":{"login":"abhijithch","id":2932535,"avatar_url":"https://avatars.githubusercontent.com/u/2932535?v=3","gravatar_id":"","url":"https://api.github.com/users/abhijithch","html_url":"https://github.com/abhijithch","followers_url":"https://api.github.com/users/abhijithch/followers","following_url":"https://api.github.com/users/abhijithch/following{/other_user}","gists_url":"https://api.github.com/users/abhijithch/gists{/gist_id}","starred_url":"https://api.github.com/users/abhijithch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhijithch/subscriptions","organizations_url":"https://api.github.com/users/abhijithch/orgs","repos_url":"https://api.github.com/users/abhijithch/repos","events_url":"https://api.github.com/users/abhijithch/events{/privacy}","received_events_url":"https://api.github.com/users/abhijithch/received_events","type":"User","site_admin":false},"body":"Added basic inline documentation for most of the exported APIs. ","created_at":"2016-02-16T05:40:32Z","updated_at":"2016-02-16T13:41:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"94fdbbaea5bdd4c49ecb2708ddd9a9d92f707d5b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/pulls/149/commits","review_comments_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/pulls/149/comments","review_comment_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/issues/149/comments","statuses_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/statuses/a484698a65d55c1b2b272d864e81673e276085ce","head":{"label":"abhijithch:master","ref":"master","sha":"a484698a65d55c1b2b272d864e81673e276085ce","user":{"login":"abhijithch","id":2932535,"avatar_url":"https://avatars.githubusercontent.com/u/2932535?v=3","gravatar_id":"","url":"https://api.github.com/users/abhijithch","html_url":"https://github.com/abhijithch","followers_url":"https://api.github.com/users/abhijithch/followers","following_url":"https://api.github.com/users/abhijithch/following{/other_user}","gists_url":"https://api.github.com/users/abhijithch/gists{/gist_id}","starred_url":"https://api.github.com/users/abhijithch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhijithch/subscriptions","organizations_url":"https://api.github.com/users/abhijithch/orgs","repos_url":"https://api.github.com/users/abhijithch/repos","events_url":"https://api.github.com/users/abhijithch/events{/privacy}","received_events_url":"https://api.github.com/users/abhijithch/received_events","type":"User","site_admin":false},"repo":{"id":51730501,"name":"StatsBase.jl","full_name":"abhijithch/StatsBase.jl","owner":{"login":"abhijithch","id":2932535,"avatar_url":"https://avatars.githubusercontent.com/u/2932535?v=3","gravatar_id":"","url":"https://api.github.com/users/abhijithch","html_url":"https://github.com/abhijithch","followers_url":"https://api.github.com/users/abhijithch/followers","following_url":"https://api.github.com/users/abhijithch/following{/other_user}","gists_url":"https://api.github.com/users/abhijithch/gists{/gist_id}","starred_url":"https://api.github.com/users/abhijithch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhijithch/subscriptions","organizations_url":"https://api.github.com/users/abhijithch/orgs","repos_url":"https://api.github.com/users/abhijithch/repos","events_url":"https://api.github.com/users/abhijithch/events{/privacy}","received_events_url":"https://api.github.com/users/abhijithch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/abhijithch/StatsBase.jl","description":"Basic statistics for Julia","fork":true,"url":"https://api.github.com/repos/abhijithch/StatsBase.jl","forks_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/forks","keys_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/teams","hooks_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/hooks","issue_events_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/issues/events{/number}","events_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/events","assignees_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/assignees{/user}","branches_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/branches{/branch}","tags_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/tags","blobs_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/languages","stargazers_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/stargazers","contributors_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/contributors","subscribers_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/subscribers","subscription_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/subscription","commits_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/contents/{+path}","compare_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/merges","archive_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/downloads","issues_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/issues{/number}","pulls_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/labels{/name}","releases_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/releases{/id}","deployments_url":"https://api.github.com/repos/abhijithch/StatsBase.jl/deployments","created_at":"2016-02-15T04:22:18Z","updated_at":"2016-02-15T04:22:19Z","pushed_at":"2016-02-16T08:34:43Z","git_url":"git://github.com/abhijithch/StatsBase.jl.git","ssh_url":"git@github.com:abhijithch/StatsBase.jl.git","clone_url":"https://github.com/abhijithch/StatsBase.jl.git","svn_url":"https://github.com/abhijithch/StatsBase.jl","homepage":null,"size":421,"stargazers_count":0,"watchers_count":0,"language":"Julia","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":"JuliaStats:master","ref":"master","sha":"72afecb17987480298f0df44a6e41169a9de0de8","user":{"login":"JuliaStats","id":2761531,"avatar_url":"https://avatars.githubusercontent.com/u/2761531?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaStats","html_url":"https://github.com/JuliaStats","followers_url":"https://api.github.com/users/JuliaStats/followers","following_url":"https://api.github.com/users/JuliaStats/following{/other_user}","gists_url":"https://api.github.com/users/JuliaStats/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaStats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaStats/subscriptions","organizations_url":"https://api.github.com/users/JuliaStats/orgs","repos_url":"https://api.github.com/users/JuliaStats/repos","events_url":"https://api.github.com/users/JuliaStats/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaStats/received_events","type":"Organization","site_admin":false},"repo":{"id":8130810,"name":"StatsBase.jl","full_name":"JuliaStats/StatsBase.jl","owner":{"login":"JuliaStats","id":2761531,"avatar_url":"https://avatars.githubusercontent.com/u/2761531?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaStats","html_url":"https://github.com/JuliaStats","followers_url":"https://api.github.com/users/JuliaStats/followers","following_url":"https://api.github.com/users/JuliaStats/following{/other_user}","gists_url":"https://api.github.com/users/JuliaStats/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaStats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaStats/subscriptions","organizations_url":"https://api.github.com/users/JuliaStats/orgs","repos_url":"https://api.github.com/users/JuliaStats/repos","events_url":"https://api.github.com/users/JuliaStats/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaStats/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JuliaStats/StatsBase.jl","description":"Basic statistics for Julia","fork":false,"url":"https://api.github.com/repos/JuliaStats/StatsBase.jl","forks_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/forks","keys_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/teams","hooks_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/hooks","issue_events_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/events","assignees_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/tags","blobs_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/languages","stargazers_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/stargazers","contributors_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/contributors","subscribers_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/subscribers","subscription_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/subscription","commits_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/merges","archive_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/downloads","issues_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/labels{/name}","releases_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/releases{/id}","deployments_url":"https://api.github.com/repos/JuliaStats/StatsBase.jl/deployments","created_at":"2013-02-11T01:22:06Z","updated_at":"2016-01-19T13:24:52Z","pushed_at":"2016-02-16T08:34:43Z","git_url":"git://github.com/JuliaStats/StatsBase.jl.git","ssh_url":"git@github.com:JuliaStats/StatsBase.jl.git","clone_url":"https://github.com/JuliaStats/StatsBase.jl.git","svn_url":"https://github.com/JuliaStats/StatsBase.jl","homepage":null,"size":488,"stargazers_count":76,"watchers_count":76,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":44,"mirror_url":null,"open_issues_count":18,"forks":44,"open_issues":18,"watchers":76,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JuliaStats/StatsBase.jl/pulls/149"},"html":{"href":"https://github.com/JuliaStats/StatsBase.jl/pull/149"},"issue":{"href":"https://api.github.com/repos/JuliaStats/StatsBase.jl/issues/149"},"comments":{"href":"https://api.github.com/repos/JuliaStats/StatsBase.jl/issues/149/comments"},"review_comments":{"href":"https://api.github.com/repos/JuliaStats/StatsBase.jl/pulls/149/comments"},"review_comment":{"href":"https://api.github.com/repos/JuliaStats/StatsBase.jl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JuliaStats/StatsBase.jl/pulls/149/commits"},"statuses":{"href":"https://api.github.com/repos/JuliaStats/StatsBase.jl/statuses/a484698a65d55c1b2b272d864e81673e276085ce"}}}}