Coverage for src/pymor/parameters/spaces : 94%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
|
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright Holders: Rene Milk, Stephan Rave, Felix Schindler # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
'''Simple |ParameterSpace| where each summand is an n-cube.
Parameters ---------- parameter_type The |ParameterType| of the space. minimum The minimum for each matrix entry of each |Parameter| component. Must be `None` if `ranges` is not `None`. maximum The maximum for each matrix entry of each |Parameter| component. Must be `None` if `ranges` is not `None`. ranges dict whose keys agree with `parameter_type` and whose values are tuples (min, max) specifying the minimum and maximum of each matrix entry of corresponding |Parameter| component. Must be `None` if `minimum` and `maximum` are specified. '''
'Must specify minimum, maximum or ranges'
for k in self.parameter_type)
'''Iterator sampling uniformly |Parameters| from the space.''' pass counts = {k: c for k, c in izip(self.parameter_type, counts)} else: for ls, sps in izip(linspaces, self.parameter_type.values())) for k, v, shp in izip(self.parameter_type, i, self.parameter_type.values())))
'''Iterator sampling random |Parameters| from the space.''' for k, shp in self.parameter_type.iteritems())) |