easyvvuq.sampling.empty
1from .base import BaseSamplingElement 2 3__copyright__ = """ 4 5 Copyright 2020 Vytautas Jancauskas 6 7 This file is part of EasyVVUQ 8 9 EasyVVUQ is free software: you can redistribute it and/or modify 10 it under the terms of the Lesser GNU General Public License as published by 11 the Free Software Foundation, either version 3 of the License, or 12 (at your option) any later version. 13 14 EasyVVUQ is distributed in the hope that it will be useful, 15 but WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 Lesser GNU General Public License for more details. 18 19 You should have received a copy of the Lesser GNU General Public License 20 along with this program. If not, see <https://www.gnu.org/licenses/>. 21 22""" 23__license__ = "LGPL" 24 25 26class EmptySampler(BaseSamplingElement, sampler_name="empty"): 27 28 def is_finite(self): 29 return False 30 31 def __next__(self): 32 return {}
27class EmptySampler(BaseSamplingElement, sampler_name="empty"): 28 29 def is_finite(self): 30 return False 31 32 def __next__(self): 33 return {}
Baseclass for all EasyVVUQ sampling elements.
Attributes
- sampler_name (str): Name of the particular sampler.