摘要: 原文章地址 和配置java的maven依赖库类似,这个也是改配置文件就好了 配置方法 1、对特定项目有效,在项目中的 build.gradle 中修改内容 buildscript { repositories { maven { url 'http://maven.aliyun.com/nexus/ 阅读全文
posted @ 2020-09-24 20:47 模糊计算士 阅读(2387) 评论(0) 推荐(0)
摘要: java 原生动态代理源码的理解,卡在了java8新特性lambda表达式那里 阅读全文
posted @ 2020-09-24 19:00 模糊计算士 阅读(82) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<stdlib.h> #include<time.h> using namespace std; int main() { clock_t start_time, end_time; double duration; start=clock();/ 阅读全文
posted @ 2020-09-24 11:15 模糊计算士 阅读(666) 评论(0) 推荐(0)
摘要: 我们来看官方文档: boolean retainAll​(Collection<?> c) Retains only the elements in this set that are contained in the specified collection (optional operation 阅读全文
posted @ 2020-09-24 11:14 模糊计算士 阅读(6746) 评论(0) 推荐(0)
摘要: 问题描述 平面上画有间隔为d 的等距平行线,向平面任意投掷一枚长为 l 的针,求针与平行线相交的概率. 解: 以 \(x\) 表示针的中点与最近一条平行线的距离。又以 \(\varphi\) 表示针与此直线间的交角。易知样本空间 \(\Omega\) 满足: $$0 \leq x \leq \fra 阅读全文
posted @ 2020-09-24 11:13 模糊计算士 阅读(1037) 评论(0) 推荐(0)
摘要: 本问题用到的公式 条件概率公式和乘法公式: \(P(A|B) = \displaystyle\frac{P(AB)}{P(B)}\) \(\Rightarrow\) \(P(AB) = P(B)P(AB)\) \(P(AB) = P(A)P(B|A)\) 全概率公式: 设 \(A_1, A_2, . 阅读全文
posted @ 2020-09-24 11:11 模糊计算士 阅读(5340) 评论(1) 推荐(0)
摘要: 1、条件概率公式 \(P(A|B) = \displaystyle\frac{P(AB)}{P(B)}\) 推论 \(\Rightarrow\) $$1、P(A \cup B | C) = P(A|C) + P(B|C) - P(AB|C)$$ 若 A 与 B 互不相容,则 $$2、P(A \cup 阅读全文
posted @ 2020-09-24 11:10 模糊计算士 阅读(721) 评论(0) 推荐(0)
摘要: 课本上只给了队列的数组实现,关于链表实现的留做了作业,现实现如下: queueli.h typedef int ElementType; /* START: fig3_57.txt */ #ifndef _Queueli_h #define _Queueli_h struct Node; struc 阅读全文
posted @ 2020-09-24 01:25 模糊计算士 阅读(214) 评论(0) 推荐(0)