Copula
A python library for sampling and generating new Data points by multivariate Gaussian copulas.
Overview
A python libray to build multivariate gaussian copula for given data points and sample arbitary number of new data points from input data distribution. In short given some input data points, it can generate more such data points which follow the input data distribution
Installation
Install using pip
pip install copula
Usage
If you have some data points and distribution of this multivariate data points is not explicitly given. Then this library can be used to sample new points from this dritribution. gendata() funtion number of new samples to be generated as input
>>>from copula import pyCopula
>>>data = [[2,1,2,4],[3,1,7,4],[2,9,1,0],[3,6,1,6] ]
>>>cop = pyCopula.Copula(data)
>>>samples = cop.gendata(3)
>>>print(samples)
[2.697128268374179, 6.29726013955287, 2.983951810593502, 2.1149729235834496], [3.0, 1.0, 6.831369733333171, 4.631091408593663], [2.147377031275032, 6.75098812552581, 1.9789800708813163, 1.1200891337867478]]
Assumptions
data provided to copula must be a 2D numeric array
Data must be clean (no null values)
Every row of input data must contain same number of columns
Metadata
Release files for copula 0.0.4
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 |
|---|---|---|---|---|
| copula-0.0.4.tar.gz | 2.2 kB | Without provenance | Details for copula-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| copula-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for copula-0.0.4-py3-none-any.whl |
Total release size: 5.6 kB
Release files / copula-0.0.4.tar.gz
| Download URL | copula-0.0.4.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a714efaf984e1dd5a4c0fa8f49c952d30a68c9a9f8df92c4bbd79b73457f949
|
|
BLAKE2b-256 checksum How to use checksums |
c55d95657af10af15457ff62d6220efb4eb85b88e2b35a629980b199339ba2c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.4
|
Release files / copula-0.0.4-py3-none-any.whl
| Download URL | copula-0.0.4-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89a4eab1ea3b474b53f394a50294f2463774f299f547ba6780351f1d6a40a9cf
|
|
BLAKE2b-256 checksum How to use checksums |
c012ee98bbda9666964bbc8777572a988ef6025d8a65705a50bcd1566ebc4c22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.4
|
Security for copula 0.0.4
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.