1 2 3 4 5 ··· 119 下一页
摘要: 在 C++ 中,placement new 是一种特殊的 new 操作符,用于在指定的内存地址上构造对象,而不是从堆上分配新内存。这在需要精细控制内存布局或在预分配的缓冲区中构造对象时非常有用,比如在嵌入式系统、内存池或自定义分配器中。 void* buffer = operator new(siz 阅读全文
posted @ 2025-09-26 17:51 鸭子船长 阅读(10) 评论(0) 推荐(0)
摘要: 使用boost/multiprecision/cpp_dec_float.hpp #include <boost/multiprecision/cpp_dec_float.hpp> using boost::multiprecision::number; using boost::multiprec 阅读全文
posted @ 2024-04-18 22:39 鸭子船长 阅读(223) 评论(0) 推荐(0)
摘要: 检查.cshrc等初始化文件是否会打印信息 将打印信息全部去掉后,即可正常 阅读全文
posted @ 2023-11-17 16:06 鸭子船长 阅读(38) 评论(0) 推荐(0)
摘要: 转自: https://www.cnblogs.com/sddai/p/10332573.html 参考文献: 1.python 皮尔森相关系数 https://www.cnblogs.com/lxnz/p/7098954.html 2.统计学之三大相关性系数(pearson、spearman、ke 阅读全文
posted @ 2023-11-08 13:07 鸭子船长 阅读(251) 评论(0) 推荐(0)
摘要: windows下编辑的脚本,拿到linux上面执行 windows下的换行符为\r\n ,叫做CRLF linux下的换行符为\n,叫做LF 需要进行转换 解决办法: 用vim打开该sh文件,输入: :set ff 回车,显示fileformat=dos,重新设置下文件格式: :set ff=uni 阅读全文
posted @ 2023-10-04 19:05 鸭子船长 阅读(75) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/jiangkejie/p/15250760.html 公式推导 https://mathworld.wolfram.com/Erf.html erf的定义 函数erf(x)在数学中为误差函数(也称之为高斯误差函数,error function or G 阅读全文
posted @ 2023-08-23 16:06 鸭子船长 阅读(1289) 评论(0) 推荐(0)
摘要: 正态分布: https://www.zhihu.com/question/407449062/answer/2512469930 对数正态分布: https://zhuanlan.zhihu.com/p/490650039 阅读全文
posted @ 2023-03-20 19:57 鸭子船长 阅读(248) 评论(0) 推荐(0)
摘要: Linux中用gnuplot命令画图 binwidth = <something> # set width of x values in each bin bin(val) = binwidth * floor(val/binwidth) plot "datafile" using (bin($2) 阅读全文
posted @ 2023-02-27 10:21 鸭子船长 阅读(199) 评论(0) 推荐(0)
摘要: 转自:https://www.cnblogs.com/wzd5230/p/6150259.html 进入正题前,我们先来回顾下电容的充放电时间计算公式,假设有电源Vu通过电阻R给电容C充电,V0为电容上的初始电压值,Vu为电容充满电后的电压值,Vt为任意时刻t时电容上的电压值,那么便可以得到如下的计 阅读全文
posted @ 2022-09-20 15:26 鸭子船长 阅读(2142) 评论(0) 推荐(0)
摘要: 通过stringstream类来进行int 和string 的转换。stringstream的头文件是sstream使用stringstream对象简化类型转换 stringstream 我发现重复写入时会出现前面的东西还留在stream中。这时,我首先想到的是clear()函数,这个函数是用来清空 阅读全文
posted @ 2022-08-31 17:23 鸭子船长 阅读(114) 评论(0) 推荐(0)
1 2 3 4 5 ··· 119 下一页