{"id":29108557,"url":"https://github.com/fako1024/numerics","last_synced_at":"2025-06-29T06:11:40.628Z","repository":{"id":57543440,"uuid":"209014592","full_name":"fako1024/numerics","owner":"fako1024","description":"Method / Tools for numerical methods / statistics","archived":false,"fork":false,"pushed_at":"2024-06-24T10:07:34.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-27T09:07:45.164Z","etag":null,"topics":["beta-distribution","binomial-distribution","numerical-computation","numerical-methods","root-finding","statistics"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fako1024.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":"2019-09-17T09:35:29.000Z","updated_at":"2024-06-24T10:06:42.000Z","dependencies_parsed_at":"2024-06-22T03:36:32.716Z","dependency_job_id":null,"html_url":"https://github.com/fako1024/numerics","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/fako1024/numerics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fako1024%2Fnumerics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fako1024%2Fnumerics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fako1024%2Fnumerics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fako1024%2Fnumerics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fako1024","download_url":"https://codeload.github.com/fako1024/numerics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fako1024%2Fnumerics/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262545043,"owners_count":23326665,"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":["beta-distribution","binomial-distribution","numerical-computation","numerical-methods","root-finding","statistics"],"created_at":"2025-06-29T06:11:40.152Z","updated_at":"2025-06-29T06:11:40.622Z","avatar_url":"https://github.com/fako1024.png","language":"Go","readme":"# Method / Tools for numerical methods / statistics\n\n[![Github Release](https://img.shields.io/github/release/fako1024/numerics.svg)](https://github.com/fako1024/numerics/releases)\n[![GoDoc](https://godoc.org/github.com/fako1024/numerics?status.svg)](https://godoc.org/github.com/fako1024/numerics/)\n[![Go Report Card](https://goreportcard.com/badge/github.com/fako1024/numerics)](https://goreportcard.com/report/github.com/fako1024/numerics)\n[![Build/Test Status](https://github.com/fako1024/numerics/workflows/Go/badge.svg)](https://github.com/fako1024/numerics/actions?query=workflow%3AGo)\n\nThis package provides several methods / tools that support numerical methods and statistics in Go.\n\n## Features\n- Various numeric methods, such as\n\t- Complete, incomplete and regularized incomplete Beta function\n\t- Binomial distribution function\n\t- Sign function\n\t- Lgamma function (without error return for ease of use)\n- Numerical root finding methods (sub-package `root`) via a generic interface, including\n\t- Linear root finding via Bisection\n\t- Non-linear root finding via Newton-Raphson and a cubic method\n\t- Adaptive / heuristic options to circumvent known limitations of root finding methods, i.e. detection of stationary and cyclic situations\n\n## Installation\n```bash\ngo get -u github.com/fako1024/numerics\n```\n\n## API summary\n\nThe API of the package is fairly straight-forward. The following functions are exposed:\n```Go\n// Sign returns the sign of a float64  \nfunc Sign(x float64) int\n\n// Lgamma return the logarithmic Gamma function (ignoring any error)  \nfunc Lgamma(x float64) float64\n\n// Beta returns the value of the complete beta function B(a, b).  \nfunc Beta(a, b float64) float64\n\n// BetaIncomplete returns the value of the regularized incomplete beta  \n// function Iₓ(a, b).  \n//  \n// This is not to be confused with the \"incomplete beta function\",  \n// which can be computed as BetaIncomplete(x, a, b)*Beta(a, b).  \n//  \n// If x \u003c 0 or x \u003e 1, returns NaN.  \nfunc BetaIncompleteRegular(x, a, b float64) float64\n\n// BetaIncomplete returns the value of the (non-regularized) incomplete beta function  \nfunc BetaIncomplete(x, a, b float64) float64\n\n// Binomial returns the value of the probability distribution for a Bernoulli experiment.  \n// Consequentially, this is also the differentiated value of the regularized incomplete  \n// beta function, representing the cumulative distribution of the binomial PDF  \nfunc Binomial(x, k, n float64) float64\n```\nThe documentation for root finding methods can be found in the sub-package `root`.\n\n## Examples\nFor some simple examples, have a look at the `numerics_test.go` file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffako1024%2Fnumerics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffako1024%2Fnumerics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffako1024%2Fnumerics/lists"}