Changeset 4d2436d in tol for tol_pkg


Ignore:
Timestamp:
Jan 5, 2010, 7:29:40 PM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
65c7ea3
Parents:
528d4c9
Message:

Nuevo parámetro de configuración Real _.radius.margin

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol_pkg/MulVarFunAprox/DesignC2.Monomial.Spheric.MeshFree.tol

    r528d4c9 r4d2436d  
    3030    VMatrix X,
    3131    Real maxNeighbour,
    32     Real stress.maxDistance_)
     32    Real stress.maxDistance_,
     33    Real radius.margin)
    3334  ////////////////////////////////////////////////////////////////////////////
    3435  {
    … …  
    4041      Real _.X.maxNeighbour = maxNeighbour+1;
    4142      Real stress.maxDistance = stress.maxDistance_;
     43      Real _.radius.margin = radius.margin;
    4244      MatQuery::@ANN.KDTree _.ann =
    4345        MatQuery::@ANN.KDTree::New(VMat2Mat(X));
    … …  
    5456    VMatrix _.Y := _.X;
    5557    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));
    5761    VMatrix _.Yj := Constant(_.H,1,_.X.maxNeighbour-1);
    5862    _.H
    … …  
    133137    Real _.Tb := 0
    134138  };
    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*/
    136153  ////////////////////////////////////////////////////////////////////////////
    137154    VMatrix match.evaluable(VMatrix X)
Note: See TracChangeset for help on using the changeset viewer.