void RANSAC_linear_model(int n_samples, int n_iterations, float error_threshold, float *targets, int D, float(*samples)[D], uint16_t count, float *params, float *fit_error)
Perform RANSAC to fit a linear model.
float predict_value(float *sample, float *weights, int D, bool use_bias)
Predict the value of a sample with linear weights.