自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(27)
  • 收藏
  • 关注

转载 C++ stringstream介绍,使用方法与例子

http://www.cnblogs.com/wuchanming/p/3906176.html转载于:https://www.cnblogs.com/XinZhou-Annie/p/10086470.html

2018-12-08 04:08:00 236

转载 C++/C++11中std::numeric_limits的使用

https://blog.youkuaiyun.com/fengbingchun/article/details/77922558转载于:https://www.cnblogs.com/XinZhou-Annie/p/10086468.html

2018-12-08 03:51:00 342

转载 C++中string erase函数的使用

https://www.cnblogs.com/ylwn817/articles/1967689.html转载于:https://www.cnblogs.com/XinZhou-Annie/p/9981195.html

2018-11-19 02:37:00 258

转载 C++中accumulate的用法

https://blog.youkuaiyun.com/u011499425/article/details/52756242转载于:https://www.cnblogs.com/XinZhou-Annie/p/9976927.html

2018-11-18 03:13:00 324

转载 malloc的用法和意义

int*p;p=(int*)malloc(sizeof(int)*128);//分配128个(可根据实际需要替换该数值)整型存储单元,//并将这128个连续的整型存储单元的首地址存储到指针变量p中double*pd=(double*)malloc(sizeof(double)*12);//分配12个double型存储单元,//并将首地址存储到指...

2018-11-13 04:54:00 260

转载 terminal access Desktop

cd Desktop转载于:https://www.cnblogs.com/XinZhou-Annie/p/9317223.html

2018-07-16 13:25:00 201

转载 randi()函数

randi()函数生成均匀分布的伪随机整数,范围为imin--imax,如果没指定imin,则默认为1。r = randi(imax,n):生成n*n的矩阵r = randi(imax,m,n):生成m*n的矩阵~= means not equal to转载于:https://www.cnblogs.com/XinZhou-Annie/p/7770451.ht...

2017-11-02 04:35:00 6833

转载 plot QPSK xI=[1, -1, 1, -1, 1] xQ=[-1, -1, 1, 1, -1]

t=0:0.01:5;fc=4;% c=length(t);pRec=ones(1,(length(t)-1)/5);% 1-100sI=zeros(1,length(t)); sQ=zeros(1,length(t));% 500 zerosdataI=[1 -1 1 -1 1];indPulse=1:(length(t)-1)/5; % 1-1...

2017-09-18 14:02:00 147

转载 Set figure on small area--set(gca,'YLim',[-30 0])

x=-6:0.01:6;G= sin(pi*x)./(pi.*x).*exp(-j*pi*x)figuresubplot(3,1,1);plot(x,real(G),'r',x,imag(G),'g'); xlabel('fT')grid on;subplot(3,1,2);plot(x,(abs(G)).^2,'r');xlabel('fT')g...

2017-09-07 13:43:00 157

转载 Vpeak to peak to Vrms conversion

Vpeak to peak is defined as the voltage measured between the maximum Positive and Negative Amplitudes on the sine wave.The Vrms is defined as square root of the mean of the squares of the value...

2017-08-20 04:14:00 862

转载 Window Function--the function of window function

From :http://blog.sina.com.cn/s/blog_6163bdeb0102dqhq.html窗函数是频谱分析中一个重要的部分,窗函数修正了由于信号的非周期性并减小了频谱中由于泄露而带来的测量不准确性。快速傅里叶变换假定了时间信号是周期无限的。但在分析时,我们往往只截取其中的一部分,因此需要加窗以减小泄露。窗函数可以加在时域,也可以加在频域上,但在时域上加窗...

2017-08-19 22:22:00 194

转载 Python用Pillow(PIL)进行简单的图像操作

Python用Pillow(PIL)进行简单的图像操作原创2017-08-01sunhaiyuPython中文社区sunhaiyu,Python中文社区专栏作者专栏地址:http://www.jianshu.com/u/4943cb2c6ea4❈Python用Pillow(PIL)进行简单的图像操作颜色与RGBA值计算机通常将图像表示为R...

2017-08-02 12:40:00 287

转载 Pyecharts : plot Graph, Line, Liquid, Parallel

报错:ascii' codec can't decode byte 0xe5 in position 2877: ordinal not in range...主要错误是上面最后一行的Unicode解码问题,网上搜索说是读取文件时使用的编码默认时ascii而不是utf8,导致的错误;在代码中加上如下几句即可。import sysreload(sys)sys....

2017-07-30 18:46:00 407

转载 机器学习方法--分类、回归、聚类

原创2017-07-27马文辉MATLAB作 者 简 介马文辉,MathWorks中国应用工程师,南开大学工学博士,在大数据处理与分析领域有多年研究与开发经验;曾就职于Nokia中国研究院,Adobe中国研发中心以及IBM中国。近年来,全国赛的题目中,多多少少都有些数据,而且数据量总体来说呈不断增加的趋势, 这是由于在科研界和工业界已积累了比较丰富的数据,...

2017-07-28 23:20:00 1123

转载 回归方法--一元回归,多元回归,逐步归回,Logistic 回归

数学建模专栏 | 第三篇:MATLAB数据建模方法(上) —常用方法2017-07-21卓金武MATLAB作 者 简 介卓金武,MathWorks中国高级工程师,教育业务经理,在数据分析、数据挖掘、机器学习、数学建模、量化投资和优化等科学计算方面有多年工作经验,现主要负责MATLAB校园版业务。曾2次获全国大学生数学建模竞赛一等奖,1次获全国研究生...

2017-07-22 19:43:00 6866

转载 罗马数字转换 copy @wuxiaojiao : http://paste.ubuntu.com/25046101/

def Int_roman(n): st=("M","D","C","L","X","V","I") d=[1000,500,100,50,10,5,1] st1="" while n>0: d1=d+[n] d1.sort(reverse=True) n1=d1.index(n)...

2017-07-21 16:35:00 277

转载 网络爬虫: 抓取allitebooks.com书籍信息及ISBN码, save books name and ISBN into .csv(2) from backslash112...

from urllib2 import urlopenfrom bs4 import BeautifulSoupimport csv# Get the next page url from the current page urldef get_next_page_url(url): page = urlopen(url) soup_pag...

2017-07-12 19:40:00 202

转载 网络爬虫: 从allitebooks.com抓取书籍信息: 抓取allitebooks.com书籍信息及ISBN码 from backslash112...

from urllib2 import urlopenfrom bs4 import BeautifulSoup# Get the next page url from the current page urldef get_next_page_url(url): page = urlopen(url) soup_page = BeautifulS...

2017-07-10 22:22:00 190

转载 BeautifulSoup bs4

Official webpage:https://www.crummy.com/software/BeautifulSoup/bs4/doc/#searching-the-treePrettify()Theprettify()method will turn a Beautiful Soup parse tree into a nicely formatted Unicod...

2017-07-10 21:19:00 132

转载 什么是正则表达式

正则表达式(通常称作regex)提供了一种灵活的在文本中搜索或匹配字符串模式的方式。正则表达式是根据正则表达式语言编写的字符串。Python内置的re模块负责对字符串应用正则表达式。一个regex描述了需要在文本中定位的一个模式。例子:假设我要拆分一个字符串,分隔符可能是制表符、空格、换行符等。描述一个或多个空白符的regex是\s+:调用re.split('\s+', ...

2017-07-09 20:26:00 125

转载 <利用Python进行数据分析> Note 4

In Series, the difference of indexing values between by number and by letter转载于:https://www.cnblogs.com/XinZhou-Annie/p/7121215.html

2017-07-05 23:24:00 119

转载 <利用Python进行数据分析> Note 3- pandas, series, reshape, reindex, lambda, apply, value_counts...

Pandas:In [1]: from pandas import Series, DataFrameIn[2]: import pandas as pdSeries:Get values and index of the seriesFunction: reshape()reindex()调用Series的reindex 将会根据新索引进行重排。如果...

2017-07-05 14:29:00 164

转载 <利用Python进行数据分析> Note 2

NumPy的数组中比较重要ndarray对象属性:ndarray.ndim:数组的维数(即数组轴的个数),等于秩。最常见的为二维数组(矩阵)。ndarray.itemsize:数组中每个元素的字节大小。例如,一个元素类型为float64的数组itemsiz属性值为8(float64占用64个bits,每个字节长度为8,所以64/8,占用8个字节),又如,一个元素类型为complex32的...

2017-07-03 23:17:00 122

转载 <利用Python进行数据分析> Note 1

NumPy 和SciPy结合完全可以替代MATLAB的计算功能(包括其插件工具箱)NumPy, SciPy, matplotlib以及IPython这些包含在Canopy中了。第2章引言来自bit.ly的1.usa.gov数据一、JSON 数据准备首先准备一份 JSON 数据,这份数据共有 3560 条内容, name:usagov_bitly_data2012-0...

2017-07-02 16:39:00 114

转载 What next? ---class, def, pickle, dictionary, make a address book

<A Byte of Python> Chapter 16. What next?Problem: create your own command-line address-book program using which you can add, modify, delete or search for your contacts such as friends, fa...

2017-06-30 15:52:00 157

转载 cPickle and pickle

import cPickle as p#import pickle as pAddressListfile = 'AddressList.data' # the name of the file where we store the informationAddressList = {'Xiaopeng Yang': (18000001219, '18700000...

2017-06-30 15:36:00 117

转载 Python dictionary---one key and multi-value

Pairs of keys and value are specified in a dictionary by using the notation d = {key1 : value1, key2 : value2 }.one key and multi-value ab = {key1 : (value1, value2), ...

2017-06-30 15:05:00 151

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除