
C++
文章平均质量分 86
shadingwalker
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
boost::math::pdf() 与C++概率密度函数
转载请注明出处:http://my.youkuaiyun.com/ye_shen_wei_mian 最近在一份开源代码中接触到概率密度函数,该概率密度函数是正态(高斯)分布,是基于boost库实现的,非常方便易用。 官网对该函数的解释是:pdf(my_dist, x); // Returns PDF (density) at point x of distribution my_dist.至于用法也很简原创 2017-01-22 12:30:36 · 3876 阅读 · 4 评论 -
std::thread库的condition_variable进行线程唤醒
转载请注明出处:http://my.youkuaiyun.com/ye_shen_wei_mian 很久之前写了的测试程序,主要实现的功能是: 线程run1: 线程run1在运行过程中通过检测状态量mbAcceptKeyFrames_是否为true来判定线程run2是否已经处理其事务完毕(或者说是空闲状态,处于挂起状态)。 若检测到run2处于空闲状态,则设置状态量insertNewKeyframe为原创 2017-06-23 16:54:03 · 2950 阅读 · 0 评论