-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
120 lines (97 loc) · 2.85 KB
/
Copy pathCargo.toml
File metadata and controls
120 lines (97 loc) · 2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# SPDX-FileCopyrightText: 2025-2026 Carlson Büth <code@cbueth.de>
#
# SPDX-License-Identifier: MIT OR Apache-2.0
[package]
name = "infomeasure"
version = "0.3.0-beta.1"
edition = "2024"
description = "Information theory measures and entropy calculations for Rust"
license = "MIT OR Apache-2.0"
repository = "https://codeberg.org/cbueth/infomeasure-rs"
homepage = "https://docs.rs/infomeasure"
documentation = "https://docs.rs/infomeasure"
readme = "README.md"
keywords = ["entropy", "information-theory", "mutual-information", "information-measures", "statistics"]
categories = ["mathematics", "science"]
[dependencies]
ndarray = ">=0.17" # For numerical computations
kiddo = ">=5.3.0"
plotters = ">=0.3.7"
wgpu = ">=28"
pollster = ">=0.3" # For blocking on async operations
futures-intrusive = ">=0.5" # For oneshot channel
bytemuck = { version = ">=1.14", features = ["derive"] } # For casting between byte slices and typed slices
statrs = ">=0.16" # For special functions (digamma)
ndarray-stats = ">=0.7.0" # covariance matrix
ndarray-linalg = { version = ">=0.18.1", features = ["openblas-static"] } # .cholesky
rand = ">=0.8"
rand_distr = ">=0.4"
[features]
default = []
gpu = []
fast_exp = []
[dev-dependencies]
rstest = "0.26.1" # For fixture-based testint
serde_json = "1.0" # For JSON interop in Python parity tests
validation = { path = "./tests/validation_crate" } # Local validation module for Python compatibility testing
rand = "0.8" # For random number generation in tests
rand_distr = "0.4" # For generating different probability distributions in tests
approx = "0.5" # For approximate floating-point comparisons in tests
ndarray = "0.17" # For numerical computations in tests
criterion = { version = "5.0.1", package = "codspeed-criterion-compat" } # CodSpeed-instrumented drop-in for Criterion benchmarking
[package.metadata.docs.rs]
rustdoc-args = [ "--html-in-header", "katex-header.html" ] # Using katex@0.16.27
[[bench]]
name = "discrete_entropy_benchmark"
harness = false
[[bench]]
name = "count_frequencies_benchmark"
harness = false
[[bench]]
name = "entropy_discrete"
harness = false
[[bench]]
name = "entropy_ordinal"
harness = false
[[bench]]
name = "entropy_expfam"
harness = false
[[bench]]
name = "mi"
harness = false
[[bench]]
name = "te"
harness = false
[[bench]]
name = "entropy_discrete_bias_corrected"
harness = false
[[bench]]
name = "mi_discrete_bias_corrected"
harness = false
[[bench]]
name = "mi_expfam"
harness = false
[[bench]]
name = "kernel_gpu"
harness = false
[[bench]]
name = "cmi"
harness = false
[[bench]]
name = "cte"
harness = false
[[bench]]
name = "scaling_nd"
harness = false
[[bench]]
name = "cmi_discrete_bias_corrected"
harness = false
[[bench]]
name = "te_discrete_bias_corrected"
harness = false
[[bench]]
name = "cte_discrete_bias_corrected"
harness = false
[[bench]]
name = "kernel_gpu_codspeed"
harness = false