- 博客(30)
- 资源 (3)
- 问答 (1)
- 收藏
- 关注
原创 卡尔曼滤波
通过 Eigen 矩阵运算实现线性卡尔曼滤波。模拟的是一辆带火箭发动机的汽车,一开始沿着X轴匀速运动,到X轴中间开启火箭发动机匀加速向Y轴起飞。同理可以仿真(x,y,z,yaw,pitch,raw) 6自由度的真实飞行情况。
2023-11-28 09:07:54
462
原创 A星 最短路径搜索算法
#include <iostream>#include <list>#include <map>#include <set>#include <tuple>#include <cmath>/* A B ·D E F G H I · K L */typedef std::tuple<double, double> Position;std::map<int,.
2022-03-17 19:36:56
603
原创 Dijkstra 最短路径搜索算法
一次计算即可得到所有位置到指定点到最短路径#include <iostream>#include <vector>#include <set>/* A 5 B 1 C 1 1 1 D 1 E 2 F */int map[6][6] = { //A B C D E F {0, 5, -1, 1, -1, -1}, {5, 0, 1, -1, 1, -1}, {-1, 1, 0
2022-03-16 14:39:24
742
原创 类别分组算法
根据输入的等式和不等式得出分类结果和所有不相等结果template<typename T>class ClassifyConflictDectect{public: ClassifyConflictDectect(const std::set<std::pair<T, T>>& equals = {}, const std::set<std::pair<T, T>> notEquals = {}) : m_equals(
2021-10-20 11:13:19
502
原创 C++ 单例工厂模型
template<typename T>class Singleton{protected: Singleton() = default;public: static T& inst() { static T instance; return instance; }};template<typename T, typename... Args>class SingletonFactory : public Singleton<Si.
2021-08-18 10:59:02
302
原创 C++自动回收型内存池
#include <iostream>#include <vector>#include <memory>#include <future>template<typename ObjType>class ObjectPool {private: ObjectPool() { }public: virtual ~ObjectPool() { for (auto obj : m_CachePool) { f.
2021-06-16 18:00:54
2409
原创 有向图的所有成环查找
#include <iostream>#include <vector>#include <map>#include <set>#include <list>template<typename T>struct NodeInfo{ std::set<T> source;};template<typename T>bool checkSameCircle(std::list<.
2021-06-04 13:40:09
513
原创 Win Api 高速磁盘读写封装
#pragma once#include <string>#include <memory>class WinFile{public: WinFile(const std::string& path = ""); WinFile(WinFile&& file); ~WinFile(); void open(std::string path); operator bool() const; WinFile& read(c.
2021-03-16 11:51:01
310
1
原创 Python 并发调用 Com 组件
在 python 并发调用 Com 组件时需要作如下处理,每次 Com 组件的函数调用需要在 context 中import win32com.clientimport pythoncomimport contextlibclass ComInterface: def __init__(self, com_id): inst = win32com.client.Dispatch(com_id) self._inst_stream = pythonc.
2021-02-19 09:48:18
798
原创 win 环境不同API磁盘速度上限测试
#include <iostream>#include <fstream>#include <chrono>#include <vector>#include <Windows.h>VOID CALLBACK FileIOCompletionRoutine( __in DWORD dwErrorCode, __in DWORD dwNumberOfBytesTransfered, __in LPOVERLAPPED lp.
2020-08-07 10:33:37
299
原创 基于pyqtgraph绘图库时频域显示
import numpy as npimport pyqtgraph as pgfrom PyQt5.QtCore import Qtfrom PyQt5.QtCore import QPointFfrom PyQt5.QtCore import QRectFfrom PyQt5.QtGui import QColorchn_color = [ QColor(Qt.re...
2020-03-15 22:39:56
1235
1
原创 GuardType 性能测试
再次优化了数组下标计算效率提升了一个数量级,这两周没白费https://github.com/benjaminzhou93/GuardTyperunTimeOfFor: 0.00031720.00021708 func0()0.00022928 func1(1)0.00026078 func2(1, 2)0.00034048 volati
2016-09-04 16:15:06
668
C++ Primer笔记
2014-05-30
C# 的主流框架是???
2014-01-23
TA创建的收藏夹 TA关注的收藏夹
TA关注的人