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.2.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.2-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: intrinsictime-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 a5d3ab4e211b152f12cb2f5c529d0f325da257e232fb4ad27a26e92767a67ce6
MD5 e0ea16fc3b4895ff82b659721b064708
BLAKE2b-256 5bf141fda150f38121dee37da75c1e4426292a1e789f2d5a4fdf6f73bb99422b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: intrinsictime-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b87ea5ee739f29fd380933e1e5744d5bb3941c3faf3a50f2caa872bc3a6cd30b
MD5 580760739d6adfd45a7d63fef2edf5fc
BLAKE2b-256 0c77b61bf0f3dd45e51271b10148e9856cedbb84d11e173cbc39a73999d0322e

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