'quantlib'에 해당되는 글 23건

  1. 2011.06.02 QuantLibXL
  2. 2011.06.02 QuantLibAddin
  3. 2011.06.02 Installing XCODE, MacPorts, Porticus and Boost

2011. 6. 2. 17:24 quantlib/QuantLibXL

QuantLibXL

Posted by karlsen
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
*XCODE

*MacPorts : http://www.macports.org/
The MacPorts Project is an open-source community initiative to design an easy-to-use system for compiling, installing, and upgrading either command-line, X11 or Aqua based open-source software on the Mac OS X operating system.

*Porticus : http://porticus.alittledrop.com/
Porticus is a Cocoa GUI for the MacPorts package manager. MacPorts provides ready to build open-source software packages modified to compile and run on Mac OS X. TheMacPorts project provides a TCL command line tool to manage installation, update and activation of the port packages. Porticus provides a GUI front-end to this tool.
 
#0. install XCode 
#1. get and install MacPorts.dmg for suitable OS Version 
#2. get 
Porticus_1_8_1.dmg : 사용전.. 어떤 용도로 사용할지?
#3. install boost using MacPorts : sudo port install boost in terminal
#4. install QuantLib (guide : http://quantlib.org/install/macosx.shtml)

 


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

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

태그목록

공지사항

Yesterday
Today
Total

달력

 « |  » 2025.11
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

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함