{"action":"created","comment":{"url":"https://api.github.com/repos/sxs-collaboration/spectre/pulls/comments/142809875","pull_request_review_id":67226153,"id":142809875,"diff_hunk":"@@ -0,0 +1,67 @@\n+// Distributed under the MIT License.\n+// See LICENSE.txt for details.\n+\n+/// \\file\n+/// Defines MathFunctions::Gaussian.\n+\n+#pragma once\n+\n+#include \"Options/Options.hpp\"\n+#include \"PointwiseFunctions/MathFunctions/MathFunction.hpp\"\n+\n+namespace MathFunctions {\n+\n+/*!\n+ *  \\ingroup MathFunctions\n+ *  \\brief Gaussian \\f$f = A \\exp\\left(-\\frac{(x-x_0)^2}{w^2}\\right)\\f$.\n+ *\n+ *  \\details Input file options are: Amplitude, Width, and Center\n+ */\n+class Gaussian : public MathFunction<1> {\n+ public:\n+  static constexpr OptionString_t help = {\n+      \"Applies a Gaussian function to the input value\"};\n+\n+  explicit Gaussian(double amplitude, double width, double center) noexcept;\n+\n+  Gaussian(double amplitude, double width, double center,\n+           const OptionContext& context) noexcept;\n+\n+  double operator()(const double& x) const noexcept override;\n+  DataVector operator()(const DataVector& x) const noexcept override;\n+\n+  double first_deriv(const double& x) const noexcept override;\n+  DataVector first_deriv(const DataVector& x) const noexcept override;\n+\n+  double second_deriv(const double& x) const noexcept override;\n+  DataVector second_deriv(const DataVector& x) const noexcept override;\n+\n+  struct Amplitude {","path":"src/PointwiseFunctions/MathFunctions/Gaussian.hpp","position":39,"original_position":39,"commit_id":"9677b986c1e2c95f54a25ef97caea9c5a4074079","original_commit_id":"9677b986c1e2c95f54a25ef97caea9c5a4074079","user":{"login":"kidder","id":1264082,"avatar_url":"https://avatars3.githubusercontent.com/u/1264082?v=4","gravatar_id":"","url":"https://api.github.com/users/kidder","html_url":"https://github.com/kidder","followers_url":"https://api.github.com/users/kidder/followers","following_url":"https://api.github.com/users/kidder/following{/other_user}","gists_url":"https://api.github.com/users/kidder/gists{/gist_id}","starred_url":"https://api.github.com/users/kidder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kidder/subscriptions","organizations_url":"https://api.github.com/users/kidder/orgs","repos_url":"https://api.github.com/users/kidder/repos","events_url":"https://api.github.com/users/kidder/events{/privacy}","received_events_url":"https://api.github.com/users/kidder/received_events","type":"User","site_admin":false},"body":"move option stuff to top","created_at":"2017-10-04T22:29:22Z","updated_at":"2017-10-04T22:37:10Z","html_url":"https://github.com/sxs-collaboration/spectre/pull/256#discussion_r142809875","pull_request_url":"https://api.github.com/repos/sxs-collaboration/spectre/pulls/256","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/sxs-collaboration/spectre/pulls/comments/142809875"},"html":{"href":"https://github.com/sxs-collaboration/spectre/pull/256#discussion_r142809875"},"pull_request":{"href":"https://api.github.com/repos/sxs-collaboration/spectre/pulls/256"}}},"pull_request":{"url":"https://api.github.com/repos/sxs-collaboration/spectre/pulls/256","id":144789065,"html_url":"https://github.com/sxs-collaboration/spectre/pull/256","diff_url":"https://github.com/sxs-collaboration/spectre/pull/256.diff","patch_url":"https://github.com/sxs-collaboration/spectre/pull/256.patch","issue_url":"https://api.github.com/repos/sxs-collaboration/spectre/issues/256","number":256,"state":"open","locked":false,"title":"Add Gaussian MathFunction","user":{"login":"osheamonn","id":13049958,"avatar_url":"https://avatars0.githubusercontent.com/u/13049958?v=4","gravatar_id":"","url":"https://api.github.com/users/osheamonn","html_url":"https://github.com/osheamonn","followers_url":"https://api.github.com/users/osheamonn/followers","following_url":"https://api.github.com/users/osheamonn/following{/other_user}","gists_url":"https://api.github.com/users/osheamonn/gists{/gist_id}","starred_url":"https://api.github.com/users/osheamonn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osheamonn/subscriptions","organizations_url":"https://api.github.com/users/osheamonn/orgs","repos_url":"https://api.github.com/users/osheamonn/repos","events_url":"https://api.github.com/users/osheamonn/events{/privacy}","received_events_url":"https://api.github.com/users/osheamonn/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-10-04T22:16:22Z","updated_at":"2017-10-04T22:37:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"33611c340b89dca5971a5cbbca2b044bdc405c9a","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/sxs-collaboration/spectre/pulls/256/commits","review_comments_url":"https://api.github.com/repos/sxs-collaboration/spectre/pulls/256/comments","review_comment_url":"https://api.github.com/repos/sxs-collaboration/spectre/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sxs-collaboration/spectre/issues/256/comments","statuses_url":"https://api.github.com/repos/sxs-collaboration/spectre/statuses/9677b986c1e2c95f54a25ef97caea9c5a4074079","head":{"label":"osheamonn:add_one_d_functions","ref":"add_one_d_functions","sha":"9677b986c1e2c95f54a25ef97caea9c5a4074079","user":{"login":"osheamonn","id":13049958,"avatar_url":"https://avatars0.githubusercontent.com/u/13049958?v=4","gravatar_id":"","url":"https://api.github.com/users/osheamonn","html_url":"https://github.com/osheamonn","followers_url":"https://api.github.com/users/osheamonn/followers","following_url":"https://api.github.com/users/osheamonn/following{/other_user}","gists_url":"https://api.github.com/users/osheamonn/gists{/gist_id}","starred_url":"https://api.github.com/users/osheamonn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osheamonn/subscriptions","organizations_url":"https://api.github.com/users/osheamonn/orgs","repos_url":"https://api.github.com/users/osheamonn/repos","events_url":"https://api.github.com/users/osheamonn/events{/privacy}","received_events_url":"https://api.github.com/users/osheamonn/received_events","type":"User","site_admin":false},"repo":{"id":94911451,"name":"spectre","full_name":"osheamonn/spectre","owner":{"login":"osheamonn","id":13049958,"avatar_url":"https://avatars0.githubusercontent.com/u/13049958?v=4","gravatar_id":"","url":"https://api.github.com/users/osheamonn","html_url":"https://github.com/osheamonn","followers_url":"https://api.github.com/users/osheamonn/followers","following_url":"https://api.github.com/users/osheamonn/following{/other_user}","gists_url":"https://api.github.com/users/osheamonn/gists{/gist_id}","starred_url":"https://api.github.com/users/osheamonn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osheamonn/subscriptions","organizations_url":"https://api.github.com/users/osheamonn/orgs","repos_url":"https://api.github.com/users/osheamonn/repos","events_url":"https://api.github.com/users/osheamonn/events{/privacy}","received_events_url":"https://api.github.com/users/osheamonn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/osheamonn/spectre","description":null,"fork":true,"url":"https://api.github.com/repos/osheamonn/spectre","forks_url":"https://api.github.com/repos/osheamonn/spectre/forks","keys_url":"https://api.github.com/repos/osheamonn/spectre/keys{/key_id}","collaborators_url":"https://api.github.com/repos/osheamonn/spectre/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/osheamonn/spectre/teams","hooks_url":"https://api.github.com/repos/osheamonn/spectre/hooks","issue_events_url":"https://api.github.com/repos/osheamonn/spectre/issues/events{/number}","events_url":"https://api.github.com/repos/osheamonn/spectre/events","assignees_url":"https://api.github.com/repos/osheamonn/spectre/assignees{/user}","branches_url":"https://api.github.com/repos/osheamonn/spectre/branches{/branch}","tags_url":"https://api.github.com/repos/osheamonn/spectre/tags","blobs_url":"https://api.github.com/repos/osheamonn/spectre/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/osheamonn/spectre/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/osheamonn/spectre/git/refs{/sha}","trees_url":"https://api.github.com/repos/osheamonn/spectre/git/trees{/sha}","statuses_url":"https://api.github.com/repos/osheamonn/spectre/statuses/{sha}","languages_url":"https://api.github.com/repos/osheamonn/spectre/languages","stargazers_url":"https://api.github.com/repos/osheamonn/spectre/stargazers","contributors_url":"https://api.github.com/repos/osheamonn/spectre/contributors","subscribers_url":"https://api.github.com/repos/osheamonn/spectre/subscribers","subscription_url":"https://api.github.com/repos/osheamonn/spectre/subscription","commits_url":"https://api.github.com/repos/osheamonn/spectre/commits{/sha}","git_commits_url":"https://api.github.com/repos/osheamonn/spectre/git/commits{/sha}","comments_url":"https://api.github.com/repos/osheamonn/spectre/comments{/number}","issue_comment_url":"https://api.github.com/repos/osheamonn/spectre/issues/comments{/number}","contents_url":"https://api.github.com/repos/osheamonn/spectre/contents/{+path}","compare_url":"https://api.github.com/repos/osheamonn/spectre/compare/{base}...{head}","merges_url":"https://api.github.com/repos/osheamonn/spectre/merges","archive_url":"https://api.github.com/repos/osheamonn/spectre/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/osheamonn/spectre/downloads","issues_url":"https://api.github.com/repos/osheamonn/spectre/issues{/number}","pulls_url":"https://api.github.com/repos/osheamonn/spectre/pulls{/number}","milestones_url":"https://api.github.com/repos/osheamonn/spectre/milestones{/number}","notifications_url":"https://api.github.com/repos/osheamonn/spectre/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/osheamonn/spectre/labels{/name}","releases_url":"https://api.github.com/repos/osheamonn/spectre/releases{/id}","deployments_url":"https://api.github.com/repos/osheamonn/spectre/deployments","created_at":"2017-06-20T16:17:41Z","updated_at":"2017-06-20T16:17:43Z","pushed_at":"2017-10-04T22:15:14Z","git_url":"git://github.com/osheamonn/spectre.git","ssh_url":"git@github.com:osheamonn/spectre.git","clone_url":"https://github.com/osheamonn/spectre.git","svn_url":"https://github.com/osheamonn/spectre","homepage":null,"size":3421,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"sxs-collaboration:develop","ref":"develop","sha":"65890a6c320a1c57e011f6af804f41ee3c3f5092","user":{"login":"sxs-collaboration","id":26882595,"avatar_url":"https://avatars2.githubusercontent.com/u/26882595?v=4","gravatar_id":"","url":"https://api.github.com/users/sxs-collaboration","html_url":"https://github.com/sxs-collaboration","followers_url":"https://api.github.com/users/sxs-collaboration/followers","following_url":"https://api.github.com/users/sxs-collaboration/following{/other_user}","gists_url":"https://api.github.com/users/sxs-collaboration/gists{/gist_id}","starred_url":"https://api.github.com/users/sxs-collaboration/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sxs-collaboration/subscriptions","organizations_url":"https://api.github.com/users/sxs-collaboration/orgs","repos_url":"https://api.github.com/users/sxs-collaboration/repos","events_url":"https://api.github.com/users/sxs-collaboration/events{/privacy}","received_events_url":"https://api.github.com/users/sxs-collaboration/received_events","type":"Organization","site_admin":false},"repo":{"id":87570510,"name":"spectre","full_name":"sxs-collaboration/spectre","owner":{"login":"sxs-collaboration","id":26882595,"avatar_url":"https://avatars2.githubusercontent.com/u/26882595?v=4","gravatar_id":"","url":"https://api.github.com/users/sxs-collaboration","html_url":"https://github.com/sxs-collaboration","followers_url":"https://api.github.com/users/sxs-collaboration/followers","following_url":"https://api.github.com/users/sxs-collaboration/following{/other_user}","gists_url":"https://api.github.com/users/sxs-collaboration/gists{/gist_id}","starred_url":"https://api.github.com/users/sxs-collaboration/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sxs-collaboration/subscriptions","organizations_url":"https://api.github.com/users/sxs-collaboration/orgs","repos_url":"https://api.github.com/users/sxs-collaboration/repos","events_url":"https://api.github.com/users/sxs-collaboration/events{/privacy}","received_events_url":"https://api.github.com/users/sxs-collaboration/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sxs-collaboration/spectre","description":null,"fork":false,"url":"https://api.github.com/repos/sxs-collaboration/spectre","forks_url":"https://api.github.com/repos/sxs-collaboration/spectre/forks","keys_url":"https://api.github.com/repos/sxs-collaboration/spectre/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sxs-collaboration/spectre/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sxs-collaboration/spectre/teams","hooks_url":"https://api.github.com/repos/sxs-collaboration/spectre/hooks","issue_events_url":"https://api.github.com/repos/sxs-collaboration/spectre/issues/events{/number}","events_url":"https://api.github.com/repos/sxs-collaboration/spectre/events","assignees_url":"https://api.github.com/repos/sxs-collaboration/spectre/assignees{/user}","branches_url":"https://api.github.com/repos/sxs-collaboration/spectre/branches{/branch}","tags_url":"https://api.github.com/repos/sxs-collaboration/spectre/tags","blobs_url":"https://api.github.com/repos/sxs-collaboration/spectre/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sxs-collaboration/spectre/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sxs-collaboration/spectre/git/refs{/sha}","trees_url":"https://api.github.com/repos/sxs-collaboration/spectre/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sxs-collaboration/spectre/statuses/{sha}","languages_url":"https://api.github.com/repos/sxs-collaboration/spectre/languages","stargazers_url":"https://api.github.com/repos/sxs-collaboration/spectre/stargazers","contributors_url":"https://api.github.com/repos/sxs-collaboration/spectre/contributors","subscribers_url":"https://api.github.com/repos/sxs-collaboration/spectre/subscribers","subscription_url":"https://api.github.com/repos/sxs-collaboration/spectre/subscription","commits_url":"https://api.github.com/repos/sxs-collaboration/spectre/commits{/sha}","git_commits_url":"https://api.github.com/repos/sxs-collaboration/spectre/git/commits{/sha}","comments_url":"https://api.github.com/repos/sxs-collaboration/spectre/comments{/number}","issue_comment_url":"https://api.github.com/repos/sxs-collaboration/spectre/issues/comments{/number}","contents_url":"https://api.github.com/repos/sxs-collaboration/spectre/contents/{+path}","compare_url":"https://api.github.com/repos/sxs-collaboration/spectre/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sxs-collaboration/spectre/merges","archive_url":"https://api.github.com/repos/sxs-collaboration/spectre/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sxs-collaboration/spectre/downloads","issues_url":"https://api.github.com/repos/sxs-collaboration/spectre/issues{/number}","pulls_url":"https://api.github.com/repos/sxs-collaboration/spectre/pulls{/number}","milestones_url":"https://api.github.com/repos/sxs-collaboration/spectre/milestones{/number}","notifications_url":"https://api.github.com/repos/sxs-collaboration/spectre/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sxs-collaboration/spectre/labels{/name}","releases_url":"https://api.github.com/repos/sxs-collaboration/spectre/releases{/id}","deployments_url":"https://api.github.com/repos/sxs-collaboration/spectre/deployments","created_at":"2017-04-07T17:28:20Z","updated_at":"2017-09-06T02:35:49Z","pushed_at":"2017-10-04T22:25:49Z","git_url":"git://github.com/sxs-collaboration/spectre.git","ssh_url":"git@github.com:sxs-collaboration/spectre.git","clone_url":"https://github.com/sxs-collaboration/spectre.git","svn_url":"https://github.com/sxs-collaboration/spectre","homepage":null,"size":3410,"stargazers_count":6,"watchers_count":6,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":47,"forks":8,"open_issues":47,"watchers":6,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/sxs-collaboration/spectre/pulls/256"},"html":{"href":"https://github.com/sxs-collaboration/spectre/pull/256"},"issue":{"href":"https://api.github.com/repos/sxs-collaboration/spectre/issues/256"},"comments":{"href":"https://api.github.com/repos/sxs-collaboration/spectre/issues/256/comments"},"review_comments":{"href":"https://api.github.com/repos/sxs-collaboration/spectre/pulls/256/comments"},"review_comment":{"href":"https://api.github.com/repos/sxs-collaboration/spectre/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sxs-collaboration/spectre/pulls/256/commits"},"statuses":{"href":"https://api.github.com/repos/sxs-collaboration/spectre/statuses/9677b986c1e2c95f54a25ef97caea9c5a4074079"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"kidder"}}