Changeset 2fb8329 in tol for tol_pkg/MulVarFunAprox/DesignC2.tol
- Timestamp:
- Dec 9, 2009, 8:59:51 AM (17 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- dea29fb
- Parents:
- 9776d22
- File:
-
- 1 edited
-
tol_pkg/MulVarFunAprox/DesignC2.tol (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol_pkg/MulVarFunAprox/DesignC2.tol
r9776d22 r2fb8329 4 4 // PURPOSE: Defines Class @DesignC2 5 5 ////////////////////////////////////////////////////////////////////////////// 6 6 7 7 8 ////////////////////////////////////////////////////////////////////////////// … … 91 92 92 93 ////////////////////////////////////////////////////////////////////////////// 93 VMatrix build.obs (VMatrix X, VMatrix X.h)94 VMatrix build.obs.eval(VMatrix X, VMatrix X.h, FunRn2R::@BaseC2.Eval eval) 94 95 ////////////////////////////////////////////////////////////////////////////// 95 96 { … … 109 110 WriteLn("TRACE "+_MID+"2"); 110 111 Set X.weight = get.X.weight(X.dif); 111 WriteLn("TRACE "+_MID+"2");112 FunRn2R::@BaseC2 b = get.base(0);113 112 WriteLn("TRACE "+_MID+"2"); 114 113 Matrix QX.triplet = Group("ConcatRows", For(1,_.X.maxNeighbour,Matrix(Real i) … … 120 119 VMatrix Xdif.i = SubRow(X.dif[i],sel.rows); 121 120 VMatrix X.j.i = SubRow(X.j,sel.rows); 122 Real b::upgrade.cache(Xdif.i,0);121 Real eval::upgrade.cache(Xdif.i); 123 122 Group("ConcatRows", For(1,_.K,Matrix(Real k) 124 123 { 125 VMatrix pk = b::function.v(k,Xdif.i);124 VMatrix pk = eval::evaluate.v(k,Xdif.i); 126 125 VMatrix qk = wi$*pk; 127 126 VMat2Mat(X.j.i | (X.hiK+k) | qk) … … 130 129 Pack(Convert(Triplet(QX.triplet, m, _.N),"Cholmod.R.Sparse")) 131 130 })}; 131 132 ////////////////////////////////////////////////////////////////////////////// 133 VMatrix build.obs(VMatrix X, VMatrix X.h) 134 ////////////////////////////////////////////////////////////////////////////// 135 { 136 FunRn2R::@BaseC2.Eval.Function eval = 137 FunRn2R::@BaseC2.Eval.Function::New(get.base(0)); 138 build.obs.eval(X,X.h,eval) 139 }; 140 ////////////////////////////////////////////////////////////////////////////// 141 VMatrix build.obs.partial.derivative.1(VMatrix X, VMatrix X.h, Real s) 142 ////////////////////////////////////////////////////////////////////////////// 143 { 144 FunRn2R::@BaseC2.Eval.Partial.Derivative.1 eval = 145 FunRn2R::@BaseC2.Eval.Partial.Derivative.1::New(get.base(0), s); 146 build.obs.eval(X,X.h,eval) 147 }; 148 ////////////////////////////////////////////////////////////////////////////// 149 VMatrix build.obs.partial.derivative.2(VMatrix X, VMatrix X.h, 150 Real s1, Real s2) 151 ////////////////////////////////////////////////////////////////////////////// 152 { 153 FunRn2R::@BaseC2.Eval.Partial.Derivative.2 eval = 154 FunRn2R::@BaseC2.Eval.Partial.Derivative.2::New(get.base(0), s1, s2); 155 build.obs.eval(X,X.h,eval) 156 }; 157 ////////////////////////////////////////////////////////////////////////////// 158 VMatrix build.obs.partial.integrate.1(VMatrix X, VMatrix X.h, Real s) 159 ////////////////////////////////////////////////////////////////////////////// 160 { 161 FunRn2R::@BaseC2.Eval.Partial.Integrate.1 eval = 162 FunRn2R::@BaseC2.Eval.Partial.Integrate.1::New(get.base(0), s); 163 build.obs.eval(X,X.h,eval) 164 }; 132 165 ////////////////////////////////////////////////////////////////////////////// 133 166 VMatrix build.border.prior(Real void)
Note: See TracChangeset
for help on using the changeset viewer.
