正弦曲线一个周期是2π,我们要先生成x的取值范围。 可以用seq函数生成一个等差序列,步进为0.01 x=seq( 0, 2*pi, 0.01 ) pi表示π y=sin(x) plot(x,y,type='l') type='l'表示图形显示为线段,line ...
分类:
编程语言 时间:
2016-07-15 12:49:00
阅读次数:
855
from http://pundit.pratt.duke.edu/wiki/MATLAB:Plotting The plot Function The plot function is used to plot sets of data on a 2-D grid. What follows co ...
分类:
其他好文 时间:
2016-06-30 12:15:44
阅读次数:
188
聚类分析有很多种,效果好不好大概要根据数据特征来确定。最常见的是kmeans法聚类>setwd("D:\\R_test")
>data_in<-read.delim("tmp_result.txt",header=T)
>fit<-kmeans(data_in,3)
>library(cluster)
>clusplot(data_in,fit$cluster,color=T,shade=T,lab..
分类:
编程语言 时间:
2016-06-28 14:38:36
阅读次数:
808
1|—— rpart函数 shuttle数据集 数据集: 代码: 绘图: rpart.plot(b,type=1) rpart.plot(b,type=2) 分类的效果还是不错的,but这是数据洗的好啊... outcome: OUTCOME: _ tsamp集合 _samp集合 ...
分类:
其他好文 时间:
2016-06-27 17:04:06
阅读次数:
207
向量 矩阵 循环 判断 plot() ezplot() input() 数组的赋值 数值的运算 数组的赋值 数值的运算 字符串赋值 字符串操作函数 读数据 写数据 二维图 plot(),ezplot() 三维图 编写函数: ...
分类:
其他好文 时间:
2016-06-20 18:51:01
阅读次数:
227
直流电机调速 机卓1301 U201310767 蔡诗旭 添加定义Kd、Ki、error_i、error_d。 构成PID调节。 plot({motor1.i,motor1.w})得到结果 超调量大约为5.55%,响应时间0.06s。 ...
分类:
其他好文 时间:
2016-06-20 00:35:47
阅读次数:
146
nltk.text.Text.dispersion_plot函数bug nltk.text.Text.dispersion_plot(self,words) 默认调用nltk.draw.dispersion_plot,进而调用matplotlib完成绘图功能。 但是:检查发现,dispersion_ ...
分类:
其他好文 时间:
2016-06-19 15:36:04
阅读次数:
395
在分析数据前需要先观察它,本章将关注那些可以帮助理解单个类别型或连续型变量的图形。 1、条形图-针对类别型变量 (1)简单的条形图 涉及:table()函数用于提取对象各单元的计数 注:若要绘制的类别型变量是一个因子或有序型因子,就可以使用函数plot()快速创建。 (2)堆砌条形图和分组条形图 ( ...
分类:
其他好文 时间:
2016-06-06 12:04:16
阅读次数:
304
import struct import sqlalchemy import pandas import matplotlib.pyplot as Plot from matplotlib.finance import candlestick_ohlc as Drawk Engine = sqlal... ...
分类:
编程语言 时间:
2016-06-02 21:45:37
阅读次数:
228
import matplotlib.pyplot as Plot Plot.subplot(3, 4, (1, 7)) Plot.subplot(1, 4, 4) Plot.subplot(3, 4, (9, 11)) Plot.show() ...
分类:
其他好文 时间:
2016-06-02 20:01:13
阅读次数:
189