楼主厉害!
我拿上面代码运行后,有错误提示:
There were 50 or more warnings (use warnings() to see the first 50)
> n=1:length(y)
> plot(n,y,xlim=c(0,100), ylim=c(0,100),main="接受追求者散点图", ylab="优秀程度", xlab="实验次数")
> y=y[y>0]
> plot(density(y),xlim=c(0,100), main="优化后接受追求者分布图", ylab="密度", xlab="优秀程度")
Error in density.default(y) :
need at least 2 points to select a bandwidth automatically
楼主可否将源代码直接传上来啊,谢谢!


雷达卡

京公网安备 11010802022788号







