Ejemplo n.º 1
0
 def setUp(self):
     self.data = sherpa.Data1D('testdata', _datax, _datay)
     self.g1 = sherpa.Gauss1D('g1')
     self.f = sherpa.Fit(self.data, self.g1)
     self.f.fit()
     self.ip = sherpa.IntervalProjection()
     self.iu = sherpa.IntervalUncertainty()
     self.rp = sherpa.RegionProjection()
     self.ru = sherpa.RegionUncertainty()
Ejemplo n.º 2
0
def setup_confidence():
    """Note that this performs a fit, so can be slow"""

    data = sherpa.Data1D('testdata', _datax, _datay)
    g1 = sherpa.Gauss1D('g1')
    f = sherpa.Fit(data, g1)
    f.fit()
    ip = sherpa.IntervalProjection()
    iu = sherpa.IntervalUncertainty()
    rp = sherpa.RegionProjection()
    ru = sherpa.RegionUncertainty()

    return SetupConfidence(data, g1, f, ip, iu, rp, ru)