摘要: 这个是看书上面的一段代码: #include <stdio.h>void swap(int x,int y,char *p){ char temp; temp=p[x]; p[x]=p[y]; p[y]=temp;}void output(char *p,int size){ printf("修整后 阅读全文
posted @ 2016-05-08 19:43 薄樱 阅读(827) 评论(0) 推荐(0) 编辑
摘要: #include <ctime>#include <cstdlib>#include<stdio.h>int TimeRand()//根据系统时间随机取1-6中的数字{ int t; //seed srand((unsigned)time(NULL)); t = rand() % 6+ 1; // 阅读全文
posted @ 2016-05-08 19:37 薄樱 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 数据样本的常见类型1)数值型和分类型2)离散型和连续性变量3)是否与时间相关原始数据的转换1)标准化(a)小数缩放(b)最小-最大值标准化(c)标准差标准化数据平整插值与比率(提高数据挖掘的性能)对于丢失数据的处理(1)手动生成缺失数据(2)用特征平均值替换丢失值时间相关数据多数情况下t(n+1)-... 阅读全文
posted @ 2016-01-14 16:19 薄樱 阅读(225) 评论(0) 推荐(0) 编辑
摘要: function [Y, R, E] = Isomap(D, n_fcn, n_size, options); % ISOMAP Computes Isomap embedding using the algorithm of % Tenenbaum, de Silva,... 阅读全文
posted @ 2016-01-14 15:35 薄樱 阅读(754) 评论(0) 推荐(0) 编辑
摘要: clcclearx0=input('x0=');y0=input('y0=');FPO=input('FPO=');FPN=input('FPN=');x=input('x=');n=length(x0);for i=1:n a(i)=y0(i);endfor i=1:n-1 h(i)=... 阅读全文
posted @ 2016-01-11 19:32 薄樱 阅读(337) 评论(0) 推荐(0) 编辑
摘要: function Romberg(a,b,n)h=b-a;R(1,1)=h*(f(a)+f(b))/2;for i=2:n m=0; for k=1:2^(i-2) m=m+f(a+(k-0.5)*h); end R(2,1)=1/2*(R(1,1)+h*m);... 阅读全文
posted @ 2016-01-11 19:31 薄樱 阅读(798) 评论(0) 推荐(0) 编辑
摘要: 列表和数组从0开始列表可以修改,但是元组不能修改>>> edward=['1',2]>>> john=['2',3]>>> database=[edward,john]>>> database[['1', 2], ['2', 3]]>>> 输入年月日,打出相应日期的月份名称months=['1', ... 阅读全文
posted @ 2016-01-10 17:15 薄樱 阅读(154) 评论(0) 推荐(0) 编辑