julia
文章平均质量分 75
Fregot
这个作者很懒,什么都没留下…
展开
-
图像处理(Sobel filters 和图像压缩)
图像处理ZhuoFei(fregot@icloud.com)julia version: 1.5.0文章目录图像处理需要的包及下载的图片Sobel filter(寻找人物边缘)缩小图像尺寸需要通过对图像的一系列处理,适当去掉图像中信息含量较小的部分,缩小图像的尺寸。需要的包及下载的图片using Imagesusing ImageFilteringusing ImageViewusing LinearAlgebrausing TestImagesimage_url = "htt原创 2021-01-29 20:38:53 · 2570 阅读 · 0 评论 -
动力学方程的数值解(动力学方程+行星运动轨道)
动力学方程的数值解(动力学方程+行星运动轨道)Zhuofei(fregot@icloud.com)julia version:1.5.0文章目录动力学方程的数值解(动力学方程+行星运动轨道)计算动力学方程导入需要的包行星运动轨迹数值计算计算动力学方程动力学方程的数值解例如,动力学方程如下:−kx=mdvdt-kx = m\frac{dv}{dt}−kx=mdtdv如果假设 k/m=1k/m = 1k/m=1, 则:−x=dvdt-x = \frac{dv}{dt}−x=dtdv原创 2021-01-28 21:41:25 · 2572 阅读 · 0 评论 -
SIR模型II
SIR II (Epidemic modeling) by Zhuofei(fregot@icloud.com)在这个模型中,考虑一个在一定空间内的流行病模型。人只能与附近的人交互作用,所以给人在一定的空间里随机运动。首先,在一个2维平面,随机游走:using Plotsusing Composeusing Cairousing Fontconfigstruct Coordinate{T} x::T y::Tend#定义 +function Base.:+(a::Coo原创 2021-01-26 23:17:17 · 849 阅读 · 4 评论 -
流行病模型(SIR Model)
流行病模型(SIR Model)by : ZhuoFei, Zhou首先定义一个函数bernoulli(p)#以概率p判断是否会被感染或恢复function bernoulli(p::Number) if rand(1)[1] < p return true else return false endendbernoulli (generic function with 1 method)恢复所需的时间函数recovery_time(p)function recove原创 2021-01-08 23:21:55 · 3268 阅读 · 0 评论 -
MIT18_065S18P-lecture one notes
Lecture One Notesstudent name: ZhouZhuoFeimore information can see, if you want to interactive with figurewe take a matrix A here:A=[2133145712]A = \begin{bmatrix}2 & 1 & 3 \\3 & 1 & 4 \\5 & 7 & 12\end{bmatrix}A=⎣⎡23原创 2020-11-10 22:48:14 · 244 阅读 · 0 评论