From: Jean-Philippe ARGAUD Date: Thu, 30 Apr 2020 18:47:53 +0000 (+0200) Subject: Minor documentation corrections X-Git-Tag: V9_5_0b~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=afe68a5fb4df0e83630373119ab4c609580bde0c;p=modules%2Fadao.git Minor documentation corrections --- diff --git a/doc/en/scripts/simple_3DVAR.py b/doc/en/scripts/simple_3DVAR.py index 9383adb..cf9a3da 100644 --- a/doc/en/scripts/simple_3DVAR.py +++ b/doc/en/scripts/simple_3DVAR.py @@ -12,14 +12,17 @@ def QuadFunction( coefficients ): y_points.append( a*x*x + b*x + c ) return array(y_points) # +Xb = array([1., 1., 1.]) +Yobs = array([57, 2, 3, 17, 192]) +# print("Iterative resolution of the calibration problem") print("-----------------------.-----------------------") print("") from adao import adaoBuilder case = adaoBuilder.New('') -case.setBackground( Vector = array([1., 1., 1.]), Stored=True ) +case.setBackground( Vector = Xb, Stored=True ) case.setBackgroundError( ScalarSparseMatrix = 1.e6 ) -case.setObservation( Vector=array([57, 2, 3, 17, 192]), Stored=True ) +case.setObservation( Vector = Yobs, Stored=True ) case.setObservationError( ScalarSparseMatrix = 1. ) case.setObservationOperator( OneFunction = QuadFunction ) case.setAlgorithmParameters( diff --git a/doc/fr/scripts/simple_3DVAR.py b/doc/fr/scripts/simple_3DVAR.py index 553f9d3..9fbb993 100644 --- a/doc/fr/scripts/simple_3DVAR.py +++ b/doc/fr/scripts/simple_3DVAR.py @@ -12,14 +12,17 @@ def QuadFunction( coefficients ): y_points.append( a*x*x + b*x + c ) return array(y_points) # +Xb = array([1., 1., 1.]) +Yobs = array([57, 2, 3, 17, 192]) +# print("Résolution itérative du problème de calibration") print("-----------------------.-----------------------") print("") from adao import adaoBuilder case = adaoBuilder.New('') -case.setBackground( Vector = array([1., 1., 1.]), Stored=True ) +case.setBackground( Vector = Xb, Stored=True ) case.setBackgroundError( ScalarSparseMatrix = 1.e6 ) -case.setObservation( Vector=array([57, 2, 3, 17, 192]), Stored=True ) +case.setObservation( Vector = Yobs, Stored=True ) case.setObservationError( ScalarSparseMatrix = 1. ) case.setObservationOperator( OneFunction = QuadFunction ) case.setAlgorithmParameters(