Skip to main content

Utilities for intrinsic time decomposition and fractal event analysis

Project description

IntrinsicTime

Utilities for decomposing intrinsic time events and analyzing fractal scaling behavior in price or signal data.

This package provides:

  • dcos_core: A Directional Change and Overshoot (DcOS) event detector.
  • dcos_fractal: Tools for fractal scaling and multi-threshold analysis.
  • dcos_plot: Plotly visualization for interactive fractal plots.

Installation

From GitHub

pip install git+https://github.com/THouwe/IntrinsicTime.git

Local Install

git clone https://github.com/THouwe/IntrinsicTime.git
cd IntrinsicTime
pip install -e .

Dependencies

See requirements.txt.


Overview

IntrinsicTime decomposes time series into Directional Changes (DCs) and Overshoots (OSs) based on log-scale thresholds. It then explores the fractal scaling law between event frequency and detection threshold.

Example Usage

import numpy as np
import pandas as pd
from IntrinsicTime import DcOS_fractal

# Example input DataFrame
df = pd.DataFrame({
    "Timestamp": range(1000),
    "Price": 100 + np.cumsum(np.random.randn(1000))
})

# Initialize and run
analyzer = DcOS_fractal(debugMode=True)
results, ranges = analyzer.run(df)

# Display results
print(results.head())
print(ranges)

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

intrinsictime-0.1.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

intrinsictime-0.1.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file intrinsictime-0.1.1.tar.gz.

File metadata

  • Download URL: intrinsictime-0.1.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for intrinsictime-0.1.1.tar.gz
Algorithm Hash digest
SHA256 98d6cd6b218ee99ae4d7a85b13df8f8b23c6e60abf35fa77df029915e370e41c
MD5 b2effa1bafdedaad34f3db951e861ae2
BLAKE2b-256 d94fd579d0aa3c84849903a3659a7363b71a68fe36e5c7143285836edf7fd887

See more details on using hashes here.

File details

Details for the file intrinsictime-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: intrinsictime-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for intrinsictime-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3a46ef0218b416f6d0f511d95e7c6afc26e2e94b3c1f0f9990c0a0b02ca4cda
MD5 e29e4302ef2e47aa858bc789379d7550
BLAKE2b-256 095ff64fa91e47b213092d8f531744fd26f2dea9e3c7f3c84cca7ee3b31fc3ef

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