食野苹

2018年8月28日

进化计算安排

摘要: 8/27/2018 log: 三次 paper presentation : 1、搞一个什么是 Evolutionary Computing的 paper 2、自己相关领域的 paper 3、 finial project 能发paper 的话 直接给A。 阅读全文

posted @ 2018-08-28 04:16 nyc1893 阅读(86) 评论(0) 推荐(0) 编辑

2017年7月2日

Python matplotlib绘图学习笔记

摘要: 测试环境: Jupyter QtConsole 4.2.1Python 3.6.1 1. 基本画线: 以下得出红蓝绿三色的点 import numpy as npimport matplotlib.pyplot as plt # evenly sampled time at 200ms interv 阅读全文

posted @ 2017-07-02 21:17 nyc1893 阅读(737) 评论(0) 推荐(0) 编辑

2017年6月9日

Python 语法2

摘要: 文档字符串,这个只能是用于紧跟函数第二行的内容。 输出文档说明的部分,代码格式是 函数名称.(dot)__(双下划线)doc__(双下划线) ///////////////////////////////////////////////////////// def ff(a,b): ''' 这个函数 阅读全文

posted @ 2017-06-09 18:17 nyc1893 阅读(113) 评论(0) 推荐(0) 编辑
Python 语法1

摘要: 函数的定义: """ def 函数名(): 函数内容,函数内容, 函数内容,函数内容, """ //////////////////////////////////////////////////////////////////////////// def fun1(): print "haha" 阅读全文

posted @ 2017-06-09 10:56 nyc1893 阅读(98) 评论(0) 推荐(0) 编辑

2015年6月13日

C++入门程序作业3

摘要: /* 输出n位数据的格雷码 The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing 阅读全文

posted @ 2015-06-13 15:09 nyc1893 阅读(103) 评论(0) 推荐(0) 编辑

2015年6月9日

C++入门程序作业2

摘要: 程序在Dev-C++5.5.3版本运行 结构体的使用 给结构体赋值,打印出结构体中学生姓名,分数,平均分 #include <iostream>#include <cassert>#include <algorithm>#include <vector>#include <string.h>//不用 阅读全文

posted @ 2015-06-09 10:59 nyc1893 阅读(134) 评论(0) 推荐(0) 编辑
C++入门程序作业1

摘要: 将一个int A[]={ , , ,}定义的可能重复的数字去掉重复的元素。 了解向量,容器如何使用,size,地址的关系,理解unique erase函数的返回值是什么参数 结果:将1,1,1,2,2,2,3,3,3,4,4,4,5,5,5消去变成1,2,3,4,5 #include <iostre 阅读全文

posted @ 2015-06-09 10:49 nyc1893 阅读(167) 评论(0) 推荐(0) 编辑

2015年6月8日

SE1-soc入手又有的东西可以玩了

摘要: 笔者之前只有DE2-35 和DE2-70 两个板子用,相比之下亮点主要是:配备了DDR3 的存储器,视频处理能处理更高帧频和画幅数了,此外直接有了USB2.0接口,还配有A9 Arm双核芯片,功能一下子强大了许多,可以往上位机方面的应用层精进了。 阅读全文

posted @ 2015-06-08 00:38 nyc1893 阅读(126) 评论(0) 推荐(0) 编辑

2014年11月5日

pointer to function

摘要: 指针、函数、数字、结构体、指针函数、函数指针 初学不好区分,做点儿实验来有效区分一下,以下代码采用dev-C++平台测试//pointer to fucntion 函数功能是 基地址加偏移量得到偏移地址#includevoid test(int *n,int *base,int x){ *n=x+... 阅读全文

posted @ 2014-11-05 00:06 nyc1893 阅读(150) 评论(0) 推荐(0) 编辑

2013年8月23日

flyby function

摘要: x=linspace(0.001, 3, 300);y=besselj(5,sqrt(1+x.^2));m=exp(5*i*atan(x.^-1));z=y.*m;plot(x,log(z),'r'); hold on;plot(x,log(real(z)),'k')hold on;plot(x,log(imag(z)),'b:')hold off; 阅读全文

posted @ 2013-08-23 09:35 nyc1893 阅读(118) 评论(0) 推荐(0) 编辑