摘要: 用过三个c++ xll 项目 codeplex上一个xll项目 http://xll.codeplex.com/ 优点:项目很小巧,不依赖于其他package,比如boost等,下载后编译可直接使用。和excel数据以及函数接口可以满足基本需求。 缺点:就是因为项目只是提供了最基本的接口功能,如果想 阅读全文
posted @ 2016-01-30 15:18 LevyFan 阅读(758) 评论(0) 推荐(0) 编辑
摘要: “1年国开4.1418,全场3.22,边际5.22”- 4.1418为中标利率- 全场3.22 = #所有投标人数 / # 中标人数- 边际5.22 荷兰式招标, 投到中标利率的要分量 中标量/边际倍数; 美国式招标不用分量荷兰式招标 -以所有投标者的最低中标价格作为最终中标价格,全体中标者的中标价... 阅读全文
posted @ 2014-07-08 11:10 LevyFan 阅读(474) 评论(0) 推荐(0) 编辑
摘要: The instantaneous spot rate is modeled to be a stochastic process that can reprice the zero coupon bonds under risk neutral measureB(t,T) = EQ[exp(-∫tTrsds)|Ft]rs can be single factor or multi factor processreference: http://en.wikipedia.org/wiki/Short-rate_model 阅读全文
posted @ 2013-12-29 19:27 LevyFan 阅读(396) 评论(0) 推荐(0) 编辑
摘要: http://www-f9.ijs.si/~ilija/slike/cs/aaa.pdf 阅读全文
posted @ 2013-12-01 23:07 LevyFan 阅读(150) 评论(0) 推荐(0) 编辑
摘要: int* getPtrToFive(){ int* x = new int; *x = 5; return &x; }void main(){ int* p = getPtrToFive(); cout<<*p<<endl; delete p; }从MIT 公开课的一个课件看到的。 如果在 getPtrToFive里面不用指针,只是让 x = 5; return &x 那么在main函数里面将无法返回5这个值,因为变量定义域的问题。 阅读全文
posted @ 2013-11-26 23:57 LevyFan 阅读(100) 评论(0) 推荐(0) 编辑
摘要: @Echo ONSet Launcher="C:\xxx\xx.exe"set Config="C:\xxx\CLIP.cfg"set TargetPath=C:\temp\set LaunchFile=Calculator.xlsECHO hostnameHostname | find "Loc" >NULIf not errorlevel 1 GOTO Loc:Locset LaunchPath=\\xxx\GOTO CALLAPP:CALLAPPECHO F| xcopy "%LaunchPath%%Launch 阅读全文
posted @ 2013-11-26 17:58 LevyFan 阅读(323) 评论(0) 推荐(0) 编辑
摘要: Set wbCur = ActiveWorkbookSet objExcel = CreateObject("Excel.application")For i = 1 To nbDay today = Range("contribStart").Offset((i - 1) * nbCFPerDay + 1, 0) year = Application.WorksheetFunction.Text(today, "yyyy") monthAndDay = Application.WorksheetFunction.Text(today 阅读全文
posted @ 2013-11-26 17:05 LevyFan 阅读(685) 评论(0) 推荐(0) 编辑
摘要: 二维数组内存定义// allocationint** array = new int *[iSizeY]for( int j = 0; j < iSizeY; j++){ array[j] = new int [iSizeX];}// deallocationfor( int j = 0; j < iSizeY; j++){ delete [] array[j];}delete []array二维数组作为函数参数http://www.cnblogs.com/Anker/archive/2013/03/09/2951878.html 阅读全文
posted @ 2013-11-12 12:00 LevyFan 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1) 出现连续两次正面朝上的期望次数 假设期望次数为 x x = 2 * 1/4 + (2+x)* 1/4 + (x+1) * 1/2 => x = 6 解释: 如果前两次均是正面朝上, p = 1/4,次数= 2; 如果第一次为正, 第二次为反,概率为 1/4, 总需要的次数为 x+2; 如果第一次为反, 概率为1/2, 总需要的次数为 x+1.2) 出现连续三次正面朝上的期望次数 假设期望次数为 x x = 3 * 1/8 + (1+ x) *1/2 + (2+x) * 1/4 + (x + 3) * 1/8 => x = 14 阅读全文
posted @ 2013-11-10 16:09 LevyFan 阅读(1046) 评论(0) 推荐(0) 编辑
摘要: exchange value of a and ba = a + bb = a - ba = a - b 阅读全文
posted @ 2013-11-10 15:40 LevyFan 阅读(140) 评论(0) 推荐(0) 编辑