Figure 2
An example of geometric line fitting in 2D space. (a) The blue line indicates the true model that the data are sampled from, the green line shows the model fitted to the data set which is shifted away by outliers (red circles) from the true model and the red line shows the fitted model using RGFlib (with the fitLine function), which is closer to the true model (blue line) than the non-robust model (green line). (b) Histogram of data-point distances from the model; the orange curve shows the Gaussian model, the red line shows the average of the Gaussian density and the purple line shows the estimated threshold of true data points calculated by RGFlib. The blue bars are the density of the true data points and the red bars are the density of the outliers. The outliers can be seen on the right-hand side of the threshold. |