[ellipsoids] r2760 committed - issue 133...

1 view
Skip to first unread message

ellip...@googlecode.com

unread,
Mar 4, 2014, 9:46:32 PM3/4/14
to ellipsoids-change...@googlegroups.com
Revision: 2760
Author: anna.ata...@gmail.com
Date: Wed Mar 5 02:46:18 2014 UTC
Log: issue 133
Enhancement: forgotten a few files
http://code.google.com/p/ellipsoids/source/detail?r=2760

Added:

/branches/issue_133_aatanesyan/products/+gras/+ellapx/+smartdb/+test/+examples/example_fromQArrays2.m

/branches/issue_133_aatanesyan/products/+gras/+ellapx/+smartdb/+test/+examples/example_fromQMArrays2.m

/branches/issue_133_aatanesyan/products/+gras/+ellapx/+smartdb/+test/+examples/example_project.m

=======================================
--- /dev/null
+++
/branches/issue_133_aatanesyan/products/+gras/+ellapx/+smartdb/+test/+examples/example_fromQArrays2.m
Wed Mar 5 02:46:18 2014 UTC
@@ -0,0 +1,23 @@
+% An example of creating nTubes ellipsoid tube objects using fromQArrays
+% function with different types of approximation.
+nPoints=10;
+absTol=0.01;
+relTol=0.01;
+approxSchemaDescr={'Internal'; 'External'; 'External'};
+approxSchemaName={'Internal'; 'External'; 'External'};
+nDims=3;
+nTubes=3;
+lsGoodDirVec=[1;0;1];
+aMat=zeros(nDims,nPoints);
+timeVec=(1/nPoints):(1/nPoints):1;
+sTime=timeVec(randi(nPoints,1));
+approxType=[gras.ellapx.enums.EApproxType.Internal,...
+ gras.ellapx.enums.EApproxType.External,...
+ gras.ellapx.enums.EApproxType.External]';
+qArrayList=repmat({repmat(diag([1 2 3]),[1,1,nPoints])},...
+ 1,nTubes);
+ltGoodDirArray=repmat(lsGoodDirVec,[1,nTubes,nPoints]);
+fromMatEllTube=gras.ellapx.smartdb.rels.EllTube.fromQArrays(...
+ qArrayList, aMat, timeVec,...
+ ltGoodDirArray, sTime, approxType, approxSchemaName,...
+ approxSchemaDescr, absTol, relTol);
=======================================
--- /dev/null
+++
/branches/issue_133_aatanesyan/products/+gras/+ellapx/+smartdb/+test/+examples/example_fromQMArrays2.m
Wed Mar 5 02:46:18 2014 UTC
@@ -0,0 +1,25 @@
+% An example of creating nTubes ellipsoid tube objects using fromQMArrays
+% function with different types of approximation.
+nPoints=10;
+absTol=0.01;
+relTol=0.01;
+approxSchemaDescr={'Internal'; 'External'; 'External'};
+approxSchemaName={'Internal'; 'External'; 'External'};
+nDims=3;
+nTubes=3;
+lsGoodDirVec=[1;0;1];
+aMat=zeros(nDims,nPoints);
+timeVec=(1/nPoints):(1/nPoints):1;
+sTime=timeVec(randi(nPoints,1));
+approxType=[gras.ellapx.enums.EApproxType.Internal,...
+ gras.ellapx.enums.EApproxType.External,...
+ gras.ellapx.enums.EApproxType.External]';
+mArrayList=repmat({repmat(diag([0.1 0.2 0.3]),[1,1,nPoints])},...
+ 1,nTubes);
+qArrayList=repmat({repmat(diag([1 2 3]),[1,1,nPoints])},...
+ 1,nTubes);
+ltGoodDirArray=repmat(lsGoodDirVec,[1,nTubes,nPoints]);
+fromMatMEllTube=gras.ellapx.smartdb.rels.EllTube.fromQMArrays(...
+ qArrayList, aMat, mArrayList, timeVec,...
+ ltGoodDirArray, sTime, approxType, approxSchemaName,...
+ approxSchemaDescr, absTol, relTol);
=======================================
--- /dev/null
+++
/branches/issue_133_aatanesyan/products/+gras/+ellapx/+smartdb/+test/+examples/example_project.m
Wed Mar 5 02:46:18 2014 UTC
@@ -0,0 +1,9 @@
+% An example of calculating ellipsoid tube union projection using PROJECT
+% method. For unions the type of projection can only be Static.
+unionEllTube = ...
+ gras.ellapx.smartdb.test.examples.getUnion();
+projType = gras.ellapx.enums.EProjType.Static;
+projMat = [1 0; 0 1]';
+p = @gras.ellapx.smartdb.test.examples.fGetProjMat;
+[ellTubeProjRel,indProj2OrigVec] = unionEllTube.project(projType,...
+ {projMat},p);
Reply all
Reply to author
Forward
0 new messages