Changeset 6d9639b in tol


Ignore:
Timestamp:
May 12, 2010, 3:11:38 PM (16 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
f1fd2aa
Parents:
62815b1
Message:

Prefijando métodos con BysVecLinReg:: para poder hacer herencia externa

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol_pkg/BysVecLinReg/tools.tol

    r62815b1 r6d9639b  
    22//////////////////////////////////////////////////////////////////////////////
    33// FILE   : tools.tol
    4 // PURPOSE: Defines Class BysVecLinReg::@Multivariate
     4// PURPOSE: Defines generic functions used in BysVecLinReg
    55//////////////////////////////////////////////////////////////////////////////
    66
    … …  
    3030//////////////////////////////////////////////////////////////////////////////
    3131{
    32   MatDat(VMat2Triplet(vmatrix2vec(Triplet([[ [[i,j,1]] ]],r,c))),1,1)
     32  MatDat(VMat2Triplet(BysVecLinReg::vmatrix2vec(Triplet([[ [[i,j,1]] ]],r,c))),1,1)
    3333};
    3434
    … …  
    7272  VMatrix C2 = Constant(1,r,1) * (C $* C);
    7373  //Builds pivoting order of columns of diagonal of C*C'
    74   Matrix p = ColumnPivots(VMat2Mat(C2));
     74  Matrix piv = ColumnPivots(VMat2Mat(C2));
    7575  //Select p.1 as gaussian components of x as (n-r) last pivoted columns
    76   Set p.1 = MatSet(Sub(p,1,r+1,1,n-r))[1];
     76  Set p.1 = MatSet(Sub(piv,1,r+1,1,n-r))[1];
    7777  //Select p.2 as dependent components of x as first r pivoted columns
    78   Set p.2 = MatSet(Sub(p,1,1,  1,r  ))[1];
     78  Set p.2 = MatSet(Sub(piv,1,1,  1,r  ))[1];
    7979  //Draw e.1 as standard independent normal
    8080  VMatrix e.1 = Gaussian(n-r,1,0,1);
Note: See TracChangeset for help on using the changeset viewer.