Hi everyone, quick question, I have QuantLib for Java and would like to use it to value caps using the Black formula. Does anyone have any suggestions or know of a QuantLib class that can do this?-- Tanvi Tiwari ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hello Tanvi, if you're talking about the Java bindings created by SWIG, you can use the classes org.quantlib.Cap and org.quantlib.Floor with the engine org.quantlib.BlackCapFloorEngine. An example of usage in C++ is in the test suite: see test-suite/capfloor.cpp in the C++ release. It's probably not the easiest thing to convert it to Java, but you can at least see what classes are used and what inputs they need. Luigi On Wed, Jul 8, 2015 at 10:29 PM Tanvi Tiwari <[hidden email]> wrote:
-- <http://leanpub.com/implementingquantlib/> ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |