• 等级
  • 249573 访问
  • 238 原创
  • 27 转发
  • 7672 排名
  • 8 评论
  • 3 获赞

matlab code snippet #3

%%%bloomberg:intradaytickVALUE_TRADE=1;VALUE_BESTBID=31;VALUE_BESTASK=32;c=bloomberg;%value_type,timestamp,price,sizeraw=fetch(c,'NIX1Index','TIMESERIES','11/15/2011');I=

2011-11-17 17:17:22

C# frequently use code snippet

//popupmessagemodelessdialogstaticvoidPopUpMsg(stringmsg){TextBoxeditBox=newTextBox();editBox.ReadOnly=true;editBox.Multiline=tr

2011-10-27 21:16:00

Network Interceptor

usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Net;usingSystem.Net.Sockets;namespace

2011-10-11 22:49:10

C# concise asynchronous TcpClient

usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Net.Sockets;usingSystem.Diagnostics;n

2011-10-03 15:35:15

C# asynchronous TcpListener

MyConnection.csusingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Net.Sockets;usingSyste

2011-10-02 15:40:04

LINQ join and CSV read/write

classCustomer{publicintID{get;set;}publicstringName{get;set;}}classOrder{publ

2011-09-30 18:35:42

Linq in action notes (5 lang features required for LINQ)

usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceLinqInAction{classProcessData{

2011-09-29 22:34:41

Frequently used code snippet

///////////////////////////////////////////////definec++classproperties/////////////////////////////////////////////#defineCLAS

2011-09-26 14:24:40

Matlab tips 2

%%plotmulticurvesharedwithsamedatelistinXaxisccylist={'USDEURCurncy','USDJPYCurncy','USDCADCurncy','USDCHFCurncy','USDG

2011-07-29 11:07:32

EMA & MACD calculation

function[result]=myema(data,period)count=size(data,1);if(periodcount)   error('Periodelementcount.\n');end;result=nan(count,1);sf=

2011-07-16 13:10:55

Covariance Matrix

Excelxymean(x)mean(y)XA:x-mean(x)YA:y-mean(y)XA*YAsum(XA*YA)COV:sum(XA*YA)/(COUNT-1)424.12.08-0.1-0.0

2011-07-14 14:12:51

calculate standard deviation single pass

var=sum((X(i)-mean)^2)/(N-1)sum((X(i)-mean)^2)=sum(X(i)^2-2*X(i)*mean+mean^2)=sum(X(i)^2)-2*sum(X(i))*mean+N*mean^2becausesum(X(i))=N*mean,soweget=sum(X(i)^2)-2*N*mea

2011-06-04 09:43:00

Matlab useful tips

A([123])%[]asasetofsubscriptsx=[123]%[]asvertcatx=[1;2;3]%[]ashorzcat1)definevariablex=52)listallvariableswho/whos3)clearallvariablesclear4)size()function5)Whatdoesy(:,1

2011-06-03 18:17:00

Concurrent list with condition variable

Concurrentlistwithconditionvariable

2011-04-29 12:07:00

VC2010 lambda sample

VC2010lambdasample

2011-04-27 16:23:00

ptrmap (std::map extension to store pinter)

ptrmap(std::mapextensiontostorepinter)

2011-04-21 16:49:00

asio-MFC integration

asio-MFCintegration

2011-03-09 16:19:00

figure out windows message queue size

figureoutwindowsmessagequeuesize

2011-03-09 14:05:00

CareerCup.Cracking.the.Technical.Interview summaries

CareerCup.Cracking.the.Technical.Interviewsummaries

2011-03-09 14:04:00

C++ debug tips

C++debugtips

2011-03-03 21:18:00

EricYeung

关注