Treats the min–max range of each numeric column as a bounding box and samples points uniformly to approximate the integral of the outer product of the model terms, weighted by whether the point is on the edge.
gen_momentsmatrix_constrained(
candidate_set,
formula = ~.,
n_samples_per_dimension = 10,
user_provided_high_res_candidateset = FALSE
)
A matrix of size `p x p` (where `p` is the number of columns in the model matrix), approximating the continuous moment matrix.
Candidate set
Default `~ .`. Model formula specifying the terms.
Default `10`. Number of samples to take per dimension when interpolating inside the convex hull.