Skip to content

Specify different measures, kernels and domains for n-dimensional integration using bayesquad #753

@panweihit

Description

@panweihit

Hi,

I use the example in #512. I have two naive questions.

  1. I am trying to use a different measure and kernel inprobnum's bayesquad function. Did I make something wrong in the argument?
from probnum.quad import bayesquad
from probnum.quad.integration_measures LebesgueMeasure
from probnum.randprocs.kernels import ExpQuad

bayesquad(f, 2, domain=domain, measure=LebesgueMeasure, kernel=ExpQuad)
  1. Here the domain for the two inputs are both
domain=np.array([-3, 3]) 

Can I specify different domains, such as

domain = np.array([[-3, 3],[0, 1]])

Expect your reply. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    quadIssues related to quadraturequestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions