Skip to content

Commit

Permalink
ExpInt: rename to 'Integral'
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Oct 19, 2022
1 parent f704dee commit dfdea63
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 21 deletions.
3 changes: 1 addition & 2 deletions examples/02_cov_model/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ The following standard covariance models are provided by GSTools
Gaussian
Exponential
Matern
ExpInt
Mueller
Integral
Stable
Rational
Cubic
Expand Down
9 changes: 3 additions & 6 deletions src/gstools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@
Gaussian
Exponential
Matern
ExpInt
Mueller
Integral
Stable
Rational
Cubic
Expand Down Expand Up @@ -143,14 +142,13 @@
Circular,
CovModel,
Cubic,
ExpInt,
Exponential,
Gaussian,
HyperSpherical,
Integral,
JBessel,
Linear,
Matern,
Mueller,
Rational,
Spherical,
Stable,
Expand Down Expand Up @@ -196,8 +194,7 @@
"Gaussian",
"Exponential",
"Matern",
"ExpInt",
"Mueller",
"Integral",
"Stable",
"Rational",
"Cubic",
Expand Down
13 changes: 4 additions & 9 deletions src/gstools/covmodel/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
Gaussian
Exponential
Matern
ExpInt
Mueller
Integral
Stable
Rational
Cubic
Expand All @@ -36,8 +35,7 @@
"Gaussian",
"Exponential",
"Matern",
"ExpInt",
"Mueller",
"Integral",
"Stable",
"Rational",
"Cubic",
Expand Down Expand Up @@ -393,7 +391,7 @@ def calc_integral_scale(self): # noqa: D102
)


class Mueller(CovModel):
class Integral(CovModel):
r"""The Exponential Integral covariance model.
Notes
Expand Down Expand Up @@ -456,7 +454,7 @@ def default_opt_arg_bounds(self):
return {"nu": [0.0, 50.0, "oc"]}

def cor(self, h):
"""ExpInt normalized correlation function."""
"""Exponential Integral normalized correlation function."""
h = np.asarray(h, dtype=np.double)
return 0.5 * self.nu * exp_int(1.0 + 0.5 * self.nu, h**2)

Expand Down Expand Up @@ -484,9 +482,6 @@ def calc_integral_scale(self): # noqa: D102
)


ExpInt = Mueller


class Rational(CovModel):
r"""The rational quadratic covariance model.
Expand Down
8 changes: 4 additions & 4 deletions tests/test_covmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
Exponential,
Gaussian,
HyperSpherical,
Integral,
JBessel,
Linear,
Matern,
Mueller,
Rational,
Spherical,
Stable,
Expand Down Expand Up @@ -83,7 +83,7 @@ def setUp(self):
SuperSpherical,
JBessel,
TPLSimple,
Mueller,
Integral,
]
self.tpl_cov_models = [
TPLGaussian,
Expand Down Expand Up @@ -398,8 +398,8 @@ def test_rescale(self):
self.assertAlmostEqual(model1.integral_scale, model3.integral_scale)

def test_special_models(self):
# matern and mueller converge to gaussian
model0 = Mueller(rescale=0.5)
# Matern and Integral converge to gaussian
model0 = Integral(rescale=0.5)
model0.set_arg_bounds(nu=[0, 1001])
model0.nu = 1000
model1 = Matern()
Expand Down

0 comments on commit dfdea63

Please sign in to comment.