Skip to main content

Python implementation of various probability-based sampling algorithms inspired by the R package Sampling.

Project description

Package Sampling

python version of Package Sampling in R

Installation

You can install the package directly from PyPI:

pip install package-sampling

Usage Example

from package_sampling import up_brewer

# Create a population with inclusion probabilities
probabilities = [0.1, 0.2, 0.3, 0.4]

# Draw a sample using Brewer's method
sample = up_brewer(probabilities)
print(sample)

Authors

Mohammadreza Razavian - smrrazavian@outlook.com Bardia Panahbehagh - Panahbehagh@khu.ac.ir

Acknowledgments

This package is inspired by the R package "Sampling" Thanks to all contributors and users

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

package_sampling-0.1.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file package_sampling-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for package_sampling-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b00f793be42bfde0814eb40d55073a5fd3de5f68e97bc9179c06b4c202f224ef
MD5 ec32dcf2d829d64fed1544bd97e43d3f
BLAKE2b-256 74330e706dad12743569426aa6af4472c198dd80233d094d107be830e4da70ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page