摘要: C语言动态申请一维数组 首先 添加 #include <stdio.h>#include <stdlib.h> int *a;int N;scanf("%d", &N);a = (int *) malloc(N * sizeof(int));....free(a); 这样就动态分配了数组a[N]。数 阅读全文
posted @ 2020-10-22 15:46 一颗大白鲸 阅读(1048) 评论(0) 推荐(0) 编辑
摘要: 先上代码 https://github.com/blueskit/KalmanFilter namespace FusionFiltering { /// <summary> /// Simple implementation of the Kalman Filter for 1D data. // 阅读全文
posted @ 2020-10-22 11:10 一颗大白鲸 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 一.十一种通用滤波算法(转) 1、限幅滤波法(又称程序判断滤波法)A、方法: 根据经验判断,确定两次采样允许的最大偏差值(设为A) 每次检测到新值时判断: 如果本次值与上次值之差<=A,则本次值有效 如果本次值与上次值之差>A,则本次值无效,放弃本次值,用上次值代替本次值B、优点: 能有效克服因偶然 阅读全文
posted @ 2020-10-22 11:00 一颗大白鲸 阅读(263) 评论(0) 推荐(0) 编辑