(Arne Babenhauserheide)
2014-12-02: resort to keep variables with the same dimensions together. resort to keep variables with the same dimensions together.
diff --git a/examples/ensemble-estimation.w b/examples/ensemble-estimation.w --- a/examples/ensemble-estimation.w +++ b/examples/ensemble-estimation.w @@ -78,6 +78,9 @@ define* : write-multiple . x ;; Start with the simple case: One variable and independent observations (R diagonal) ;; First define a truth define x^true '(0.5 0.6 0.7 0.1) +;; And add an initial guess of the parameters +define x^b '(1 1 1 1) ; initial guess +define P : make-covariance-matrix-from-standard-deviations '(0.5 0.1 0.3 0.1) ;; Then generate observations define y⁰-num 1000 @@ -119,9 +122,6 @@ define R : make-covariance-matrix-from-s ;; The actual observations ;; define y⁰ : list-ec (: i y⁰-num) : + y⁰-mean : * y⁰-std : random:normal -;; And add an initial guess of the parameters -define x^b '(1 1 1 1) ; initial guess -define P : make-covariance-matrix-from-standard-deviations '(0.5 0.1 0.3 0.1) define : EnSRT H x P y R y-pos N . "Observation function H, parameters x,