{"action":"created","comment":{"url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/pulls/comments/199370533","pull_request_review_id":133475883,"id":199370533,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTM3MDUzMw==","diff_hunk":"@@ -59,60 +62,58 @@ public PolynomialGeneticEstimator(Function<Float, Float> function, float minX, f\n \t}\r\n \t\r\n \t/**\r\n-\t * @post Devuelve el n�mero de muestras de la imagen\r\n-\t * \t\t de la funci�n especificada\r\n+\t * @post Devuelve el n�mero de muestras de la imagen\r\n+\t * \t\t de la funci�n especificada\r\n \t */\r\n-\tprivate float[] imageSamples(Function<Float, Float> function) {\r\n-\t\tfloat[] imageSamples = new float[this.numberOfDomainNumbers];\r\n+\tprivate Map<Float, Float> imageSamples(Function<Float, Float> function) {\r\n+\t\tMap<Float, Float> imageSamples = new LinkedHashMap<>();\r\n \t\t\r\n \t\tfor ( int i = 0; i<this.numberOfDomainNumbers; i++ ) {\r\n-\t\t\timageSamples[i] = function.apply( this.minX + ( this.maxX - this.minX ) * (float) i / (this.numberOfDomainNumbers-1) );\r\n+\t\t\tfloat key = this.minX + ( this.maxX - this.minX ) * (float) i / (this.numberOfDomainNumbers-1);\r\n+\t\t\timageSamples.put(key, function.apply( key ));\r\n \t\t}\r\n \t\t\r\n \t\treturn imageSamples;\r\n \t}\r\n \t\r\n \t/**\r\n \t * @post Dada los valores estimados de la imagen devuelve el error\r\n-\t * \t     cuadr�tico\r\n+\t * \t     cuadr�tico\r\n \t */\r\n-\tprivate float quadraticError(float[] estimatedImageValues) {\r\n-\t\tfloat result = 0.0f;\r\n+\tprivate float getQuadraticError(Individual individual) {\r\n+\t\tfinal float[] result = new float[1];\r","path":"src/ar/edu/uca/TeoriaDeLenguajes/TPEstimacionPolinomicaGenetica/PolynomialGeneticEstimator/PolynomialGeneticEstimator.java","position":57,"original_position":57,"commit_id":"4de1e8a680663258d31a4836258077c3c4cbbec7","original_commit_id":"4de1e8a680663258d31a4836258077c3c4cbbec7","user":{"login":"rechapit","id":4292607,"node_id":"MDQ6VXNlcjQyOTI2MDc=","avatar_url":"https://avatars0.githubusercontent.com/u/4292607?v=4","gravatar_id":"","url":"https://api.github.com/users/rechapit","html_url":"https://github.com/rechapit","followers_url":"https://api.github.com/users/rechapit/followers","following_url":"https://api.github.com/users/rechapit/following{/other_user}","gists_url":"https://api.github.com/users/rechapit/gists{/gist_id}","starred_url":"https://api.github.com/users/rechapit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rechapit/subscriptions","organizations_url":"https://api.github.com/users/rechapit/orgs","repos_url":"https://api.github.com/users/rechapit/repos","events_url":"https://api.github.com/users/rechapit/events{/privacy}","received_events_url":"https://api.github.com/users/rechapit/received_events","type":"User","site_admin":false},"body":"Esto es para que me deje usar lambda","created_at":"2018-07-02T01:45:57Z","updated_at":"2018-07-02T01:45:57Z","html_url":"https://github.com/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/pull/1#discussion_r199370533","pull_request_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/pulls/comments/199370533"},"html":{"href":"https://github.com/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/pull/1#discussion_r199370533"},"pull_request":{"href":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/pulls/1","id":198555638,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4NTU1NjM4","html_url":"https://github.com/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/pull/1","diff_url":"https://github.com/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/pull/1.diff","patch_url":"https://github.com/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/pull/1.patch","issue_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/issues/1","number":1,"state":"open","locked":false,"title":"agregar soporte para muestras no uniformes","user":{"login":"rechapit","id":4292607,"node_id":"MDQ6VXNlcjQyOTI2MDc=","avatar_url":"https://avatars0.githubusercontent.com/u/4292607?v=4","gravatar_id":"","url":"https://api.github.com/users/rechapit","html_url":"https://github.com/rechapit","followers_url":"https://api.github.com/users/rechapit/followers","following_url":"https://api.github.com/users/rechapit/following{/other_user}","gists_url":"https://api.github.com/users/rechapit/gists{/gist_id}","starred_url":"https://api.github.com/users/rechapit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rechapit/subscriptions","organizations_url":"https://api.github.com/users/rechapit/orgs","repos_url":"https://api.github.com/users/rechapit/repos","events_url":"https://api.github.com/users/rechapit/events{/privacy}","received_events_url":"https://api.github.com/users/rechapit/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-02T01:44:54Z","updated_at":"2018-07-02T01:45:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ab7131802c067fc488cc78fc5e933d6c5a180e2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/issues/1/comments","statuses_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/statuses/4de1e8a680663258d31a4836258077c3c4cbbec7","head":{"label":"rechapit:muestra_no_uniforme","ref":"muestra_no_uniforme","sha":"4de1e8a680663258d31a4836258077c3c4cbbec7","user":{"login":"rechapit","id":4292607,"node_id":"MDQ6VXNlcjQyOTI2MDc=","avatar_url":"https://avatars0.githubusercontent.com/u/4292607?v=4","gravatar_id":"","url":"https://api.github.com/users/rechapit","html_url":"https://github.com/rechapit","followers_url":"https://api.github.com/users/rechapit/followers","following_url":"https://api.github.com/users/rechapit/following{/other_user}","gists_url":"https://api.github.com/users/rechapit/gists{/gist_id}","starred_url":"https://api.github.com/users/rechapit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rechapit/subscriptions","organizations_url":"https://api.github.com/users/rechapit/orgs","repos_url":"https://api.github.com/users/rechapit/repos","events_url":"https://api.github.com/users/rechapit/events{/privacy}","received_events_url":"https://api.github.com/users/rechapit/received_events","type":"User","site_admin":false},"repo":{"id":139377261,"node_id":"MDEwOlJlcG9zaXRvcnkxMzkzNzcyNjE=","name":"TPEstimadorPolinomialGenetico","full_name":"rechapit/TPEstimadorPolinomialGenetico","owner":{"login":"rechapit","id":4292607,"node_id":"MDQ6VXNlcjQyOTI2MDc=","avatar_url":"https://avatars0.githubusercontent.com/u/4292607?v=4","gravatar_id":"","url":"https://api.github.com/users/rechapit","html_url":"https://github.com/rechapit","followers_url":"https://api.github.com/users/rechapit/followers","following_url":"https://api.github.com/users/rechapit/following{/other_user}","gists_url":"https://api.github.com/users/rechapit/gists{/gist_id}","starred_url":"https://api.github.com/users/rechapit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rechapit/subscriptions","organizations_url":"https://api.github.com/users/rechapit/orgs","repos_url":"https://api.github.com/users/rechapit/repos","events_url":"https://api.github.com/users/rechapit/events{/privacy}","received_events_url":"https://api.github.com/users/rechapit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rechapit/TPEstimadorPolinomialGenetico","description":null,"fork":true,"url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico","forks_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/forks","keys_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/teams","hooks_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/hooks","issue_events_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/issues/events{/number}","events_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/events","assignees_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/assignees{/user}","branches_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/branches{/branch}","tags_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/tags","blobs_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/git/refs{/sha}","trees_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/statuses/{sha}","languages_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/languages","stargazers_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/stargazers","contributors_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/contributors","subscribers_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/subscribers","subscription_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/subscription","commits_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/commits{/sha}","git_commits_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/git/commits{/sha}","comments_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/comments{/number}","issue_comment_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/issues/comments{/number}","contents_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/contents/{+path}","compare_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/merges","archive_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/downloads","issues_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/issues{/number}","pulls_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/pulls{/number}","milestones_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/milestones{/number}","notifications_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/labels{/name}","releases_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/releases{/id}","deployments_url":"https://api.github.com/repos/rechapit/TPEstimadorPolinomialGenetico/deployments","created_at":"2018-07-02T01:41:13Z","updated_at":"2018-07-02T01:41:15Z","pushed_at":"2018-07-02T01:44:29Z","git_url":"git://github.com/rechapit/TPEstimadorPolinomialGenetico.git","ssh_url":"git@github.com:rechapit/TPEstimadorPolinomialGenetico.git","clone_url":"https://github.com/rechapit/TPEstimadorPolinomialGenetico.git","svn_url":"https://github.com/rechapit/TPEstimadorPolinomialGenetico","homepage":null,"size":18,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ArielFavioCarrizo:master","ref":"master","sha":"5148d278e5875ee8e2e6e0eaca4437d4e8ea5a0e","user":{"login":"ArielFavioCarrizo","id":26858090,"node_id":"MDQ6VXNlcjI2ODU4MDkw","avatar_url":"https://avatars2.githubusercontent.com/u/26858090?v=4","gravatar_id":"","url":"https://api.github.com/users/ArielFavioCarrizo","html_url":"https://github.com/ArielFavioCarrizo","followers_url":"https://api.github.com/users/ArielFavioCarrizo/followers","following_url":"https://api.github.com/users/ArielFavioCarrizo/following{/other_user}","gists_url":"https://api.github.com/users/ArielFavioCarrizo/gists{/gist_id}","starred_url":"https://api.github.com/users/ArielFavioCarrizo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArielFavioCarrizo/subscriptions","organizations_url":"https://api.github.com/users/ArielFavioCarrizo/orgs","repos_url":"https://api.github.com/users/ArielFavioCarrizo/repos","events_url":"https://api.github.com/users/ArielFavioCarrizo/events{/privacy}","received_events_url":"https://api.github.com/users/ArielFavioCarrizo/received_events","type":"User","site_admin":false},"repo":{"id":139347819,"node_id":"MDEwOlJlcG9zaXRvcnkxMzkzNDc4MTk=","name":"TPEstimadorPolinomialGenetico","full_name":"ArielFavioCarrizo/TPEstimadorPolinomialGenetico","owner":{"login":"ArielFavioCarrizo","id":26858090,"node_id":"MDQ6VXNlcjI2ODU4MDkw","avatar_url":"https://avatars2.githubusercontent.com/u/26858090?v=4","gravatar_id":"","url":"https://api.github.com/users/ArielFavioCarrizo","html_url":"https://github.com/ArielFavioCarrizo","followers_url":"https://api.github.com/users/ArielFavioCarrizo/followers","following_url":"https://api.github.com/users/ArielFavioCarrizo/following{/other_user}","gists_url":"https://api.github.com/users/ArielFavioCarrizo/gists{/gist_id}","starred_url":"https://api.github.com/users/ArielFavioCarrizo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArielFavioCarrizo/subscriptions","organizations_url":"https://api.github.com/users/ArielFavioCarrizo/orgs","repos_url":"https://api.github.com/users/ArielFavioCarrizo/repos","events_url":"https://api.github.com/users/ArielFavioCarrizo/events{/privacy}","received_events_url":"https://api.github.com/users/ArielFavioCarrizo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ArielFavioCarrizo/TPEstimadorPolinomialGenetico","description":null,"fork":false,"url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico","forks_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/forks","keys_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/teams","hooks_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/hooks","issue_events_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/issues/events{/number}","events_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/events","assignees_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/assignees{/user}","branches_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/branches{/branch}","tags_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/tags","blobs_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/git/refs{/sha}","trees_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/statuses/{sha}","languages_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/languages","stargazers_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/stargazers","contributors_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/contributors","subscribers_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/subscribers","subscription_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/subscription","commits_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/commits{/sha}","git_commits_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/git/commits{/sha}","comments_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/comments{/number}","issue_comment_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/issues/comments{/number}","contents_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/contents/{+path}","compare_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/merges","archive_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/downloads","issues_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/issues{/number}","pulls_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/pulls{/number}","milestones_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/milestones{/number}","notifications_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/labels{/name}","releases_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/releases{/id}","deployments_url":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/deployments","created_at":"2018-07-01T17:23:21Z","updated_at":"2018-07-01T20:28:02Z","pushed_at":"2018-07-02T01:44:54Z","git_url":"git://github.com/ArielFavioCarrizo/TPEstimadorPolinomialGenetico.git","ssh_url":"git@github.com:ArielFavioCarrizo/TPEstimadorPolinomialGenetico.git","clone_url":"https://github.com/ArielFavioCarrizo/TPEstimadorPolinomialGenetico.git","svn_url":"https://github.com/ArielFavioCarrizo/TPEstimadorPolinomialGenetico","homepage":null,"size":18,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/pulls/1"},"html":{"href":"https://github.com/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/pull/1"},"issue":{"href":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/issues/1"},"comments":{"href":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ArielFavioCarrizo/TPEstimadorPolinomialGenetico/statuses/4de1e8a680663258d31a4836258077c3c4cbbec7"}},"author_association":"NONE"}}
{"actor":{"display_login":"rechapit"}}