20 std::pair<std::vector<index_t >, valuesd> fit(
const valuesd& values,
21 const valuesd& values_lb,
22 const valuesd& values_ub,
23 double absolute_tolerance,
27 template<
class Predicate>
28 static std::vector<index_t> arg_where(
const valuesd& v, Predicate predicate) {
29 std::vector<index_t> indices;
30 for (index_t i = 0; i < v.size(); ++i) {
31 if (predicate(v[i])) {
38 std::vector<index_t> complementary_indices(
const std::vector<index_t>& indices)
const;
43 const index_t n_points_;
44 const index_t n_poly_basis_;