Skip to main content

hgraph-analytics

C++-first numerical analytics for hgraph. The package owns the numerical analytical family migrated from core—diff, count, clip, ewma, and pct_change—plus the EWMA parameter conversion helpers.

import hgraph as hg
import hgraph_analytics as hga

change = hga.pct_change(
    value,
    period=12,
    divide_by_zero=hg.DivideByZero.NAN,
)

bounded = hga.clip(change, -0.25, 0.25)
smoothed = hga.ewma(bounded, alpha=0.2)

The result is fractional: 0.05 denotes five percent. period counts valid source observations and must be positive. The operator does not infer dataframe ordering, elapsed-time sampling, market sessions, or financial price adjustment.

Native consumers link hgraph::analytics, call hgraph::analytics::register_analytics_operators(), and wire the markers in hgraph::analytics, including diff, count, clip, ewma, and pct_change.

See the hgraph user-guide migration note for the complete Python and C++ name mapping from the former core API.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hgraph_analytics-0.8.5.tar.gz (12.9 kB view details)

Uploaded Source

Built Distributions

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

hgraph_analytics-0.8.5-cp312-abi3-win_amd64.whl (904.2 kB view details)

Uploaded CPython 3.12+Windows x86-64

hgraph_analytics-0.8.5-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (262.4 kB view details)

Uploaded CPython 3.12+manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

hgraph_analytics-0.8.5-cp312-abi3-macosx_15_0_arm64.whl (226.8 kB view details)

Uploaded CPython 3.12+macOS 15.0+ ARM64

File details

Details for the file hgraph_analytics-0.8.5.tar.gz.

File metadata

  • Download URL: hgraph_analytics-0.8.5.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hgraph_analytics-0.8.5.tar.gz
Algorithm Hash digest
SHA256 0e279b1fb1d282db5f630bad5a0b264b6f8b2bd5270d7000263eccd2f4983759
MD5 9de4a80d0d56934844c745fdfd99fdba
BLAKE2b-256 8941b7c63e7c0dc3c0eb9ab7e0a4f75e2b144d8167fb4b915fd1569b77f92029

See more details on using hashes here.

Provenance

The following attestation bundles were made for hgraph_analytics-0.8.5.tar.gz:

Publisher: release-wheels.yml on hhenson/hgraph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hgraph_analytics-0.8.5-cp312-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for hgraph_analytics-0.8.5-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 69cf28dcacba3ed0a96d57551135c4c25481a29c4ef4e05d2757bb4acc62536c
MD5 e0a4998d9cc960e0e430c6ce605b5627
BLAKE2b-256 b224b07b07501b01d9e91c56b648d2b83fb09ebc0554707f9197d3ea0a978e36

See more details on using hashes here.

Provenance

The following attestation bundles were made for hgraph_analytics-0.8.5-cp312-abi3-win_amd64.whl:

Publisher: release-wheels.yml on hhenson/hgraph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hgraph_analytics-0.8.5-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hgraph_analytics-0.8.5-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b3e042cd71bb28260d532661dad250e6276bb9777f13842fe1e4ef86f938124a
MD5 d0c56b55c0366b62f3ee5e1d50861d71
BLAKE2b-256 bb8fda01c16c128c7d803ca6645040fa4338c458c00b4a86dc95e0822b53db53

See more details on using hashes here.

Provenance

The following attestation bundles were made for hgraph_analytics-0.8.5-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release-wheels.yml on hhenson/hgraph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hgraph_analytics-0.8.5-cp312-abi3-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for hgraph_analytics-0.8.5-cp312-abi3-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 560d4f1685ce9c3d897420afe3288aecb3425ac8724b21a4ed89b531a486a744
MD5 fc8578873990cc8874524497d1c5ff87
BLAKE2b-256 bdebed2b96a05aa5790c821dc6fd59b0b9f73f9c9d0842555eb19595eaa82e78

See more details on using hashes here.

Provenance

The following attestation bundles were made for hgraph_analytics-0.8.5-cp312-abi3-macosx_15_0_arm64.whl:

Publisher: release-wheels.yml on hhenson/hgraph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.8.22

4 files

0.8.21

4 files

0.8.20

4 files

0.8.19

4 files

0.8.18

4 files

0.8.17

4 files

0.8.16

4 files

0.8.15

4 files

0.8.14

4 files

0.8.13

4 files

0.8.12

4 files

0.8.11

4 files

0.8.10

4 files

0.8.9

4 files

0.8.8

4 files

0.8.7

4 files

0.8.6

4 files

This release

0.8.5 This release

4 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page