- Timestamp:
- Jan 5, 2010, 7:29:40 PM (17 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 65c7ea3
- Parents:
- 528d4c9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tol_pkg/MulVarFunAprox/DesignC2.Monomial.Spheric.MeshFree.tol
r528d4c9 r4d2436d 30 30 VMatrix X, 31 31 Real maxNeighbour, 32 Real stress.maxDistance_) 32 Real stress.maxDistance_, 33 Real radius.margin) 33 34 //////////////////////////////////////////////////////////////////////////// 34 35 { … … 40 41 Real _.X.maxNeighbour = maxNeighbour+1; 41 42 Real stress.maxDistance = stress.maxDistance_; 43 Real _.radius.margin = radius.margin; 42 44 MatQuery::@ANN.KDTree _.ann = 43 45 MatQuery::@ANN.KDTree::New(VMat2Mat(X)); … … 54 56 VMatrix _.Y := _.X; 55 57 Real _.H := VRows(_.Y); 56 VMatrix _.R := Mat2VMat(Sqrt(SubCol(_.ngbh::_.distance2,[[_.X.maxNeighbour]]))); 58 VMatrix _.R := 59 Mat2VMat(Sqrt(SubCol(_.ngbh::_.distance2,[[_.X.maxNeighbour]])))* 60 (1+Min(0,_.radius.margin)); 57 61 VMatrix _.Yj := Constant(_.H,1,_.X.maxNeighbour-1); 58 62 _.H … … 133 137 Real _.Tb := 0 134 138 }; 135 139 /* 140 ////////////////////////////////////////////////////////////////////////////// 141 Real build.base(Real void) 142 ////////////////////////////////////////////////////////////////////////////// 143 { 144 Text _MID = "[@DesignC2.Monomial::build.base] "; 145 VMatrix _.Yn := 146 Floor(Min(Rand(_.H,1,_.K0,_.K0),Max(_.Ym/min.contrast.surface,_.Ym*0+1))); 147 148 Set Append(_.base, [[base.feasible]]); 149 Real _.base.sel := Card(_.base); 150 _.K 151 }; 152 */ 136 153 //////////////////////////////////////////////////////////////////////////// 137 154 VMatrix match.evaluable(VMatrix X)
Note: See TracChangeset
for help on using the changeset viewer.
