QInfer / python-qinfer

Library for Bayesian inference via sequential Monte Carlo for quantum parameter estimation.
BSD 3-Clause "New" or "Revised" License
92 stars 31 forks source link

Feature: ProductDomain #117

Closed ihincks closed 7 years ago

ihincks commented 7 years ago

This PR adds a new domain called ProductDomain which takes the cartesian product of any number of factor domains. This is done using numpy structured dtypes, so you can, for example, take the product of MultinomialDomain and RealDomain and end up with a dtype like [('k', int, 3), ('f1', float)].

This PR should be merged after #116 and #115.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+3.2%) to 72.351% when pulling 28ed55f02227e0373a70e166e98828162e1c6984 on ihincks:feature-product-domain into 12b2612dfb0410acf6ee010eeb9d262b3914c201 on QInfer:master.