MMQ (Least Squares method) Package
Description
The function takes a set of 2-D points (np.array) and returns the coefficients of the function that best fits the points, using the Least Squares method. User needs to provide the function degree (1 for linear, 2 for quadratic, etc.) and the points (x and y) as np.arrays.
Maybe, for high degree functions, the function will face some problems. Be careful.
Installation
pip install mmq
Requirements
- numpy
Usage
from mmq import metodo_minimos_quadrados
metodo_minimos_quadrados.mmq(x, y, degree)
Example
from mmq import metodo_minimos_quadrados
import numpy as np
x = np.array([1, 2, 3, 4, 5])
y = np.array([1, 3, 5, 7, 9])
degree = 1
metodo_minimos_quadrados.mmq(x, y, degree)
License
Author
[Igor Matheus Jasenovski]
Version
0.0.1
References
Metadata
Release files for mmq 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mmq-0.0.2.tar.gz | 2.5 kB | Without provenance | Details for mmq-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mmq-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for mmq-0.0.2-py3-none-any.whl |
Total release size: 5.7 kB
Release files / mmq-0.0.2.tar.gz
| Download URL | mmq-0.0.2.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0fbd3117202e51dda5c8ba2066ad6c8ebba6752b3f648efbe062182bcda9a55a
|
|
BLAKE2b-256 checksum How to use checksums |
9013ed38dcf3f06c23cd3804361592817f60d8e045d3ac490a4628fa2388c4bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / mmq-0.0.2-py3-none-any.whl
| Download URL | mmq-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db916b148905098a46f74844c7c6d17a6d14c2a23c8e0208430941ea73a76d26
|
|
BLAKE2b-256 checksum How to use checksums |
aac80c43e4e1979a9c2e6e0fd45c7c4d33635d2ba1b99bfb3dd8bd4149c3b017
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for mmq 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.