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