voly 0.0.120__py3-none-any.whl → 0.0.122__py3-none-any.whl
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.
- voly/core/hd.py +2 -2
- {voly-0.0.120.dist-info → voly-0.0.122.dist-info}/METADATA +1 -1
- {voly-0.0.120.dist-info → voly-0.0.122.dist-info}/RECORD +6 -6
- {voly-0.0.120.dist-info → voly-0.0.122.dist-info}/WHEEL +0 -0
- {voly-0.0.120.dist-info → voly-0.0.122.dist-info}/licenses/LICENSE +0 -0
- {voly-0.0.120.dist-info → voly-0.0.122.dist-info}/top_level.txt +0 -0
voly/core/hd.py
CHANGED
|
@@ -162,7 +162,7 @@ def get_hd_surface(model_results: pd.DataFrame,
|
|
|
162
162
|
adj_returns = returns - adjustment # Shift the mean to risk-neutral
|
|
163
163
|
|
|
164
164
|
# Create HD and Normalize
|
|
165
|
-
f = stats.gaussian_kde(adj_returns, bw_method='silverman'
|
|
165
|
+
f = stats.gaussian_kde(adj_returns, bw_method='silverman')
|
|
166
166
|
hd_lm = f(LM)
|
|
167
167
|
hd_lm = np.maximum(hd_lm, 0)
|
|
168
168
|
total_area = np.trapz(hd_lm, LM)
|
|
@@ -204,7 +204,7 @@ def get_hd_surface(model_results: pd.DataFrame,
|
|
|
204
204
|
# Create a DataFrame with moments using the same index as model_results
|
|
205
205
|
moments = pd.DataFrame(all_moments).T
|
|
206
206
|
|
|
207
|
-
return
|
|
207
|
+
return pdf_surface, cdf_surface, x_surface, moments
|
|
208
208
|
|
|
209
209
|
|
|
210
210
|
@catch_exception
|
|
@@ -7,13 +7,13 @@ voly/core/__init__.py,sha256=bu6fS2I1Pj9fPPnl-zY3L7NqrZSY5Zy6NY2uMUvdhKs,183
|
|
|
7
7
|
voly/core/charts.py,sha256=E21OZB5lTY4YL2flgaFJ6s5g3_ExtAQT2zryZZxLPyM,12735
|
|
8
8
|
voly/core/data.py,sha256=pDeuYhP0GX4RbtlqByvsE3rfHcIkix0BU5MLW8sKIeI,8935
|
|
9
9
|
voly/core/fit.py,sha256=Tb9eeG7e_2dQTcqt6aqEwFrZdy6jR9rSNqe6tzOdVhQ,9245
|
|
10
|
-
voly/core/hd.py,sha256=
|
|
10
|
+
voly/core/hd.py,sha256=ODaDW95V_jq-yja-arJi1llgvf7Yq0RTGnjSyn6HEsw,13455
|
|
11
11
|
voly/core/interpolate.py,sha256=JkK172-FXyhesW3hY4pEeuJWG3Bugq7QZXbeKoRpLuo,5305
|
|
12
12
|
voly/core/rnd.py,sha256=VKM8ojLBziB9nxOEsKO5z_9Z1BSOVNxg0OQPx-Sp80I,10094
|
|
13
13
|
voly/utils/__init__.py,sha256=E05mWatyC-PDOsCxQV1p5Xi1IgpOomxrNURyCx_gB-w,200
|
|
14
14
|
voly/utils/logger.py,sha256=4-_2bVJmq17Q0d7Rd2mPg1AeR8gxv6EPvcmBDMFWcSM,1744
|
|
15
|
-
voly-0.0.
|
|
16
|
-
voly-0.0.
|
|
17
|
-
voly-0.0.
|
|
18
|
-
voly-0.0.
|
|
19
|
-
voly-0.0.
|
|
15
|
+
voly-0.0.122.dist-info/licenses/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
|
|
16
|
+
voly-0.0.122.dist-info/METADATA,sha256=IjpUVDg7twmhzzVrQBIm6Zofcl3sY_SiiYf2Jfx1ZH8,4115
|
|
17
|
+
voly-0.0.122.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
|
|
18
|
+
voly-0.0.122.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
|
|
19
|
+
voly-0.0.122.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|