public void paint(Graphics g) {
super.plotSampleData(g);
Graphics2D g2 = (Graphics2D) g;
Vector dv = new DenseVector(2);
int i = result.size() - 1;
for (Model<Vector>[] models : result) {
g2.setStroke(new BasicStroke(i == 0 ? 3 : 1));
g2.setColor(colors[Math.min(colors.length - 1, i--)]);
for (Model<Vector> m : models) {
NormalModel mm = (NormalModel) m;
dv.assign(mm.sd * 3);
if (isSignificant(mm))
plotEllipse(g2, mm.mean, dv);
}
}
}