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 quantile, shaped-array array_std, shaped-array rolling_window, window_values, array_get_item, cumulative_sum, correlation, and 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)
median = hga.quantile(observations, 0.5)
volatility = hga.array_std(observations, ddof=1)
recent = hga.rolling_window(value, period=20, min_window_period=5)
window = hga.window_values(hg.to_window(value, 20))
running = hga.cumulative_sum(observations, axis=0)
correlation = hga.correlation(observations, rowvar=False)

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, pct_change, window_values, array_get_item, cumulative_sum, correlation, quantile, array_std, and rolling_window.

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.6.tar.gz (32.5 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.6-cp312-abi3-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.12+Windows x86-64

hgraph_analytics-0.8.6-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (708.9 kB view details)

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

hgraph_analytics-0.8.6-cp312-abi3-macosx_15_0_arm64.whl (695.0 kB view details)

Uploaded CPython 3.12+macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: hgraph_analytics-0.8.6.tar.gz
  • Upload date:
  • Size: 32.5 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.6.tar.gz
Algorithm Hash digest
SHA256 2ab06c4abd0ecaf109c89c52c8de10ad4d95860d78c3c5489ca12d37c16febe6
MD5 69d33674388af582af96815061b32eb2
BLAKE2b-256 52c59589e4618bceaaf9d45a94547e267a0525338ec29b3f31935208ba25c631

See more details on using hashes here.

Provenance

The following attestation bundles were made for hgraph_analytics-0.8.6.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.6-cp312-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for hgraph_analytics-0.8.6-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 9b3126a53d934fd1e86bc457e4aa9dc7ceb2486a1c5fc768841b02809ffd6978
MD5 d39cd83481c9014ff048aeba94bec0e5
BLAKE2b-256 1a5d5d5ed2501e2d6bd3b71cc371b9c179c20466fe614dfa9f47131b75289ec5

See more details on using hashes here.

Provenance

The following attestation bundles were made for hgraph_analytics-0.8.6-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.6-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hgraph_analytics-0.8.6-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f65253543a7308c53ffb929dc28e53655802160ad4180ab0365bb592bbb3618b
MD5 2601a4536ccca410ca0c617a0c2e4531
BLAKE2b-256 aefbde7cb20ced6bf5cad0886eb9c15035ea1374ab679c3138ec3d89d59ca674

See more details on using hashes here.

Provenance

The following attestation bundles were made for hgraph_analytics-0.8.6-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.6-cp312-abi3-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for hgraph_analytics-0.8.6-cp312-abi3-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 f059b7efcb1820d118d5224c1381525cc4affc145f54bb7a28ab28af2b661391
MD5 8119f911f5b4208724737b337acf8aa4
BLAKE2b-256 b730bad249d7f24e15b7382c9d24bfb7793ac7752c1c0d1b1fb7ade2bcfcae9c

See more details on using hashes here.

Provenance

The following attestation bundles were made for hgraph_analytics-0.8.6-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

This release

0.8.6 This release

4 files

0.8.5

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