摘要: 最速下降,牛顿法: GN,LM: [Nonlinear Least Squares][https://www.youtube.com/watch?v=8evmj2L iCY] Example: [system of nonlinear equations Newton's method][https 阅读全文
posted @ 2019-08-13 15:51 Lee先森的博客 阅读(1500) 评论(0) 推荐(0) 编辑
摘要: 1. 想要理解协方差矩阵,先要理解方差。 方差的意义就是估计不确定性,所以,协方差的意义也是一样的,只不过,协方差矩阵是多维待优化变量的一个矩阵, 对角线上的为该优化变量的方差,非对角线上的为优化变量相对于其他变量的方差 。 2. 协方差矩阵 非对角线元素对称 ,如果为正数的话,即呈现正相关,反之, 阅读全文
posted @ 2019-08-13 10:39 Lee先森的博客 阅读(1463) 评论(0) 推荐(0) 编辑
摘要: 关键帧目前是一种非常常用的方法,可以减少待优化的帧数,并且可以代表其附近的帧。可以理解为一个学校里有100个班级,每个班的班长就是一个关键帧,他可以代表他班里的人,那么如何选取关键帧呢? 选取的指标主要有: (1)距离上一关键帧的帧数是否足够多(时间)。比如我每隔固定帧数选择一个关键帧,这样编程简单 阅读全文
posted @ 2019-08-13 10:26 Lee先森的博客 阅读(6222) 评论(0) 推荐(0) 编辑
摘要: 1. 首先第一个就是 马尔科夫性 ,即k时刻的状态只和k 1时刻的状态有关,就像视觉里程计中只考虑相邻两帧关系一样.而非线性优化方法更倾向于使用所有的历史记录. 2. EKF的 非线性误差 ,EKF只在x_k 1处做了一次线性优化,根据这次线性化的效果直接计算出后验概率,也就是 该点处的线性化近似在 阅读全文
posted @ 2019-08-13 09:42 Lee先森的博客 阅读(1281) 评论(0) 推荐(0) 编辑
摘要: 哈希大法好! 直接上代码 1 typedef struct HashTable { 2 int *data; 3 int *flag; 4 int size; 5 } HashTable; 6 7 HashTable *init(int n) { 8 HashTable *h = (HashTabl 阅读全文
posted @ 2019-06-05 21:00 Lee先森的博客 阅读(159) 评论(0) 推荐(0) 编辑
摘要: int trap(int* height, int heightSize) { int ans = 0, top = -1; int *stack = (int *)malloc(sizeof(int) * heightSize); for (int i = 0; i < heightSize; i 阅读全文
posted @ 2019-05-26 17:49 Lee先森的博客 阅读(151) 评论(0) 推荐(0) 编辑
摘要: struct Stack { char *val; int top, maxSize; }; void init(struct Stack *s, int maxSize) { s->val = malloc(maxSize); s->top = 0; } bool empty(struct Sta 阅读全文
posted @ 2019-05-18 13:59 Lee先森的博客 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 利用滑动窗口加二分,其中二分的情况为前面全是1,后面全是0,找最后一个1出现的位置 阅读全文
posted @ 2019-05-11 09:36 Lee先森的博客 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 直接上代码: double findMedianSortedArrays(int* nums1, int nums1Size, int* nums2, int nums2Size) { int nums[5000], numsSize = nums1Size + nums2Size; int i = 阅读全文
posted @ 2019-03-14 11:33 Lee先森的博客 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 根本不需要编译源码直接一行命令就可以 sudo apt-get install libpcl-dev 如果没有安装pcl_viewer就再加一行命令 sudo apt-get install pcl-tools 就完事了! 阅读全文
posted @ 2019-03-11 12:03 Lee先森的博客 阅读(1332) 评论(0) 推荐(0) 编辑