A simple package to analyze archaeological data using Quantogram analysis
Project description
CQArcheo
A simple Python package for calculating and plotting Kendall CQA results (Kendall 1974).
Installation
pip install cqarchaeo
Now you can import the package in your Python scripts.
Usage
Perform a CQA analysis on a given dataset:
### Import the package
from cqarchaeo import CQAnalysis
### Perform the analysis
cqa = CQAnalysis(r'data.xlsx', min_value = 5, max_value = 200, min_quantum = 5,
max_quantum = 24, step = 0.02, Montecarlo_sim = True,
mc_parameter = 0.15, mc_iterations = 100)
### View the quantogram
cqa.plot_quantogram(figsize=(10, 6), plot_best_quantum=True,
dpi=300, plot_alpha_5=True)
You get the following quantogram:
You can also compare multiple quantograms using the compare_quantograms
function:
### Import the package
from cqarchaeo import CQAnalysis, compare_quantograms
### Perform the analysis
cqa1 = CQAnalysis(r'data1.xlsx', min_value = 5, max_value = 200, min_quantum = 5,
max_quantum = 24, step = 0.02, Montecarlo_sim = True,
mc_parameter = 0.15, mc_iterations = 100)
cqa2 = CQAnalysis(r'data2.xlsx', min_value = 5, max_value = 200, min_quantum = 5,
max_quantum = 24, step = 0.02, Montecarlo_sim = True,
mc_parameter = 0.15, mc_iterations = 100)
### Compare the quantograms
compare_quantograms(quantogram_list = [cqa1, cqa_2], figsize=(10, 6),
color_list=["black", "green"], alpha_list=[0.2, 1],
label_list=None, plot_montecarlo_bound=[True, True])
You get the following plot:
References
Kendall, D.G., 1974. Hunting quanta. Phil. Trans. R. Soc. Lond. A 276, 231–266. https://doi.org/10.1098/rsta.1974.0020
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cqarchaeo-0.0.5.tar.gz
(737.8 kB
view hashes)
Built Distribution
cqarchaeo-0.0.5-py3-none-any.whl
(10.5 kB
view hashes)
Close
Hashes for cqarchaeo-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a397890fc99941395afaa528ff5bc079d97c2894386f612c40a6eae01a13b77 |
|
MD5 | f6e68cdaeb957c4629339f5008e625c8 |
|
BLAKE2b-256 | 409125b26d351abafc25a5a4f82a27ebf875273665339c38532005de88991473 |