two moon datasets

【转载】流形学习中双月形实验数据1(two moon datasets,调试成功)  

2013-07-16 22:40:14|  分类: 默认分类|举报|字号 订阅

本文转载自六月飞雪 《流形学习中双月形实验数据1(two moon datasets,调试成功)》

      x=0:0.05:2*pi;

c=cos(x);

s=sin(x);

ss=s(find(s.*(x>=0&x<=3)));

cc=c(find(c.*(x>=1.5&x<=4.5)));

xc=x(find(x.*(x>=1.5&x<=4.5)));

xs=x(find(x.*(x>=0&x<=3)));

s1=randn(size(ss))./10+ss;

c1=randn(size(cc))./10+cc;

plot(xc,c1,'ro');

hold on

plot(xs,s1,'bd');


你可能感兴趣的:(two moon datasets)