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.
For installation, semantics, and Python/C++ usage patterns, see the
analytics user guide.
Runnable examples covering scalar pipelines, rolling windows, and shaped-array
analytics are in python/examples.
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hgraph_analytics-0.8.22.tar.gz.
File metadata
- Download URL: hgraph_analytics-0.8.22.tar.gz
- Upload date:
- Size: 41.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3bb96e37c552b4841546b6cecfd2bf71feee787b0fac4456b7fbf5fe61d4c9e
|
|
| MD5 |
bf32dc74ed8a617c58e8b48beac25ac4
|
|
| BLAKE2b-256 |
49d72ea9c340be9907085c159571085d508b48b958f9e3a01217d82a4b1daafd
|
Provenance
The following attestation bundles were made for hgraph_analytics-0.8.22.tar.gz:
Publisher:
release-wheels.yml on hhenson/hgraph
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hgraph_analytics-0.8.22.tar.gz -
Subject digest:
a3bb96e37c552b4841546b6cecfd2bf71feee787b0fac4456b7fbf5fe61d4c9e - Sigstore transparency entry: 2684134165
- Sigstore integration time:
-
Permalink:
hhenson/hgraph@cd053a351ac7416fcec4fbccc464d92f03a3c000 -
Branch / Tag:
refs/tags/0.8.22 - Owner: https://github.com/hhenson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-wheels.yml@cd053a351ac7416fcec4fbccc464d92f03a3c000 -
Trigger Event:
push
-
Statement type:
File details
Details for the file hgraph_analytics-0.8.22-cp312-abi3-win_amd64.whl.
File metadata
- Download URL: hgraph_analytics-0.8.22-cp312-abi3-win_amd64.whl
- Upload date:
- Size: 5.2 MB
- Tags: CPython 3.12+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2187633b2523c875c0bfb34fa864254036d34acfaf3294d8435575806978ac70
|
|
| MD5 |
7cf654565873043513f1012b4309b696
|
|
| BLAKE2b-256 |
437a10300b4d3870b69e8f479bca52ecc4044c33a86ecc914c640771e6e8dc37
|
Provenance
The following attestation bundles were made for hgraph_analytics-0.8.22-cp312-abi3-win_amd64.whl:
Publisher:
release-wheels.yml on hhenson/hgraph
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hgraph_analytics-0.8.22-cp312-abi3-win_amd64.whl -
Subject digest:
2187633b2523c875c0bfb34fa864254036d34acfaf3294d8435575806978ac70 - Sigstore transparency entry: 2684134192
- Sigstore integration time:
-
Permalink:
hhenson/hgraph@cd053a351ac7416fcec4fbccc464d92f03a3c000 -
Branch / Tag:
refs/tags/0.8.22 - Owner: https://github.com/hhenson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-wheels.yml@cd053a351ac7416fcec4fbccc464d92f03a3c000 -
Trigger Event:
push
-
Statement type:
File details
Details for the file hgraph_analytics-0.8.22-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: hgraph_analytics-0.8.22-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.12+, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b257b7adcb8cb8dd3d04b72bf8d6a01967cbb94c68d92db804b60868510754c4
|
|
| MD5 |
7fe60e294a49e617de41da7b07454862
|
|
| BLAKE2b-256 |
c5d6bab2947e6b9c7272bfa71826dea6f5f8e22311af8ab28df42d93760c4a96
|
Provenance
The following attestation bundles were made for hgraph_analytics-0.8.22-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
release-wheels.yml on hhenson/hgraph
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hgraph_analytics-0.8.22-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
b257b7adcb8cb8dd3d04b72bf8d6a01967cbb94c68d92db804b60868510754c4 - Sigstore transparency entry: 2684134172
- Sigstore integration time:
-
Permalink:
hhenson/hgraph@cd053a351ac7416fcec4fbccc464d92f03a3c000 -
Branch / Tag:
refs/tags/0.8.22 - Owner: https://github.com/hhenson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-wheels.yml@cd053a351ac7416fcec4fbccc464d92f03a3c000 -
Trigger Event:
push
-
Statement type:
File details
Details for the file hgraph_analytics-0.8.22-cp312-abi3-macosx_15_0_arm64.whl.
File metadata
- Download URL: hgraph_analytics-0.8.22-cp312-abi3-macosx_15_0_arm64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.12+, macOS 15.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7cb16c6e90a51948905a0e15a5f9792069403af618ff168ae4d0276b9d3c20c
|
|
| MD5 |
85ae88a24357e80ecb6c902f78486e57
|
|
| BLAKE2b-256 |
abb034550e6be7e1601771627ad081f2126aba9e69ea0bb536599e9f8375a4f7
|
Provenance
The following attestation bundles were made for hgraph_analytics-0.8.22-cp312-abi3-macosx_15_0_arm64.whl:
Publisher:
release-wheels.yml on hhenson/hgraph
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hgraph_analytics-0.8.22-cp312-abi3-macosx_15_0_arm64.whl -
Subject digest:
a7cb16c6e90a51948905a0e15a5f9792069403af618ff168ae4d0276b9d3c20c - Sigstore transparency entry: 2684134179
- Sigstore integration time:
-
Permalink:
hhenson/hgraph@cd053a351ac7416fcec4fbccc464d92f03a3c000 -
Branch / Tag:
refs/tags/0.8.22 - Owner: https://github.com/hhenson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-wheels.yml@cd053a351ac7416fcec4fbccc464d92f03a3c000 -
Trigger Event:
push
-
Statement type: