hqstoch 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
hqstoch-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 sinxl
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
hqstoch-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,45 @@
1
+ Metadata-Version: 2.1
2
+ Name: hqstoch
3
+ Version: 0.1.0
4
+ Summary: High-precision stochastic process toolkit
5
+ Requires-Python: >=3.8
6
+ Description-Content-Type: text/markdown
7
+ License-File: LICENSE
8
+ Requires-Dist: torch>=2.0
9
+
10
+ \# HQStoch
11
+
12
+
13
+
14
+ \*\*HQStoch\*\* is a high-precision stochastic process toolkit for Python, focused on \*\*non-equidistant, sparse probability distributions\*\* with exact `float64` state values. It provides GPU-accelerated convolution, statistical measures, and optional transition probability support using a memory-efficient CSR-style representation.
15
+
16
+
17
+
18
+ > ⚠️ This is a placeholder version (0.1.0) to reserve the package name. Core functionality is under active development.
19
+
20
+
21
+
22
+ \## Planned Features
23
+
24
+ \- Sparse COO representation for probability distributions
25
+
26
+ \- Exact convolution of non-equidistant distributions (sort-merge on GPU)
27
+
28
+ \- Unified handling of random variables and random processes
29
+
30
+ \- Optimal discretization strategies (quantile, Lloyd, moment-matching)
31
+
32
+ \- Support for transition probabilities (general, Markov, homogeneous)
33
+
34
+ \- Statistical tools (mean, variance, quantiles, etc.)
35
+
36
+ \- Device-agnostic code (CPU/GPU)
37
+
38
+
39
+
40
+ \## Installation
41
+
42
+ ```bash
43
+
44
+ pip install hqstoch
45
+
@@ -0,0 +1,36 @@
1
+ \# HQStoch
2
+
3
+
4
+
5
+ \*\*HQStoch\*\* is a high-precision stochastic process toolkit for Python, focused on \*\*non-equidistant, sparse probability distributions\*\* with exact `float64` state values. It provides GPU-accelerated convolution, statistical measures, and optional transition probability support using a memory-efficient CSR-style representation.
6
+
7
+
8
+
9
+ > ⚠️ This is a placeholder version (0.1.0) to reserve the package name. Core functionality is under active development.
10
+
11
+
12
+
13
+ \## Planned Features
14
+
15
+ \- Sparse COO representation for probability distributions
16
+
17
+ \- Exact convolution of non-equidistant distributions (sort-merge on GPU)
18
+
19
+ \- Unified handling of random variables and random processes
20
+
21
+ \- Optimal discretization strategies (quantile, Lloyd, moment-matching)
22
+
23
+ \- Support for transition probabilities (general, Markov, homogeneous)
24
+
25
+ \- Statistical tools (mean, variance, quantiles, etc.)
26
+
27
+ \- Device-agnostic code (CPU/GPU)
28
+
29
+
30
+
31
+ \## Installation
32
+
33
+ ```bash
34
+
35
+ pip install hqstoch
36
+
@@ -0,0 +1,14 @@
1
+ """
2
+ HQStoch: High-precision stochastic process toolkit.
3
+
4
+ Designed for non-equidistant, sparse probability distributions with
5
+ GPU-accelerated convolution and statistical analysis.
6
+
7
+ This is an early development version. Core functionality will be added progressively.
8
+ """
9
+
10
+ __version__ = "0.1.0"
11
+ __author__ = "sinxl"
12
+ __email__ = "7927984@qq.com"
13
+
14
+ from .core import StochasticProcess # 占位导入
@@ -0,0 +1,21 @@
1
+ """
2
+ Core placeholder for high-precision stochastic process functionality.
3
+ """
4
+
5
+ class StochasticProcess:
6
+ """
7
+ Placeholder class for a high-precision stochastic process.
8
+
9
+ The full implementation will support:
10
+ - Sparse, non-equidistant state values (float64)
11
+ - GPU-accelerated convolution (sort-merge)
12
+ - Statistical moments and quantiles
13
+ - Transition probabilities (optional)
14
+ - Optimal discretization strategies (quantile, Lloyd, moment-matching)
15
+ """
16
+
17
+ def __init__(self, *args, **kwargs):
18
+ raise NotImplementedError(
19
+ "The full StochasticProcess class is not yet implemented. "
20
+ "This placeholder exists to reserve the package name 'hqstoch'."
21
+ )
@@ -0,0 +1,45 @@
1
+ Metadata-Version: 2.1
2
+ Name: hqstoch
3
+ Version: 0.1.0
4
+ Summary: High-precision stochastic process toolkit
5
+ Requires-Python: >=3.8
6
+ Description-Content-Type: text/markdown
7
+ License-File: LICENSE
8
+ Requires-Dist: torch>=2.0
9
+
10
+ \# HQStoch
11
+
12
+
13
+
14
+ \*\*HQStoch\*\* is a high-precision stochastic process toolkit for Python, focused on \*\*non-equidistant, sparse probability distributions\*\* with exact `float64` state values. It provides GPU-accelerated convolution, statistical measures, and optional transition probability support using a memory-efficient CSR-style representation.
15
+
16
+
17
+
18
+ > ⚠️ This is a placeholder version (0.1.0) to reserve the package name. Core functionality is under active development.
19
+
20
+
21
+
22
+ \## Planned Features
23
+
24
+ \- Sparse COO representation for probability distributions
25
+
26
+ \- Exact convolution of non-equidistant distributions (sort-merge on GPU)
27
+
28
+ \- Unified handling of random variables and random processes
29
+
30
+ \- Optimal discretization strategies (quantile, Lloyd, moment-matching)
31
+
32
+ \- Support for transition probabilities (general, Markov, homogeneous)
33
+
34
+ \- Statistical tools (mean, variance, quantiles, etc.)
35
+
36
+ \- Device-agnostic code (CPU/GPU)
37
+
38
+
39
+
40
+ \## Installation
41
+
42
+ ```bash
43
+
44
+ pip install hqstoch
45
+
@@ -0,0 +1,10 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ hqstoch/__init__.py
5
+ hqstoch/core.py
6
+ hqstoch.egg-info/PKG-INFO
7
+ hqstoch.egg-info/SOURCES.txt
8
+ hqstoch.egg-info/dependency_links.txt
9
+ hqstoch.egg-info/requires.txt
10
+ hqstoch.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ torch>=2.0
@@ -0,0 +1 @@
1
+ hqstoch
@@ -0,0 +1,14 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "hqstoch"
7
+ version = "0.1.0"
8
+ description = "High-precision stochastic process toolkit"
9
+ readme = "README.md"
10
+ requires-python = ">=3.8"
11
+ dependencies = ["torch>=2.0"]
12
+
13
+ [tool.setuptools]
14
+ packages = ["hqstoch"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+