@@ -49,7 +49,7 @@ def __init__(self, offset: float = 0.0, sigma=0.0, seed: int = 126, fun_control=
4949 self .fun_control ["seed" ] = self .seed
5050
5151 def __repr__ (self ) -> str :
52- return f"analytical (offset={ self .offset } , sigma={ self .sigma } , seed={ self .seed } )"
52+ return f"Analytical (offset={ self .offset } , sigma={ self .sigma } , seed={ self .seed } )"
5353
5454 def _prepare_input_data (self , X , fun_control ):
5555 if fun_control is not None :
@@ -67,17 +67,17 @@ def _add_noise(self, y: List[float]) -> np.ndarray:
6767 containing the noisy data.
6868
6969 Args:
70- self (analytical ): analytical class object.
70+ self (Analytical ): Analytical class object.
7171 y (List[float]): Input data.
7272
7373 Returns:
7474 np.ndarray: Noisy data.
7575
7676 Examples:
77- >>> from spotpython.fun.objectivefunctions import analytical
77+ >>> from spotpython.fun.objectivefunctions import Analytical
7878 import numpy as np
7979 y = np.array([1, 2, 3, 4, 5])
80- fun = analytical (sigma=1.0, seed=123)
80+ fun = Analytical (sigma=1.0, seed=123)
8181 fun._add_noise(y)
8282 array([0.01087865, 1.63221335, 4.28792526, 4.19397442, 5.9202309 ])
8383
@@ -117,10 +117,10 @@ def fun_branin_factor(self, X: np.ndarray, fun_control: Optional[Dict] = None) -
117117 np.ndarray: A 1D numpy array with shape (n,) containing the calculated values.
118118
119119 Examples:
120- >>> from spotpython.fun.objectivefunctions import analytical
120+ >>> from spotpython.fun.objectivefunctions import Analytical
121121 import numpy as np
122122 X = np.array([[0, 0, 0], [0, 0, 1], [0, 0, 2]])
123- fun = analytical ()
123+ fun = Analytical ()
124124 fun.fun_branin_factor(X)
125125 array([55.60211264, 65.60211264, 45.60211264])
126126 """
@@ -230,10 +230,10 @@ def fun_sphere(self, X: np.ndarray, fun_control: Optional[Dict] = None) -> np.nd
230230 np.ndarray: A 1D numpy array with shape (n,) containing the calculated values.
231231
232232 Examples:
233- >>> from spotpython.fun.objectivefunctions import analytical
233+ >>> from spotpython.fun.objectivefunctions import Analytical
234234 >>> import numpy as np
235235 >>> X = np.array([[1, 2, 3], [4, 5, 6]])
236- >>> fun = analytical ()
236+ >>> fun = Analytical ()
237237 >>> fun.fun_sphere(X)
238238 array([14., 77.])
239239
@@ -256,10 +256,10 @@ def fun_cubed(self, X: np.ndarray, fun_control: Optional[Dict] = None) -> np.nda
256256 np.ndarray: A 1D numpy array with shape (n,) containing the calculated values.
257257
258258 Examples:
259- >>> from spotpython.fun.objectivefunctions import analytical
259+ >>> from spotpython.fun.objectivefunctions import Analytical
260260 >>> import numpy as np
261261 >>> X = np.array([[1, 2, 3], [4, 5, 6], [-1, -1, -1]])
262- >>> fun = analytical ()
262+ >>> fun = Analytical ()
263263 >>> fun.fun_cubed(X)
264264 array([ 36., 405., -3.])
265265 """
@@ -283,10 +283,10 @@ def fun_forrester(self, X: np.ndarray, fun_control: Optional[Dict] = None) -> np
283283 np.ndarray: A 1D numpy array with shape (n,) containing the calculated values.
284284
285285 Examples:
286- >>> from spotpython.fun.objectivefunctions import analytical
286+ >>> from spotpython.fun.objectivefunctions import Analytical
287287 >>> import numpy as np
288288 >>> X = np.array([[1, 2, 3], [4, 5, 6]])
289- >>> fun = analytical ()
289+ >>> fun = Analytical ()
290290 >>> fun.fun_forrester(X)
291291 array([ 0. , 11.99999999])
292292 """
@@ -324,13 +324,13 @@ def fun_branin(self, X: np.ndarray, fun_control: Optional[Dict] = None) -> np.nd
324324 np.ndarray: A 1D numpy array with shape (n,) containing the calculated values.
325325
326326 Examples:
327- >>> from spotpython.fun.objectivefunctions import analytical
327+ >>> from spotpython.fun.objectivefunctions import Analytical
328328 pi = np.pi
329329 X = np.array([[0,0],
330330 [-pi, 12.275],
331331 [pi, 2.275],
332332 [9.42478, 2.475]])
333- fun = analytical ()
333+ fun = Analytical ()
334334 fun.fun_branin(X)
335335 array([55.60211264, 0.39788736, 0.39788736, 0.39788736])
336336
@@ -362,10 +362,10 @@ def fun_branin_modified(self, X: np.ndarray, fun_control: Optional[Dict] = None)
362362 np.ndarray: A 1D numpy array with shape (n,) containing the calculated values.
363363
364364 Examples:
365- >>> from spotpython.fun.objectivefunctions import analytical
365+ >>> from spotpython.fun.objectivefunctions import Analytical
366366 >>> import numpy as np
367367 >>> X = np.array([[1, 2, 3], [4, 5, 6]])
368- >>> fun = analytical ()
368+ >>> fun = Analytical ()
369369 >>> fun.fun_branin_modified(X)
370370 array([ 0. , 11.99999999])
371371
@@ -398,10 +398,10 @@ def fun_sin_cos(self, X, fun_control=None):
398398 (np.ndarray): A 1D numpy array with shape (n,) containing the calculated values.
399399
400400 Examples:
401- >>> from spotpython.fun.objectivefunctions import analytical
401+ >>> from spotpython.fun.objectivefunctions import Analytical
402402 >>> import numpy as np
403403 >>> X = np.array([[1, 2, 3], [4, 5, 6]])
404- >>> fun = analytical ()
404+ >>> fun = Analytical ()
405405 >>> fun.fun_sin_cos(X)
406406 array([-1. , -0.41614684])
407407 """
@@ -425,10 +425,10 @@ def fun_runge(self, X: np.ndarray, fun_control: Optional[Dict] = None) -> np.nda
425425 np.ndarray: A 1D numpy array with shape (n,) containing the calculated values.
426426
427427 Examples:
428- >>> from spotpython.fun.objectivefunctions import analytical
428+ >>> from spotpython.fun.objectivefunctions import Analytical
429429 >>> import numpy as np
430430 >>> X = np.array([[1, 2, 3], [4, 5, 6]])
431- >>> fun = analytical ()
431+ >>> fun = Analytical ()
432432 >>> fun.fun_runge(X)
433433 array([0.0625 , 0.015625 , 0.00390625])
434434
@@ -493,10 +493,10 @@ def fun_wingwt_to_nat(self, X: np.ndarray, fun_control: Optional[Dict] = None) -
493493 A 1D numpy array with shape (n,) containing the calculated wing weight values.
494494
495495 Examples:
496- >>> from spotpython.fun.objectivefunctions import analytical
496+ >>> from spotpython.fun.objectivefunctions import Analytical
497497 >>> import numpy as np
498498 >>> X = np.array([np.zeros(10), np.ones(10)])
499- >>> fun = analytical ()
499+ >>> fun = Analytical ()
500500 >>> fun.fun_wingwt(X)
501501 array([158.28245046, 409.33182691])
502502 """
@@ -575,10 +575,10 @@ def fun_wingwt(self, X: np.ndarray, fun_control: Optional[Dict] = None) -> np.nd
575575 A 1D numpy array with shape (n,) containing the calculated wing weight values.
576576
577577 Examples:
578- >>> from spotpython.fun.objectivefunctions import analytical
578+ >>> from spotpython.fun.objectivefunctions import Analytical
579579 >>> import numpy as np
580580 >>> X = np.array([np.zeros(10), np.ones(10)])
581- >>> fun = analytical ()
581+ >>> fun = Analytical ()
582582 >>> fun.fun_wingwt(X)
583583 array([158.28245046, 409.33182691])
584584 """
@@ -612,10 +612,10 @@ def fun_xsin(self, X: np.ndarray, fun_control: Optional[Dict] = None) -> np.ndar
612612 np.ndarray: A 1D numpy array with shape (n,) containing the calculated values.
613613
614614 Examples:
615- >>> from spotpython.fun.objectivefunctions import analytical
615+ >>> from spotpython.fun.objectivefunctions import Analytical
616616 >>> import numpy as np
617617 >>> X = np.array([[1, 2, 3, 4, 5, 6, 7, 8, 9], [4, 5, 6, 7, 8, 9, 10, 11, 12]])
618- >>> fun = analytical ()
618+ >>> fun = Analytical ()
619619 >>> fun.fun_xsin(X)
620620 array([0.84147098, 0.90929743, 0.14112001])
621621
@@ -634,10 +634,10 @@ def fun_rosen(self, X: np.ndarray, fun_control: Optional[Dict] = None) -> np.nda
634634 np.ndarray: A 1D numpy array with shape (n,) containing the calculated values.
635635
636636 Examples:
637- >>> from spotpython.fun.objectivefunctions import analytical
637+ >>> from spotpython.fun.objectivefunctions import Analytical
638638 >>> import numpy as np
639639 >>> X = np.array([[1, 2,], [4, 5 ]])
640- >>> fun = analytical ()
640+ >>> fun = Analytical ()
641641 >>> fun.fun_rosen(X)
642642 array([24, 0])
643643 """
@@ -660,10 +660,10 @@ def fun_random_error(self, X: np.ndarray, fun_control: Optional[Dict] = None) ->
660660 np.ndarray: A 1D numpy array with shape (n,) containing the calculated values.
661661
662662 Examples:
663- >>> from spotpython.fun.objectivefunctions import analytical
663+ >>> from spotpython.fun.objectivefunctions import Analytical
664664 >>> import numpy as np
665665 >>> X = np.array([[1, 2,], [4, 5 ]])
666- >>> fun = analytical ()
666+ >>> fun = Analytical ()
667667 >>> fun.fun_random_error(X)
668668 array([24, 0])
669669
0 commit comments