{"id":15042474,"url":"https://github.com/hipek8/p6-statistics-linearregression","last_synced_at":"2026-02-18T00:06:30.963Z","repository":{"id":88551382,"uuid":"74045325","full_name":"hipek8/p6-Statistics-LinearRegression","owner":"hipek8","description":"Statistics::LinearRegression - simple linear regression","archived":false,"fork":false,"pushed_at":"2017-04-24T12:09:42.000Z","size":9,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T23:13:36.878Z","etag":null,"topics":["linear-regression","perl6","statistics"],"latest_commit_sha":null,"homepage":null,"language":"Perl6","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hipek8.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-17T16:24:02.000Z","updated_at":"2018-04-07T08:05:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"5000a084-b87d-419f-8619-d68a746237f5","html_url":"https://github.com/hipek8/p6-Statistics-LinearRegression","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hipek8%2Fp6-Statistics-LinearRegression","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hipek8%2Fp6-Statistics-LinearRegression/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hipek8%2Fp6-Statistics-LinearRegression/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hipek8%2Fp6-Statistics-LinearRegression/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hipek8","download_url":"https://codeload.github.com/hipek8/p6-Statistics-LinearRegression/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243495495,"owners_count":20299923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["linear-regression","perl6","statistics"],"created_at":"2024-09-24T20:47:21.861Z","updated_at":"2025-10-12T03:45:36.196Z","avatar_url":"https://github.com/hipek8.png","language":"Perl6","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/hipek8/p6-Statistics-LinearRegression.svg?branch=master)](https://travis-ci.org/hipek8/p6-Statistics-LinearRegression)\n\nNAME\n====\n\nStatistics::LinearRegression - simple linear regression\n\nSYNOPSIS\n========\n\nGather some data\n\n    my @arguments = 1,2,3;\n    my @values = 3,2,1;\n\nBuild model and predict value for some x using object\n\n    use Statistics::LinearRegression;\n    my $x = 15;\n    my $y = my LR.new(@arguments, @values).at($x);\n\nIf you prefer bare functions, use :ALL\n\n    use Statistics::LinearRegression :ALL;\n    my ($slope, $intercept) = get-parameters(@arguments, @values);\n    my $x = 15;\n    my $y = value-at($x, $slope, $intercept);\n\nDESCRIPTION\n===========\n\nLinearRegression finds slope and intercept parameters of linear function by minimizing mean square error.\n\nValue at y is calculated using `y = slope × x + intercept`\n\nTODO\n====\n\n  * R^2 and p-value calculation \n\n  * support for other objective functions\n\nCHANGES\n=======\n\n  * 1.1.0 LR class exported by default, bare subroutines need :ALL\n\nAUTHOR\n======\n\nPaweł Szulc \u003cpawel_szulc@onet.pl\u003e\n\nCOPYRIGHT AND LICENSE\n=====================\n\nCopyright 2016 Paweł Szulc\n\nThis library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhipek8%2Fp6-statistics-linearregression","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhipek8%2Fp6-statistics-linearregression","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhipek8%2Fp6-statistics-linearregression/lists"}