TimeScope
Simple Python library written in Rust for analyzing and scoping out patterns in time series data. This is a pet project to practice programming in Rust and currently only contains two algorithms:
- ED-Pelt change point detection
- Steady State detection (based on change points)
Install
pip install timescope
Example Use
from timescope import TimeSeriesData, cpd_ed_pelt, ssd_cpd
A = [0, 0, 0, 0, 10, 10, 10, 10, 10, 0, 0, 0, 0]
B = list(range(len(A)))
cps = cpd_ed_pelt(A, 1)
print(f"change points: {cps}")
# change points: [4, 9]
ts = TimeSeriesData(B, A)
print(ts)
# TimeSeriesData(
# time=[0, 1, ..., 11, 12],
# data=[0, 0, ..., 0, 0],
# granularity=1,
# is_step=false
# )
resampled_ts = ts.equally_spaced_resampling()
print(resampled_ts.slice(3, 6))
# TimeSeriesData(
# time=[3, 4, 5, 6],
# data=[0, 10, 10, 10],
# granularity=1,
# is_step=false
# )
ss_map = ssd_cpd(resampled_ts, 1, 1.0, -1.0)
print(f"steady state map: {ss_map.data}")
# steady state map: [1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0]
For more comprehensive examples, check the notebooks folder.
Metadata
Release files for timescope 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| timescope-0.1.1.tar.gz | 25.3 kB | Details |
Built distributions (wheels)
Total release size: 22.4 MB
Release files / timescope-0.1.1.tar.gz
| Download URL | timescope-0.1.1.tar.gz |
|---|---|
| Size | 25.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a89fa778bbf1eedf2923895c32a5fdb737b410d2e566bb4f847b5feda0cedfd1
|
|
BLAKE2b-256 checksum How to use checksums |
4443280760a27c596debb3b84051124160f49f901eef4b0a77c4bd32f0e0ae65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | timescope-0.1.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Linux glibc 2.17+ x86-64 PyPy 3.9 PyPy 3.9 7.3 |
|
SHA-256 checksum How to use checksums |
f63f37a147d728d3459451e159286b089ac445844cd25e3af7762198e93dd11c
|
|
BLAKE2b-256 checksum How to use checksums |
47b43e15701da87c8bb7331c5f8e0490415e6313b223fbe805cf7c19bae4a68a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | timescope-0.1.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Linux glibc 2.17+ ARM64 PyPy 3.9 PyPy 3.9 7.3 |
|
SHA-256 checksum How to use checksums |
8a3a85623ab3301266319d3940cda5d7da9e97096dd22e5e2e4eb565e329e1ed
|
|
BLAKE2b-256 checksum How to use checksums |
113229bf072ce6bc87df5d1463dcd4c0f7bdc2b67ce7a107ff355e467f429f1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-pp39-pypy39_pp73-macosx_10_7_x86_64.whl
| Download URL | timescope-0.1.1-pp39-pypy39_pp73-macosx_10_7_x86_64.whl |
|---|---|
| Size | 293.3 kB |
| Tags | PyPy 3.9 PyPy 3.9 7.3 macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
dcabe3dbd90af544fb156b39c2d14827b080e8d226eadfdcf9c70bd02287acb1
|
|
BLAKE2b-256 checksum How to use checksums |
598cba02095b57ace70face063f721fd7d6d31b47f571aaf5474f55fb1ee414a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | timescope-0.1.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Linux glibc 2.17+ x86-64 PyPy 3.8 PyPy 3.8 7.3 |
|
SHA-256 checksum How to use checksums |
3388527f595ac77e4021849ff1602f3d90b86dd86b1aef6b06b77a0812d433a2
|
|
BLAKE2b-256 checksum How to use checksums |
8becf2b6e4a9a6f07f65723d7a3fb0a7839595a095339a14a9a8b7681ad93289
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | timescope-0.1.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Linux glibc 2.17+ ARM64 PyPy 3.8 PyPy 3.8 7.3 |
|
SHA-256 checksum How to use checksums |
5894e265e7d986655a8677cfe4e7341ab1884f8aa7dd7b1494ec756ebe16b5e1
|
|
BLAKE2b-256 checksum How to use checksums |
69f8c4318f0f802b48374ca2c0cf8c3fec627bacd498dac8288d3d60cb9e7cee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-pp38-pypy38_pp73-macosx_10_7_x86_64.whl
| Download URL | timescope-0.1.1-pp38-pypy38_pp73-macosx_10_7_x86_64.whl |
|---|---|
| Size | 293.2 kB |
| Tags | PyPy 3.8 PyPy 3.8 7.3 macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
0d892e5ec1edea174fd91586110a2e5f23d18363975dba6348b0dd9b296dc8af
|
|
BLAKE2b-256 checksum How to use checksums |
846bd4e5608390f849469c3aaf77d2ec32a711891fd4cca08b9294565f96fe8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | timescope-0.1.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Linux glibc 2.17+ x86-64 PyPy 3.7 PyPy 3.7 7.3 |
|
SHA-256 checksum How to use checksums |
a4892dc7300fb9ffac8fb707257bf06e0340b5fa838584f6744aee5f808e6454
|
|
BLAKE2b-256 checksum How to use checksums |
db51c3b118b107bcbb5a17db5118904937b7e7cc3fe47ad6fb4828ef3ae352d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | timescope-0.1.1-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Linux glibc 2.17+ ARM64 PyPy 3.7 PyPy 3.7 7.3 |
|
SHA-256 checksum How to use checksums |
03713fdfecffad76368a1ea28562a8802c24894e97d854f27087b2ae490a1870
|
|
BLAKE2b-256 checksum How to use checksums |
46b53f0aa13029a7adcddc614c47e193092724025f08c518c8a3fd4785c8c3c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-pp37-pypy37_pp73-macosx_10_7_x86_64.whl
| Download URL | timescope-0.1.1-pp37-pypy37_pp73-macosx_10_7_x86_64.whl |
|---|---|
| Size | 296.5 kB |
| Tags | PyPy 3.7 PyPy 3.7 7.3 macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
b2b45486e3e35ac7407e48b2be3aaa669255b744ef0f85014746b27abc4af16b
|
|
BLAKE2b-256 checksum How to use checksums |
cfc66f4294d22d3b3da5c26f0f71d433509fbc26a230d421ea45fa22ecd9e5a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-cp37-abi3-win_amd64.whl
| Download URL | timescope-0.1.1-cp37-abi3-win_amd64.whl |
|---|---|
| Size | 165.6 kB |
| Tags | CPython 3.7 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
9d87a50b8a3b336d5707f8faf2c07a4c79a7409ddf9c3698ca56be9ed4cb7bd0
|
|
BLAKE2b-256 checksum How to use checksums |
9469b06595c55119173d53ca3764c530476f4f47db9bf51a308716d97850d33a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-cp37-abi3-win32.whl
| Download URL | timescope-0.1.1-cp37-abi3-win32.whl |
|---|---|
| Size | 164.0 kB |
| Tags | CPython 3.7 Windows x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
82a959584ff50aedbe6465d40d95109fe443b5f63ddda64d70af9da161822354
|
|
BLAKE2b-256 checksum How to use checksums |
7fe84f33ca7e3565b48c1c69858ff578986a15a99aaf2e65e9ef9904a747344d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-cp37-abi3-musllinux_1_2_x86_64.whl
| Download URL | timescope-0.1.1-cp37-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.7 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
b460657b3e485f7d6260399df34d710a190d2b6ab4c1626e47d121ae9272bda3
|
|
BLAKE2b-256 checksum How to use checksums |
6e08ded5d13a064351badb2d2a6b385abf516de32b4da2cffbb53d056c76cd27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-cp37-abi3-musllinux_1_2_i686.whl
| Download URL | timescope-0.1.1-cp37-abi3-musllinux_1_2_i686.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.7 Linux musl 1.2+ x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
58e4ab419c6f32d666499dd793e2cbbc035f8f9d0495a305580ca346997cdfa1
|
|
BLAKE2b-256 checksum How to use checksums |
797bcc9a74f6c97905ea6ef7ea8dc82d7884841634883404db05f044ecd57643
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-cp37-abi3-musllinux_1_2_armv7l.whl
| Download URL | timescope-0.1.1-cp37-abi3-musllinux_1_2_armv7l.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.7 Linux musl 1.2+ ARMv7l abi3 |
|
SHA-256 checksum How to use checksums |
dfff9d51366346bd191b29886c55de3d890990a939a2565aa7baf63fcc3981bf
|
|
BLAKE2b-256 checksum How to use checksums |
ebab00bad127eeab6754be68adaf9fdef3c384f214981ea6f92f460f453fc384
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-cp37-abi3-musllinux_1_2_aarch64.whl
| Download URL | timescope-0.1.1-cp37-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.7 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
654e163fd45370e63a77b5863fed7e9e07e331fc17a11b7cb576c9854fe31e70
|
|
BLAKE2b-256 checksum How to use checksums |
ff3d950c8a2b44506dd92772322ac86dc3808bce44e163c7ccd8e55b6605bc9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | timescope-0.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.7 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
721146abe76277dc4e68678ba196cfd6d57789404b743ee09cb3ec2e7387b46d
|
|
BLAKE2b-256 checksum How to use checksums |
afb09e692921fe843905c5f7823d3f5cd2c61f5d44cb8d094e36147e2f032542
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
| Download URL | timescope-0.1.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.7 Linux glibc 2.17+ IBM System/390x abi3 |
|
SHA-256 checksum How to use checksums |
4af1300d3ec2428c6b52f17f4f1fef4764eb915a8b3d5d20e0f3472d089ceb80
|
|
BLAKE2b-256 checksum How to use checksums |
35a0b990a2ec251906fb73cd2a7e8ea14c3c9fc407aea1881e4b36e585d00f6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
| Download URL | timescope-0.1.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.7 Linux glibc 2.17+ PowerPC 64-le abi3 |
|
SHA-256 checksum How to use checksums |
6914a19fe33a4edb91cd655bd3229c31c63c54bdc4b94e60f05fe0213735328f
|
|
BLAKE2b-256 checksum How to use checksums |
af11ca15f0986b72369a1fcc4c2f07bb32d718d026f648b816bb66c25b071117
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
| Download URL | timescope-0.1.1-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.7 Linux glibc 2.17+ PowerPC 64-be abi3 |
|
SHA-256 checksum How to use checksums |
a21f65ff5a715e9a7f24768fd39d659880b5996b747f5ff4184e912a31375430
|
|
BLAKE2b-256 checksum How to use checksums |
41108f550725c3e21b1a688a4a3667061bae2395722237550787a2dda2bd4c7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | timescope-0.1.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.7 Linux glibc 2.17+ ARMv7l abi3 |
|
SHA-256 checksum How to use checksums |
fabb5d223a233af75e1355915dba9ec8357efdb294b5c59f9134252d83b9276c
|
|
BLAKE2b-256 checksum How to use checksums |
3c9f99cdf6209c0781251c5d769484cea47fd286b8526166b9ba8fc85ba53aef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | timescope-0.1.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.7 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
7d93417f7582f6e41680706d2d0c0fdbf0fdfd6543e74382fec15221f938dfa8
|
|
BLAKE2b-256 checksum How to use checksums |
c7a98b7317940a3a44bee9af28f9dadf7a4f92d77788eaf2bb062067551c27cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
| Download URL | timescope-0.1.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.7 Linux glibc 2.5+ x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
b1bd8746aba7bfa6022117c64d0ca848281fd0b1b8ade5ba4c16bf9caae1cb62
|
|
BLAKE2b-256 checksum How to use checksums |
324e353acaab8721229d96ca747f00c6a4308d9590f3b71213b40660f006b31b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | timescope-0.1.1-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 576.9 kB |
| Tags | CPython 3.7 abi3 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e676f474b5c609e6ee54a82cf97968d08ee11d054e2c096130e6b02d25fcf349
|
|
BLAKE2b-256 checksum How to use checksums |
c031d0d6b357cb00d2224e2bedb0c5d6f62d9a95aeccb40cf00593c1c0888ac8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / timescope-0.1.1-cp37-abi3-macosx_10_7_x86_64.whl
| Download URL | timescope-0.1.1-cp37-abi3-macosx_10_7_x86_64.whl |
|---|---|
| Size | 295.6 kB |
| Tags | CPython 3.7 abi3 macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
97b270acdd6f4d8d727cd55be6e124c61a0e433622a9af3a5717c9e8b61945a9
|
|
BLAKE2b-256 checksum How to use checksums |
d3c66801be0237657e87ca682551aac567a156b4df129ade1229313b2df01752
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|