Changeset 8d33ed4f in tol


Ignore:
Timestamp:
May 11, 2010, 4:22:49 PM (16 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
0c0e3bc
Parents:
59d154b
Message:

explaining eqConstrainedStdGaussian

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@2153 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol_pkg/BysVecLinReg/tools.tol

    r59d154b r8d33ed4f  
    3333
    3434//////////////////////////////////////////////////////////////////////////////
    35 //Draws an standard multinormal x with equality constraining linear equations
     35//Draws an standard multinormal x with full rank constraining linear
     36//equalities
    3637//
    37 //  x ~ N(0,I)
    38 //  C*x = c
    39 // 
     38//  e ~ N(0,I)
     39//  C*e = c
     40//
     41// where
     42//  e <: R^n
     43//  C <: R^rxn, r<n, rank(C)=r
     44//  c <: R^r
     45//
     46//ALGORITHM:
     47//
     48// 1. Get pivoting order p of columns of diagonal of C*C'
     49// 3. Select p.1 as gaussian components of x as (n-r) last pivoted columns
     50// 2. Select p.2 as dependent components of x as first r pivoted columns
     51// 4. Draw e.1 as standard independent normal
     52// 5. Rewrite constraining linear equalities conditioned to e.1
     53//     
     54//      C = (C.1 C.2)
     55//      e' = (e.1' e.2')
     56//      C.1 * e.1 + C.2 * e.2 = c
     57//      c.2 = c - C.1
     58//      C.2 * e.2 = c.2
     59//
     60// 6. Solve linear system to get e.2
     61// 7. Merge e.1 and e.2 following the selected pivoting order to get the
     62//    wanted draw of e
     63//
    4064VMatrix eqConstrainedStdGaussian(VMatrix C, VMatrix c)
    4165//////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.