ModelEnsemble

class pyapprox.control_variate_monte_carlo.ModelEnsemble(functions, names=None)[source]

Bases: object

Wrapper class to allow easy one-dimensional indexing of models in an ensemble.

Methods Summary

__call__(samples)

Evaluate a set of models at a set of samples

Methods Documentation

__call__(samples)[source]

Evaluate a set of models at a set of samples

Parameters
samplesnp.ndarray (nvars+1,nsamples)

Realizations of a multivariate random variable each with an additional scalar model id indicating which model to evaluate.

Returns
valuesnp.ndarray (nsamples,nqoi)

The values of the models at samples