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, generic std/var, trailing rolling_mean, scheduled resample, 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)
sample_volatility = hga.std(hg.to_window(change, 20, 20), ddof=1)
moving_average = hga.rolling_mean(value, period=20)

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, rolling_window, std_, var_, rolling_mean, and resample.

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.11.tar.gz (39.2 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.11-cp312-abi3-win_amd64.whl (4.9 MB view details)

Uploaded CPython 3.12+Windows x86-64

hgraph_analytics-0.8.11-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (1.4 MB view details)

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

hgraph_analytics-0.8.11-cp312-abi3-macosx_15_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.12+macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: hgraph_analytics-0.8.11.tar.gz
  • Upload date:
  • Size: 39.2 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.11.tar.gz
Algorithm Hash digest
SHA256 c011c6f4cbb35b97bc09bd787dcd0af34899c5b7393240dab9e7e4b3feb95c30
MD5 28fcfa9c9b424e87335661744ad0790c
BLAKE2b-256 fb65a4af76ae59b16c1389ec9ec80ae2af1aac29f7748e809cfde233450be0dd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hgraph_analytics-0.8.11-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 6d8241a9d70ca32af38479dac327a159fe13c4b8923ccd057c696afd3f2fe9fe
MD5 691caccfa4186d0a545f4a1206ff7c8d
BLAKE2b-256 dbd98468391292584240e4a87388eff373d04988a849df83608f1d82c172665d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hgraph_analytics-0.8.11-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 088802f46e2408cdf7a9aca63cbb0a6f5490c2ab5fea823d7b81c90030dc83d9
MD5 c4b8a242c6f5f5f5dcdf07175d97eaeb
BLAKE2b-256 19149162f8a0c41afd9c947eb07d9d9b5930326573304a3219f84d66a7ffc325

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hgraph_analytics-0.8.11-cp312-abi3-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e5dd9a7fe7da3cfc6d160f0a2ad737394cb10680a06014510f1f58a75560005d
MD5 dd1a4e6ca11111415c6a36e83e6ac3c1
BLAKE2b-256 e63089fdaddc86ee35e8a724c69bec8809c09c62ac954d0eeba949fed2a71f51

See more details on using hashes here.

Provenance

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

This release

0.8.11 This release

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

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