nssvie
A python package for computing a numerical solution of stochastic Volterra integral equations of the second kind
where
is an unknown process,
is a continuous function,
are continuous and square integrable functions,
is the Brownian motion (see Wiener process) and
is the Itô-integral (see Itô calculus)
by a stochastic operational matrix based on block pulse functions as suggested in Maleknejad et. al (2012) [1].
nssvie is distributed under the terms of the GNU GPLv3 license.
Install
Install using either of the following two methods.
1. Install from PyPi
The nssvie package is available on PyPi and can be installed using pip
pip install nssvie
2. Install from Source
Install directly from the source code by
git clone https://github.com/dsagolla/nssvie.git
cd nssvie
pip install .
Dependencies
nssvie uses
NumPy for many calculations,
SciPy for computing the block pulse coefficients and
stochastic for sampling the Brownian Motion
Usage
Consider the following example of a stochastic Volterra integral equation
so
,
and
.
>>> from nssvie import StochasticVolterraIntegralEquations
>>> # Define the function and the kernels of the stochastic Volterra
>>> # integral equation
>>> def f(t):
>>> return 1.0
>>> def k1(s,t):
>>> return s**2
>>> def k2(s,t):
>>> return s
>>> # Generate the stochastic Volterra integral equation
>>> svie = StochasticVolterraIntegralEquations(
>>> f=f, kernel_2=k1, kernel_1=k2, T=0.5
>>> )
>>> # Calculate numerical solution with m=20 intervals
>>> svie_solution = svie.solve_method(m=20, solve_method="bpf")
The parameters are
f: the function
.
kernel_1, kernel_2: the kernels
.
T: the right hand side of \([0,T)\). Default is 1.0.
m: the number of intervals to divide \([0,T)\). Default is 50.
solve_method: the choosen method based on orthogonal functions. Default is bpf.
for the stochastic Volterra integral equation above.
Citation
Metadata
Release files for nssvie 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nssvie-0.0.4.tar.gz | 302.2 kB | Without provenance | Details for nssvie-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nssvie-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for nssvie-0.0.4-py3-none-any.whl |
Total release size: 323.4 kB
Release files / nssvie-0.0.4.tar.gz
| Download URL | nssvie-0.0.4.tar.gz |
|---|---|
| Size | 302.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce6cab1ae2371c4634fe4555986d8348391ec05bbf18346b8745174105258f5c
|
|
BLAKE2b-256 checksum How to use checksums |
4efac6928db35980e887840f49d44bad9dea6c949172d362c541761253136d22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / nssvie-0.0.4-py3-none-any.whl
| Download URL | nssvie-0.0.4-py3-none-any.whl |
|---|---|
| Size | 21.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5501cb36c4b7d76898da6906143a1068349011ae085ed74f9e6daef5b1dd8085
|
|
BLAKE2b-256 checksum How to use checksums |
def76c9118b18a3ca219a0fb1a1378e32a440a322647d04371f275b1798835fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for nssvie 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.