上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 49 下一页
摘要: // read the number of the world, space fills between the words #include<stdio.h> //#include<string.h> int func(char* character ) { int number = 0; for 阅读全文
posted @ 2020-03-12 00:51 看星星的派大星 阅读(127) 评论(0) 推荐(0) 编辑
摘要: void func(expression) noexcept 表示本函数没有异常 void func(expression) noexcept(expression1) expression1 只返回真假,真,则表示没有异常,假 , 则表示有异常。 阅读全文
posted @ 2020-03-10 09:27 看星星的派大星 阅读(418) 评论(0) 推荐(1) 编辑
摘要: // test the throw #include<iostream> using namespace std; void func() { cout << "generate exception" << endl; throw 5; } int main() { try{ func(); } c 阅读全文
posted @ 2020-03-10 09:24 看星星的派大星 阅读(623) 评论(0) 推荐(0) 编辑
摘要: 自然数 : natural number 正整数 : positive integer 负整数 : negtive integer 整数 : integer 有理数 : rational number 无理数 :irrational number 实数 : real number 阅读全文
posted @ 2020-03-10 09:12 看星星的派大星 阅读(1618) 评论(0) 推荐(0) 编辑
摘要: np.array[rang(10)] >生成数组,类型已变 a.dtype >查类型 np.arrange[] > 相当于range[] np.round(a,2) >相当于round() 取两位小数 a.astype(int32) >改变数据的类型 np.array(range(12),type 阅读全文
posted @ 2020-03-09 08:54 看星星的派大星 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 对于成倍数增长的数列,几何平均数更能代表最中间的数,因为算数平均数会被极端数值拉大,已经不是最中间的数了。 比如 2 4 8 16 38 这几个数字的算数平均数为 约为12。 而几何平均数为8 也就数说 (a+b)/2 >= (ab)^0.5 > 源于 (a+b)^2 >= 2ab 阅读全文
posted @ 2020-03-09 08:45 看星星的派大星 阅读(1051) 评论(0) 推荐(0) 编辑
摘要: 打开Rstudio 然后点击tools 然后点击globle option是 然后点击code 然后点击saving 将default text coding 改为utf-8 阅读全文
posted @ 2020-03-08 21:48 看星星的派大星 阅读(650) 评论(0) 推荐(0) 编辑
摘要: # test the skewness 以及峰度 library(moments) x <- rnorm(100,0,1) # 产生100均值为0, 标准差为1 的正太分布随机数 x <- rnorm(100,5,3) skewness(x) # 计算偏度 agostino.test(x) # 偏度 阅读全文
posted @ 2020-03-08 21:43 看星星的派大星 阅读(4795) 评论(0) 推荐(0) 编辑
摘要: cd 到 C:\\windows\\Fonts 然后dir 至于那个是中文字体则,非常难区分。 阅读全文
posted @ 2020-03-08 01:39 看星星的派大星 阅读(1536) 评论(0) 推荐(0) 编辑
摘要: # draw hist from matplotlib import pyplot as plt from random import gauss #from matplotlib import rc from matplotlib import font_manager #font = {'fam 阅读全文
posted @ 2020-03-08 01:30 看星星的派大星 阅读(425) 评论(0) 推荐(0) 编辑
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 49 下一页