相关推荐
UE5笔记【十二】蓝图函数BluePrint Function
蓝图函数BluePrint Function。蓝图类。蓝图变量。
洛谷官方精选题单解析(持续更新~)
P1320:压缩技术(续集版)P1205:[USACO1.2]方块转换 Transformations。P1090:[NOIP2004提高组]合并果子/[USACO06NOV] Fence Repair G。P1090:[NOIP2004提高组]合并果子/[USACO06NOV] Fence Repair G。P1217:[USACO1.5]回文质数Prime Palindromes。P1217:[USACO1.5]回文质数Prime Palindromes。
倍福TC3 PLC高速采集实战:如何用PLC-Recorder实现0.24ms级时间戳同步
本文详细介绍了倍福TC3 PLC与PLC-Recorder实现0.24ms级时间戳同步的工程实践方案。通过硬件拓扑设计、时间源选择优化、报文结构封装及同步验证方法,为工业自动化领域的高精度数据采集提供了可靠解决方案,特别适用于精密装配、激光切割等微秒级同步要求的场景。
C语言条件宏定义导致的隐藏bug
同一个宏定义可能在不同的.o文件中表示不同的值,而且因为宏定义是在预编译阶段的文本替换,所以 连接时即便相同的宏定义值不同也无法发现错误。代码在运行时这个数组的实际分配长度就是10,但是在IAR仿真时,监视到的数组长度是20,这是IAR仿真功能的bug。运行代码可以看到同一个宏在不同的.c文件打印值不一样,这是因为条件宏的条件对不同c文件的可见性不一样。不同的c语言编译器在这个问题上结果是一样的。但是,IAR在仿真时会出现仿真看到的数组长度为20,但是实际长度为10的情况。
从零开始:用摩尔线程S4000运行开源AI项目的完整流程
本文详细介绍了如何使用摩尔线程S4000 GPU从零开始运行开源AI项目的完整流程,包括硬件选择、驱动安装、容器化环境配置以及典型AI项目的实战部署。通过性能优化技巧,显著提升推理速度,适合开发者快速上手国产GPU的AI应用开发。
USB接口的电源安全:认识USB限流配电开关芯片CH217
USB接口不仅用于数据传输,还承担供电功能,其安全性至关重要。为防止短路、过流等故障影响系统,需采用USB限流配电开关。沁恒微电子CH217集成可调限流(400mA~2.7A)、过流/短路/过温/欠压保护及使能控制,导通电阻仅70mΩ,支持独立端口管理,适用于USBHUB、计算机及嵌入式设备,提升供电可靠性与系统稳定性。
华为OD机试双机位C卷:日志排序 (Py/C/C++/Java/Js/Go)
华为OD机试双机C卷真题【日志排序】,提供C语言、Java、C++、Python、Go、JavaScript源码实现,并提供完整思路讲解。华为OD机试-日志排序。
eventpp: 一款纯 Header-Only的高性能C++事件库
eventpp是一款纯Header-Only、零依赖的高性能C++事件库,支持C++11及以上,兼容多平台。核心组件包括CallbackList(同步信号槽)、EventDispatcher(事件分发)和EventQueue(异步队列),均提供线程安全机制与优异性能。通过模板策略可灵活配置线程安全级别,支持多生产者-多消费者模式及批量优化。虽原生不支持返回值聚合,但可通过输出参数、forEach遍历或promise/future等方案实现。适用于解耦组件、跨线程通信等场景,是Qt信号槽的轻量高效替代,尤其在
YOLOv5改进有效涨点目录 | 包含卷积、主干、检测头、注意力机制、Neck上百种创新机制
Hello,各位读者们好本专栏自开设两个月以来已经更新改进教程60余篇其中包含C2f、主干、检测头、注意力机制、Neck多种结构上创新,也有损失函数和一些细节点上的创新。同时本人一些讲解视频和包含我所有创新的YOLOv8文档并不能在CSDN上传(所有的创新点都经过我的测试是可用的,得到该文件之后大家可以随意组合使用),所以会建立群的形式在内上传我的文件和视频我也会在群内不定期和大家交流回答大家问题,同时定期会更新一些文章的创新点(经过我融合测试后的,先到先得)。本专栏持续更新网络上的所有前沿文章。
halcon算子翻译——connection
算子:connection(Region : ConnectedRegions : : ) 功能:分离一个区域中相连接的部分(变成多个区域)。 输入参数: Region:输入一个区域; 输出参数: ConnectedRegions: ———————————————— 版权声明:本文为CSDN博主「机器人自动化控制」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/haier123888/article/details/1
开源鸿蒙PC适配教程:把小熊猫C++(RedPanda-CPP)搬到鸿蒙桌面端
小熊猫C++(RedPanda-CPP)是一个用 C++17 和 Qt Widgets 写的轻量 C/C++ IDE,自带词法分析、预处理、补全、编译运行和 GDB 调试。本项目把它迁移到鸿蒙 PC,目标不是“能打开一个窗口”,而是让编辑、文件工作流、符号索引、补全和导航在鸿蒙桌面端真正可用。项目选择保留与 UI 解耦的上游解析器,用 ArkUI 重建外壳,这样工作量可控,解析器行为也不会和桌面版分叉。这样解析器看到的是“展开后的真实代码”,不会把。,先编译,看链接器缺什么,再只补缺失的声明和最少实现。
Pandas滚动窗口的妙用:动态计算列数据的最大值
Pandas的滚动窗口(rolling window)功能是数据分析中处理时间序列数据的重要工具。本文通过实例演示了如何使用rolling(window=4).max()计算DataFrame列A的滚动最大值,并将结果存入新列Max_Range。该方法会在4个元素的滑动窗口内计算最大值,前3行因数据不足显示为NaN。这种技术广泛应用于金融分析(如股价波动)、数据平滑和趋势识别等场景,能有效帮助分析数据的动态变化特征。示例展示了从数据准备到结果输出的完整流程,体现了Pandas在处理滑动窗口计算时的高效性和便
PaddleOCR与PyQt 界面综合案例
本项目基于PaddleOCR与PyQt5实现流水线标签实时识别系统,通过摄像头采集画面,结合置信度过滤(≥0.7)、正则格式筛选及三帧投票策略,有效降低单帧误识别,提升结果稳定性。系统采用模块化设计,实现“采集—识别—标注—统计”全流程可视化,界面简洁,响应实时,具备良好可扩展性,适用于工业场景中的自动化标签识别需求。
IEM模型,地表粗糙度模拟
利用微波反演土壤水分时候,利用IEM模型可以实现对随机地表的模拟
jdk-8u144-linux-x64.tar.gz.
该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包
C++课后习题训练记录Day212
现在有 Q 次询问,每次询问给定 x=xi,询问初始的 x=xi,经过 N 次操作后 x 的具体值。注意每段代码末尾的分号是否存在 ,如不存在则需即使补充;之后 N 行,第 i 行给定一个操作类型 typei,表示运算符,以及一个正整数 fi。之后 Q 行,第 i 行给定一个正整数 xi,表示依次询问。对此代码进行检验,检验后无报错,运行此代码,运行结果正确。输出共 Q 行,每行包含 1 个整数,表示最终答案。在蓝桥云课中选择题库,选择题号5323并开始练习。第一行包含 2 个正整数 N,Q。
温度PID控制PLC程序
温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值
把 Ghostscript 迁到鸿蒙 PC:从 Linux 命令行到 libgs + NAPI + ArkUI
Ghostscript 原本是 Linux/Unix 下的命令行程序。它没有独立 GUI,真正的核心是 PostScript/PDF 解释器、PDF writer、图像设备、字体和 Resource。本文按实际迁移顺序记录工程环境、原生库编译、NAPI 桥接、系统能力替换、应用构建和验证结果。
深度学习工具包 DeepLearningToolbox
深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[](https://bitdeli.com/free "Bitdeli Badge")
C++高性能日志库spdlog实战指南:从入门到异步编码实战
SpdLog是一款高性能、跨平台的C++11日志库,采用Header-Only设计,支持异步日志、多线程安全、彩色输出及文件滚动等特性。其架构基于Logger/Sink/Formatter三层模型,灵活可扩展。通过fmt风格格式化与自定义Pattern,实现高效安全的日志输出。支持多种Sink,可轻松集成至项目中,广泛应用于高性能服务开发。
c++ constexpr 关键字
constexpr。
C++符号冲突与内部符号优先策略详解
本文系统解析C++符号冲突的四大场景,重点阐述通过作用域优先、命名空间隔离与内部链接机制实现内部符号优先。利用局部变量屏蔽全局、匿名命名空间限制可见性、static与using声明控制访问,结合动态库符号隐藏与命名空间封装,可有效避免跨文件、跨库符号冲突,确保用户代码内部符号被优先使用,提升大型项目可维护性与可靠性。
C++ 链接过程全解析:从符号重定位到 ELF 可执行文件生成的底层逻辑
符号解析把引用绑定到定义,段合并与布局确定最终内存结构,重定位把地址回填到指令和数据中。静态链接与动态链接的区别,本质上是符号解析发生的时机不同。掌握 ELF 结构、符号表、重定位表和 PLT/GOT 机制后,再遇到、动态库符号找不到等问题时,就能从「猜」变成「查」,用nmreadelf。
IP5381至为芯支持3路C口140W双向快充新国标移动电源方案芯片
IP5381_G2是一款用于新国标移动电源,充电宝方案的移动电源管理SOC芯片,支持1-6节锂电池配置,集成PD3.2/QC/UFCS等主流快充协议,140W双向快充,8A充电电流,35V输入耐压。通过新国标合规认证,Flash掉电存储:电池 SN、生产时间、电压温度、故障日志;USB2.0全速和PC通信,可读日志、溯源等。提供1A+3C双向快充等多种接口组合。
C++ 实战:奶茶配料计算器——输入甜度与冰量,自动算出最优搭配方案
看似简单,背后却涉及糖浆克数、冰块克数、茶汤比例、奶基底比例、小料搭配等一系列换算。以中杯 500ml 为例,基准配方设定为:茶汤 60%、牛奶 25%、糖浆 8%、冰块 5%、小料 2%。这些比例之和为 100%,保证容量守恒。若把甜度改为「全糖」,糖浆比例翻倍,茶汤相应减少,总容量仍保持 500ml。通过这样一个小项目,可以同时练习枚举建模、比例换算、输入校验和异常处理,是 C++ 入门阶段很实用的练手案例。这里把甜度和冰量都映射到 0~100 的百分比,后续计算只需按比例缩放,逻辑统一且易于维护。
C语言绘图方法:(17)球体缩放旋转
C语言有一套自己的绘图方法,很好很实用。当然那些图像处理软件和CAD绘图软件有非常强大的功能,然而对于设备的要求高,系统的开销也大。如编制小型的应用程序,需展示界面菜单按钮进度条,自己编制就能让程序体量小功能精悍。还有这些绘图方法便于读者深入理解C语言绘图技术的金点,并能激发读者在图形编程方面的创新和探索。本例是画球体,介绍几个打光的方法,供大家参考。
LeetCode //C - 1320. Minimum Distance to Type a Word Using Two Fingers
This problem involves finding the minimum total distance to type a given word using two fingers on a keyboard layout where letters are arranged in a grid. The solution uses dynamic programming to track the positions of the two fingers after each keystroke,
【C++】xlsxcpp:零外部依赖的 Excel `.xlsx` 读写库,服务端导报表不用装 Office
关键词:C++、Excel、xlsx、QXlsx、CMake、服务端报表、无 Qt。
Python 之外:启元 Q1 SDK 的 C++ 编译、示例与手写节点全实录
当Python的GIL和GC成为毫秒级机器人控制的性能天花板,你会怎么选?这篇文章带你深入启元Q1 SDK的C++原生方案:从编译实战、示例解析到手写节点全流程,用实测数据对比Python桥接、纯C++与混合IDL三种路线的延迟与确定性差异,并给出四类场景的选型建议。

4399



被折叠的 条评论
为什么被折叠?



