2011. 6. 2. 17:24 quantlib/QuantLibXL
'quantlib'에 해당되는 글 23건
- 2011.06.02 QuantLibXL
- 2011.06.02 QuantLibAddin
- 2011.06.02 Installing XCODE, MacPorts, Porticus and Boost
2011. 6. 2. 17:23 quantlib/QuantLibAddin
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
*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 ÷ndYield);virtual boost::shared_ptr<void> getReference() const {return boost::static_pointer_cast<void>(blackScholesProcess_);}private:boost::shared_ptr<QuantLib::BlackScholesProcess>blackScholesProcess_;};}
2011. 6. 2. 09:35 quantlib/설치
Installing XCODE, MacPorts, Porticus and Boost
*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)
*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)