Frage

Wer weiß von jedem guten quantlib Beispiele für Python? Ich kann nicht scheinen, jeden überall zu finden ...

War es hilfreich?

Lösung

Es gibt Beispiele in der Ubuntu-Paket quantlib-python:

/usr/share/doc/quantlib-python/examples/american-option.py
/usr/share/doc/quantlib-python/examples/basket-option.py
/usr/share/doc/quantlib-python/examples/bermudan-swaption.py.gz
/usr/share/doc/quantlib-python/examples/european-option.py
/usr/share/doc/quantlib-python/examples/swap.py.gz
/usr/share/doc/quantlib-python/examples/test/QuantLibTestSuite.py
/usr/share/doc/quantlib-python/examples/test/bonds.py.gz
/usr/share/doc/quantlib-python/examples/test/date.py
/usr/share/doc/quantlib-python/examples/test/instruments.py
/usr/share/doc/quantlib-python/examples/test/integrals.py
/usr/share/doc/quantlib-python/examples/test/marketelements.py
/usr/share/doc/quantlib-python/examples/test/ratehelpers.py
/usr/share/doc/quantlib-python/examples/test/solvers1d.py
/usr/share/doc/quantlib-python/examples/test/termstructures.py.gz

Wenn Sie mit Ubuntu / Debian nicht, könnte ein ähnliches Paket für Ihr Betriebssystem sein, oder Sie können diese Dateien auch durch das Herunterladen quantlib-swig_0.9.9.orig.tar.gz .

Andere Tipps

They're in the QuantLib-SWIG distribution (you probably got that from the QuantLib site already.) Once you unpack the tarball (or the zip archive) they're in the Python\examples folder.

The best (only ...) QL/Python example codes I have found so far are those written by Tawanda Gwena at https://sites.google.com/site/tgwena/engineering-docs/engineering-permissions-list

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top