Ignore:
Timestamp:
Dec 23, 2009, 2:25:56 PM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
f389530
Parents:
38052b37
Message:

Preparando para permitir radio variante en los entornos esféricos

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol_pkg/MulVarFunAprox/DesignC2.tol

    r38052b37 r3f198cc  
    7575  VMatrix closest.reference.index(VMatrix X);
    7676  VMatrix match.evaluable(VMatrix X);
    77   Set get.X.weight(Set X.dif);
    78   Set get.X.weight.partial.derivative.1(Set X.dif, Real s);
     77  Set get.X.weight(Set X.dif, Set X.h);
     78  Set get.X.weight.partial.derivative.1(Set X.dif, Set X.h, Real s);
    7979
    8080  //////////////////////////////////////////////////////////////////////////////
    … …  
    118118    VMatrix X.j=DifEq(1/(1-B),Rand(m,1,1,1));
    119119    WriteLn("TRACE "+_MID+"3");
     120    Set X.h_ = For(1,_.X.maxNeighbour,VMatrix(Real i) { SubCol(X.h,[[i]]) });
    120121    Set X.dif = For(1,_.X.maxNeighbour,VMatrix(Real i)
    121122    {
    122       Set X.h.i = VCol2Set(SubCol(X.h,[[i]]));
     123      Set X.h.i = VCol2Set(X.h_[i]);
    123124      X - SubRow(_.Y,X.h.i)
    124125    });
    125126    WriteLn("TRACE "+_MID+"4");
    126     Set X.weight = get.X.weight(X.dif);
     127    Set X.weight = get.X.weight(X.dif, X.h_);
    127128    WriteLn("TRACE "+_MID+"5");
    128129    VMatrix YnCum = DifEq(1/(1-B),_.Yn);
    … …  
    169170    VMatrix X.j=DifEq(1/(1-B),Rand(m,1,1,1));
    170171    WriteLn("TRACE "+_MID+"4");
     172    Set X.h_ = For(1,_.X.maxNeighbour,VMatrix(Real i) { SubCol(X.h,[[i]]) });
    171173    Set X.dif = For(1,_.X.maxNeighbour,VMatrix(Real i)
    172174    {
    173       Set X.h.i = VCol2Set(SubCol(X.h,[[i]]));
     175      Set X.h.i = VCol2Set(X.h_[i]);
    174176      X - SubRow(_.Y,X.h.i)
    175177    });
    176178    WriteLn("TRACE "+_MID+"5");
    177     Set X.weight = get.X.weight(X.dif);
    178     Set X.weight.der = get.X.weight.partial.derivative.1(X.dif,s);
     179    Set X.weight = get.X.weight(X.dif, X.h_);
     180    Set X.weight.der = get.X.weight.partial.derivative.1(X.dif,X.h_,s);
    179181    WriteLn("TRACE "+_MID+"6");
    180182    VMatrix YnCum = DifEq(1/(1-B),_.Yn);
Note: See TracChangeset for help on using the changeset viewer.