Salome HOME
Updating copyright date information
[modules/adao.git] / doc / en / ref_observers_requirements.rst
index f0edbd247a65404dce11e33b13b0e6518caeb1da..e7347997cdeac5b2eb4df56737b9c6c7182edbb7 100644 (file)
@@ -1,5 +1,5 @@
 ..
-   Copyright (C) 2008-2015 EDF R&D
+   Copyright (C) 2008-2016 EDF R&D
 
    This file is part of SALOME ADAO module.
 
@@ -381,6 +381,19 @@ Print on standard output the variance of the current value of the variable.
     import numpy
     print info, numpy.nanvar(var[-1])
 
+.. index:: single: ValueL2Norm (Observer)
+
+Template **ValueL2Norm** :
+..........................
+
+Print on standard output the L2 norm of the current value of the variable.
+
+::
+
+    import numpy
+    v = numpy.matrix( numpy.ravel( var[-1] ) )
+    print info, float( numpy.linalg.norm(v) )
+
 .. index:: single: ValueRMS (Observer)
 
 Template **ValueRMS** :