现在我这样做:
d = approx(density(csvdata[, X ],n=5000),xout=csvdata[, X ])
dfact = 40/max(d$y)
for(i in 1:nrow(csvdata)) {
d$y[i] = (d$y[i]*dfact)-20
}
我在这里做的是转轨密度功能,其频率总是高于0,从我20台的海图底下显示,它始终适合20周年,因此,我更容易发现该线中的任何不合规定之处。 既然你们能够看到我这样做,但也许会有一个线上的人会这样做?