@@ -68,7 +68,7 @@ class Gaussian(CovModel):
6868
6969 def cor (self , h ):
7070 """Gaussian normalized correlation function."""
71- return np .exp (- (h ** 2 ))
71+ return np .exp (- (h ** 2 ))
7272
7373 def default_rescale (self ):
7474 """Gaussian rescaling factor to result in integral scale."""
@@ -147,7 +147,7 @@ def cor(self, h):
147147 def spectral_density (self , k ): # noqa: D102
148148 k = np .asarray (k , dtype = np .double )
149149 return (
150- self .len_rescaled ** self .dim
150+ self .len_rescaled ** self .dim
151151 * sps .gamma ((self .dim + 1 ) / 2.0 )
152152 / (np .pi * (1.0 + (k * self .len_rescaled ) ** 2 ))
153153 ** ((self .dim + 1 ) / 2.0 )
@@ -186,7 +186,7 @@ def spectral_rad_ppf(self, u):
186186 if self .dim == 2 :
187187 u_power = np .divide (
188188 1 ,
189- u ** 2 ,
189+ u ** 2 ,
190190 out = np .full_like (u , np .inf ),
191191 where = np .logical_not (np .isclose (u , 0 )),
192192 )
@@ -454,7 +454,7 @@ def default_opt_arg_bounds(self):
454454
455455 def cor (self , h ):
456456 """Rational normalized correlation function."""
457- return np .power (1 + h ** 2 / self .alpha , - self .alpha )
457+ return np .power (1 + h ** 2 / self .alpha , - self .alpha )
458458
459459 def calc_integral_scale (self ): # noqa: D102
460460 return (
@@ -499,7 +499,7 @@ class Cubic(CovModel):
499499 def cor (self , h ):
500500 """Spherical normalized correlation function."""
501501 h = np .minimum (np .abs (h , dtype = np .double ), 1.0 )
502- return 1.0 - 7 * h ** 2 + 8.75 * h ** 3 - 3.5 * h ** 5 + 0.75 * h ** 7
502+ return 1.0 - 7 * h ** 2 + 8.75 * h ** 3 - 3.5 * h ** 5 + 0.75 * h ** 7
503503
504504
505505class Linear (CovModel ):
@@ -578,7 +578,7 @@ def cor(self, h):
578578 h_l1 = h < 1.0
579579 h_low = h [h_l1 ]
580580 res [h_l1 ] = (
581- 2 / np .pi * (np .arccos (h_low ) - h_low * np .sqrt (1 - h_low ** 2 ))
581+ 2 / np .pi * (np .arccos (h_low ) - h_low * np .sqrt (1 - h_low ** 2 ))
582582 )
583583 return res
584584
@@ -619,7 +619,7 @@ class Spherical(CovModel):
619619 def cor (self , h ):
620620 """Spherical normalized correlation function."""
621621 h = np .minimum (np .abs (h , dtype = np .double ), 1.0 )
622- return 1.0 - 1.5 * h + 0.5 * h ** 3
622+ return 1.0 - 1.5 * h + 0.5 * h ** 3
623623
624624 def check_dim (self , dim ):
625625 """Spherical model is only valid in 1D, 2D and 3D."""
0 commit comments