Changeset 3f198cc in tol for tol_pkg/MulVarFunAprox/DesignC2.tol
- Timestamp:
- Dec 23, 2009, 2:25:56 PM (17 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- f389530
- Parents:
- 38052b37
- File:
-
- 1 edited
-
tol_pkg/MulVarFunAprox/DesignC2.tol (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol_pkg/MulVarFunAprox/DesignC2.tol
r38052b37 r3f198cc 75 75 VMatrix closest.reference.index(VMatrix X); 76 76 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); 79 79 80 80 ////////////////////////////////////////////////////////////////////////////// … … 118 118 VMatrix X.j=DifEq(1/(1-B),Rand(m,1,1,1)); 119 119 WriteLn("TRACE "+_MID+"3"); 120 Set X.h_ = For(1,_.X.maxNeighbour,VMatrix(Real i) { SubCol(X.h,[[i]]) }); 120 121 Set X.dif = For(1,_.X.maxNeighbour,VMatrix(Real i) 121 122 { 122 Set X.h.i = VCol2Set( SubCol(X.h,[[i]]));123 Set X.h.i = VCol2Set(X.h_[i]); 123 124 X - SubRow(_.Y,X.h.i) 124 125 }); 125 126 WriteLn("TRACE "+_MID+"4"); 126 Set X.weight = get.X.weight(X.dif );127 Set X.weight = get.X.weight(X.dif, X.h_); 127 128 WriteLn("TRACE "+_MID+"5"); 128 129 VMatrix YnCum = DifEq(1/(1-B),_.Yn); … … 169 170 VMatrix X.j=DifEq(1/(1-B),Rand(m,1,1,1)); 170 171 WriteLn("TRACE "+_MID+"4"); 172 Set X.h_ = For(1,_.X.maxNeighbour,VMatrix(Real i) { SubCol(X.h,[[i]]) }); 171 173 Set X.dif = For(1,_.X.maxNeighbour,VMatrix(Real i) 172 174 { 173 Set X.h.i = VCol2Set( SubCol(X.h,[[i]]));175 Set X.h.i = VCol2Set(X.h_[i]); 174 176 X - SubRow(_.Y,X.h.i) 175 177 }); 176 178 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); 179 181 WriteLn("TRACE "+_MID+"6"); 180 182 VMatrix YnCum = DifEq(1/(1-B),_.Yn);
Note: See TracChangeset
for help on using the changeset viewer.
