Generate quadrature method based on the algebraic statistics