A data exploration and visualization algorithm for understanding diffusion process.
Project description
# TaPiTaS algorithm
A data exploration and visualization algorithm for understanding diffusion process.
# Method description and citation:
## Ref.:
Chin W. C. B., Wen T. H., Sabel C. E. & Wang I. H. (2017). A geo-computational algorithm for exploring the structure of diffusion progression in time and space. Scientific Reports 7: 12565. DOI http://dx.doi.org/10.1038/s41598-017-12852-z
Paper Link:
https://www.nature.com/articles/s41598-017-12852-z
Abstract Link:
https://wcchin.github.io/a-geo-computational-algorithm-for-exploring-the-structure-of-diffusion-progression-in-time-and-space.html
====================
## dependencies
- pandas
- geopandas
- scipy
- numpy
- descartes
- matplotlib
- seaborn
- shapely
====================
## Usage
similar to the example file
**column settings**
pts_setting (about the data, should be set according to data frame):
- xcor: x coordinate column,
- ycor: y coordinate column, and
- time: the time column, integer
xcor and ycor will be used to calculate distance, so probably not longitude and latitude, should be projected according to the region
```python
pts_setting = {'xcor':'xcor', 'ycor':'ycor', 'time':'days'}
```
**main parameters**
setting the three major parameter (should be set by user):
- s_radius: spatial searching radius
- T1: the time buffer, neighboring pair relationship
- T2: the time threshold, the shifting link relationship
```python
import pandas as pd
import tapitas
adf = pd.read_csv('test_data/demo_0905.csv', index_col=0)
pts_setting = {'xcor':'xx', 'ycor':'yy', 'time':'time'}
s_radius = 500
T1 = 6
T2 = 23
PG_graph = tapitas.Point_Diffusion(adf, pts_setting=pts_setting, s_radius=s_radius, T1=T1, T2=T2, resample_time=99, confidence_level=0.8, critical_value=None)
print("calculation done")
res = PG_graph.results
print(res.get_summary_df())
print(res.get_node_df())
print(res.get_cluster_df())
print(res.get_progress_df())
print(res.get_final_slinks_df())
print(res.get_final_nlinks_df())
```
A data exploration and visualization algorithm for understanding diffusion process.
# Method description and citation:
## Ref.:
Chin W. C. B., Wen T. H., Sabel C. E. & Wang I. H. (2017). A geo-computational algorithm for exploring the structure of diffusion progression in time and space. Scientific Reports 7: 12565. DOI http://dx.doi.org/10.1038/s41598-017-12852-z
Paper Link:
https://www.nature.com/articles/s41598-017-12852-z
Abstract Link:
https://wcchin.github.io/a-geo-computational-algorithm-for-exploring-the-structure-of-diffusion-progression-in-time-and-space.html
====================
## dependencies
- pandas
- geopandas
- scipy
- numpy
- descartes
- matplotlib
- seaborn
- shapely
====================
## Usage
similar to the example file
**column settings**
pts_setting (about the data, should be set according to data frame):
- xcor: x coordinate column,
- ycor: y coordinate column, and
- time: the time column, integer
xcor and ycor will be used to calculate distance, so probably not longitude and latitude, should be projected according to the region
```python
pts_setting = {'xcor':'xcor', 'ycor':'ycor', 'time':'days'}
```
**main parameters**
setting the three major parameter (should be set by user):
- s_radius: spatial searching radius
- T1: the time buffer, neighboring pair relationship
- T2: the time threshold, the shifting link relationship
```python
import pandas as pd
import tapitas
adf = pd.read_csv('test_data/demo_0905.csv', index_col=0)
pts_setting = {'xcor':'xx', 'ycor':'yy', 'time':'time'}
s_radius = 500
T1 = 6
T2 = 23
PG_graph = tapitas.Point_Diffusion(adf, pts_setting=pts_setting, s_radius=s_radius, T1=T1, T2=T2, resample_time=99, confidence_level=0.8, critical_value=None)
print("calculation done")
res = PG_graph.results
print(res.get_summary_df())
print(res.get_node_df())
print(res.get_cluster_df())
print(res.get_progress_df())
print(res.get_final_slinks_df())
print(res.get_final_nlinks_df())
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tapitas-0.0.5.tar.gz
(21.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
tapitas-0.0.5-py3-none-any.whl
(27.9 kB
view details)
File details
Details for the file tapitas-0.0.5.tar.gz.
File metadata
- Download URL: tapitas-0.0.5.tar.gz
- Upload date:
- Size: 21.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.2 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4cde8fe5c850fd641f715da76a1e6ef400e19ff3739fe699dfe9331f2d8740f
|
|
| MD5 |
a6e2f17bc2270bfde977bbb4b89f251b
|
|
| BLAKE2b-256 |
0040d25b1630441b30bf833cb760b7bf506f9fe67ce56a1094b27c5265b37108
|
File details
Details for the file tapitas-0.0.5-py3-none-any.whl.
File metadata
- Download URL: tapitas-0.0.5-py3-none-any.whl
- Upload date:
- Size: 27.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.2 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b686ad71799d73a1e503a4f31b07047c132099a3c816d05427489ab83b8c9490
|
|
| MD5 |
d4387475d96e17557c329b80a68ba529
|
|
| BLAKE2b-256 |
2f4af2193f071b22fb8f3a645b6a43e7f0262ae295dbe210c729dc9e8b21b94b
|