SG++
python.uq.sampler.Sample.Sample Class Reference
Inheritance diagram for python.uq.sampler.Sample.Sample:

Public Member Functions

def __eq__ (self, sample)
 
def __hash__ (self)
 
def __init__ (self, params=None, sample=None, dtype=SampleType.ACTIVEPROBABILISTIC)
 
def __str__ (self)
 
def fromJson (cls, jsonObject)
 
def getActiveProbabilistic (self)
 
def getActiveUnit (self)
 
def getDim (self, dtype=SampleType.ACTIVEUNIT)
 
def getExpandedDim (self)
 
def getExpandedProbabilistic (self)
 
def getExpandedUnit (self)
 
def getStochasticDim (self)
 
def getValue (self, dtype=SampleType.ACTIVEUNIT)
 
def init (self, activeUnit, activeProb, expandedUnit, expandedProb)
 
def toJson (self)
 

Constructor & Destructor Documentation

def python.uq.sampler.Sample.Sample.__init__ (   self,
  params = None,
  sample = None,
  dtype = SampleType.ACTIVEPROBABILISTIC 
)
constructor
@param params: ParameterSet
@param sample: numpy array, tuple or list
@param dtype: SampleType

References python.uq.sampler.Sample.Sample.__activeProb, python.uq.sampler.Sample.Sample.__activeUnit, python.uq.sampler.Sample.Sample.__expandedProb, and python.uq.sampler.Sample.Sample.__expandedUnit.

Member Function Documentation

def python.uq.sampler.Sample.Sample.__eq__ (   self,
  sample 
)
def python.uq.sampler.Sample.Sample.__hash__ (   self)
def python.uq.sampler.Sample.Sample.__str__ (   self)
def python.uq.sampler.Sample.Sample.fromJson (   cls,
  jsonObject 
)
Restores the Sample object from the json object
with its attributes.
@param jsonObject: json object
@return: the restored Sample object

Referenced by python.uq.uq_setting.UQSetting.UQSetting.setMemento().

def python.uq.sampler.Sample.Sample.getActiveProbabilistic (   self)

References python.uq.sampler.Sample.Sample.__activeProb.

Referenced by python.uq.sampler.Sample.Sample.getValue().

def python.uq.sampler.Sample.Sample.getActiveUnit (   self)

References python.uq.sampler.Sample.Sample.__activeUnit.

Referenced by python.uq.sampler.Sample.Sample.__str__(), and python.uq.sampler.Sample.Sample.getValue().

def python.uq.sampler.Sample.Sample.getExpandedDim (   self)

References python.uq.sampler.Sample.Sample.__expandedUnit.

Referenced by python.uq.sampler.Sample.Sample.getDim().

def python.uq.sampler.Sample.Sample.getExpandedProbabilistic (   self)

References python.uq.sampler.Sample.Sample.__expandedProb.

Referenced by python.uq.sampler.Sample.Sample.getValue().

def python.uq.sampler.Sample.Sample.getExpandedUnit (   self)

References python.uq.sampler.Sample.Sample.__expandedUnit.

Referenced by python.uq.sampler.Sample.Sample.__hash__(), and python.uq.sampler.Sample.Sample.getValue().

def python.uq.sampler.Sample.Sample.getStochasticDim (   self)

References python.uq.sampler.Sample.Sample.__activeUnit.

Referenced by python.uq.sampler.Sample.Sample.getDim().

def python.uq.sampler.Sample.Sample.init (   self,
  activeUnit,
  activeProb,
  expandedUnit,
  expandedProb 
)

References python.uq.sampler.Sample.Sample.__activeProb, python.uq.sampler.Sample.Sample.__activeUnit, python.uq.sampler.Sample.Sample.__expandedProb, and python.uq.sampler.Sample.Sample.__expandedUnit.

def python.uq.sampler.Sample.Sample.toJson (   self)

The documentation for this class was generated from the following file: