R语言里有个highfrequency包,里面的rKernelCov(.)函数应该能满足你的需求,几位包作者的参考文献包括了Barndorff-Nielsen, O. E., Hansen, P. R., Lunde, A., and Shephard, N. (2008). Designing realized kernels to measure the ex post variation of equity prices in the presence of noise. Econometrica, 76, 1481-1536. 这一篇应该就是Barndorff提出realized kernel原方法的论文。