voly 0.0.4__py3-none-any.whl → 0.0.6__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/rnd.py +2 -2
- {voly-0.0.4.dist-info → voly-0.0.6.dist-info}/METADATA +1 -1
- {voly-0.0.4.dist-info → voly-0.0.6.dist-info}/RECORD +6 -6
- {voly-0.0.4.dist-info → voly-0.0.6.dist-info}/LICENSE +0 -0
- {voly-0.0.4.dist-info → voly-0.0.6.dist-info}/WHEEL +0 -0
- {voly-0.0.4.dist-info → voly-0.0.6.dist-info}/top_level.txt +0 -0
voly/core/rnd.py
CHANGED
|
@@ -9,7 +9,7 @@ from typing import Dict, List, Tuple, Optional, Union, Any
|
|
|
9
9
|
from voly.utils.logger import logger, catch_exception
|
|
10
10
|
from voly.exceptions import VolyError
|
|
11
11
|
from voly.models import SVIModel
|
|
12
|
-
from voly.formulas import
|
|
12
|
+
from voly.formulas import rnd
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
@catch_exception
|
|
@@ -36,7 +36,7 @@ def calculate_risk_neutral_density(
|
|
|
36
36
|
total_var = np.array([model.svi(x, a, b, sigma, rho, m) for x in log_moneyness])
|
|
37
37
|
|
|
38
38
|
# Calculate risk-neutral density using the base RND function
|
|
39
|
-
rnd_values = np.array([
|
|
39
|
+
rnd_values = np.array([rnd(x, var) for x, var in zip(log_moneyness, total_var)])
|
|
40
40
|
|
|
41
41
|
return rnd_values
|
|
42
42
|
|
|
@@ -8,11 +8,11 @@ voly/core/charts.py,sha256=GF55IS-aZfcc_0yoSPRPIPBPcJhFD1El18wNCo_mI_A,29918
|
|
|
8
8
|
voly/core/data.py,sha256=mryxslHXDAA7FGAueXoxiYsuzDn0GsRizug2T7hEd7w,11319
|
|
9
9
|
voly/core/fit.py,sha256=JSQuEkdriVdilcIPAJaieZUofYdCfSGJ5wVB1wRBfVs,11280
|
|
10
10
|
voly/core/interpolate.py,sha256=ztVIePJZOh-CIbn69wkh1JW2rKywNe2FEewRN0zcSAo,8185
|
|
11
|
-
voly/core/rnd.py,sha256
|
|
11
|
+
voly/core/rnd.py,sha256=-xBVzvM9sMIBtfOfWyBJKtiVcBShSGTNNp2PZFOD5j0,12155
|
|
12
12
|
voly/utils/__init__.py,sha256=E05mWatyC-PDOsCxQV1p5Xi1IgpOomxrNURyCx_gB-w,200
|
|
13
13
|
voly/utils/logger.py,sha256=mujudi610WveZoGJJzoBtGbraFNJUzwWFTza645j08U,1821
|
|
14
|
-
voly-0.0.
|
|
15
|
-
voly-0.0.
|
|
16
|
-
voly-0.0.
|
|
17
|
-
voly-0.0.
|
|
18
|
-
voly-0.0.
|
|
14
|
+
voly-0.0.6.dist-info/LICENSE,sha256=wcHIVbE12jfcBOai_wqBKY6xvNQU5E909xL1zZNq_2Q,1065
|
|
15
|
+
voly-0.0.6.dist-info/METADATA,sha256=6fEs5YSUqgQQuiPttpyQBLgOklydkuFrmvAihEqKpAo,4136
|
|
16
|
+
voly-0.0.6.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
|
17
|
+
voly-0.0.6.dist-info/top_level.txt,sha256=ZfLw2sSxF-LrKAkgGjOmeTcw6_gD-30zvtdEY5W4B7c,5
|
|
18
|
+
voly-0.0.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|