'quantlib/QuantLibAddin'에 해당되는 글 1건

  1. 2011.06.02 QuantLibAddin
http://quantlib.org/quantlibaddin/

*Description
implements an interface supporting a subset of quantlib functionality.
constructor, member, utility functions are defined in XML metadata from which a python application generates source code for supported platforms.

1. Design


The core QuantLibAddin library can be loaded directly into standalone C++ programs.
: 이렇게 사용할 이유가 없다. QuantLib를 사용하는 것에 비하여 속도상 단점이 있다.
For other platforms, QuantLibAddin is wrapped in an additional layer providing platform-specific functionality.

1.1 Classes

1.2 Addins
QuantLibAddin is linked into a platform-specific library which:
-retrieves inputs in native format from host application
-converts inputs to QuantLib format
-invokes the QuantLibAddin function and captures its return value
-converts the return value to native format and returns it to the host application

1.3 Clients
The client application loads QuantLibAddin, instantiating a single global instance of ObjectHandler.
QuantLibAddin functions allow objects to be constructed, interrogated, modified, and passed as input parameters to functions of other objects.

2. Implementation

namespace QuantLibAddin {
 
    class BlackScholesProcess : public ObjHandler::Object {
 
    public:
        BlackScholesProcess(
            const std::string &handleBlackVol,
            const double &underlying,
            const std::string &dayCounterID,
            const long &settlementDateLong,
            const double &riskFreeRate,
            const double &dividendYield);
        virtual boost::shared_ptr<void> getReference() const {
            return boost::static_pointer_cast<void>(blackScholesProcess_);
        }
    private:
        boost::shared_ptr<QuantLib::BlackScholesProcess>
            blackScholesProcess_;
    };
}


 
Posted by karlsen
이전버튼 1 이전버튼

블로그 이미지
Pricing, hedging, risk-managing a complex derivative product
karlsen

태그목록

공지사항

Yesterday
Today
Total

달력

 « |  » 2024.5
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함