コード例 #1
0
 def makeDistribution(self):
     """
   Used to make standardized distribution for this poly type.
   @ In, None
   @ Out, gamma, Distribution, the gamma distribution
 """
     gamma = Distributions.Gamma(0.0, self.params[0] + 1)
     gamma.initializeDistribution()
     return gamma
コード例 #2
0
ファイル: OrthoPolynomials.py プロジェクト: gianfabi/raven
 def makeDistribution(self):
     """
   Used to make standardized distribution for this poly type.
   @ In, None
   @ Out, gamma, Distribution, the gamma distribution
 """
     gammaElement = ET.Element("Gamma")
     element = ET.Element("low", {})
     element.text = "0"
     gammaElement.append(element)
     element = ET.Element("alpha", {})
     element.text = "%s" % (self.params[0] + 1)
     gammaElement.append(element)
     gamma = Distributions.Gamma()
     gamma._readMoreXML(gammaElement)
     gamma.initializeDistribution()
     return gamma