'컴퓨터 & misc 셋팅 > chrome' 카테고리의 다른 글

YouTube Downloader  (0) 2011.06.04
AdBlock  (0) 2011.06.04
AutoPager Chrome  (0) 2011.06.04
Chrome Pig  (0) 2011.06.04
chrome - speak it!  (0) 2011.06.04
Posted by karlsen

'컴퓨터 & misc 셋팅 > chrome' 카테고리의 다른 글

YouTube Downloader  (0) 2011.06.04
AdBlock  (0) 2011.06.04
AutoPager Chrome  (0) 2011.06.04
Chrome Pig  (0) 2011.06.04
goo.gl URL Shortener  (0) 2011.06.04
Posted by karlsen
QuantLib를 사용하기 위해서 #include <ql/quantlib.hpp> 를 삽입해야 한다.
이 경우 관련 모든 파일이 포함되므로 결과물의 크기가 커진다.

모든 ql 서브 디렉토리에는 
all.hpp가 포함이 되어있다.
원하는 부분의 서브 디렉토리에 해당하는 헤더파일을 추가하면 된다.


Posted by karlsen
http://www.displaylink.com/support/mac_downloads.php
Posted by karlsen
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
<script type="text/javascript" src="./images/shCore.js"></script>
<script type="text/javascript" src="./images/shLegacy.js"></script>
<script type="text/javascript" src="./images/shBrushAppleScript.js"></script>
<script type="text/javascript" src="./images/shBrushAS3.js"></script>
<script type="text/javascript" src="./images/shBrushBash.js"></script>
<script type="text/javascript" src="./images/shBrushColdFusion.js"></script>
<script type="text/javascript" src="./images/shBrushCpp.js"></script>
<script type="text/javascript" src="./images/shBrushCSharp.js"></script>
<script type="text/javascript" src="./images/shBrushCss.js"></script>
<script type="text/javascript" src="./images/shBrushDelphi.js"></script>
<script type="text/javascript" src="./images/shBrushDiff.js"></script>
<script type="text/javascript" src="./images/shBrushErlang.js"></script>
<script type="text/javascript" src="./images/shBrushGroovy.js"></script>
<script type="text/javascript" src="./images/shBrushJava.js"></script>
<script type="text/javascript" src="./images/shBrushJavaFx.js"></script>
<script type="text/javascript" src="./images/shBrushJScript.js"></script>
<script type="text/javascript" src="./images/shBrushPerl.js"></script>
<script type="text/javascript" src="./images/shBrushPhp.js"></script>
<script type="text/javascript" src="./images/shBrushPlain.js"></script>
<script type="text/javascript" src="./images/shBrushPowerShell.js"></script>
<script type="text/javascript" src="./images/shBrushPython.js"></script>
<script type="text/javascript" src="./images/shBrushRuby.js"></script>
<script type="text/javascript" src="./images/shBrushSass.js"></script>
<script type="text/javascript" src="./images/shBrushScala.js"></script>
<script type="text/javascript" src="./images/shBrushSql.js"></script>
<script type="text/javascript" src="./images/shBrushVb.js"></script>
<script type="text/javascript" src="./images/shBrushXml.js"></script>
<link type="text/css" rel="stylesheet" href="./images/shCore.css"/>
<link type="text/css" rel="stylesheet" href="./images/shThemeDefault.css"/>
<script type="text/javascript">
 
/* jQuery 부분  */
jQuery.noConflict();  // 다른 라이브러리와 충돌을 방지한다.
jQuery(document).ready(function(){  // 문서가 모두 읽힌 후에 다음을 실행
    jQuery("blockquote").each( function() {  //blokquote가 사용한 태그
        if (jQuery(this).attr('class').substr(0,5)=='brush') 
        // 그중 클래스명이 brush로 시작하는 것을 찾아 적용
        {
            var temp = jQuery(this).html(); //  내용 복사
            temp = temp.replace(/<br \/>/gi, "");
            temp = temp.replace(/<br>/gi, "");
            temp = temp.replace(/<div>/gi, "");
            temp = temp.replace(/<\/div>/gi, "");
            //temp = '<pre class="'+ jQuery(this).attr('class') + '">'+temp+'</pre>'
            temp = '<script type="syntaxhighlighter" class="'+ jQuery(this).attr('class') + '"><![CDATA['+temp+']]><\/script>'
            jQuery(this).after(temp);   // 뒤에 새 작성된 pre 또는 script태그로 붙인다.
            jQuery(this).remove();         //  기존의 인용태그 삭제
        }
    });
 
    /* SyntaxHighlighter 부분 */
    SyntaxHighlighter.defaults['toolbar'] = false;    // 툴바 안 보기
    SyntaxHighlighter.all();
});
</script>


*Usage
1. 소스코드 붙여 넣기
2. 소스 부분 ""하기(html로 넘어갔다 오면 안됨)
3. html에서 class="brush:cpp" 추가

'컴퓨터 & misc 셋팅 > blog' 카테고리의 다른 글

수식편집기  (0) 2011.09.19
SyntaxHighlighter + script  (0) 2011.06.08
Posted by karlsen
http://quantlib.org/objecthandler/

Provide oo env even on procedural platform such as spread sheets.

Posted by karlsen

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
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

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

태그목록

공지사항

Yesterday
Today
Total

달력

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

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함