Revision: 2757
Author:
anna.ata...@gmail.com
Date: Mon Feb 24 20:42:41 2014 UTC
Log: issue 133
Enhancement: committing some changes
http://code.google.com/p/ellipsoids/source/detail?r=2757
Added:
/branches/issue_133_aatanesyan/products/+gras/+ellapx/+smartdb/+test/+examples/example_getData.m
/branches/issue_133_aatanesyan/products/+gras/+ellapx/+smartdb/+test/+examples/example_plot.m
/branches/issue_133_aatanesyan/products/+gras/+ellapx/+smartdb/+test/+examples/example_plotExt.m
/branches/issue_133_aatanesyan/products/+gras/+ellapx/+smartdb/+test/+examples/example_plotInt.m
=======================================
--- /dev/null
+++
/branches/issue_133_aatanesyan/products/+gras/+ellapx/+smartdb/+test/+examples/example_getData.m
Mon Feb 24 20:42:41 2014 UTC
@@ -0,0 +1,21 @@
+% An example of GETDATA method's usage.
+nPoints=10;
+absTol=0.01;
+relTol=0.01;
+approxSchemaDescr='Internal';
+approxSchemaName='Internal';
+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;
+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);
+data = fromMatEllTube.getData();
=======================================
--- /dev/null
+++
/branches/issue_133_aatanesyan/products/+gras/+ellapx/+smartdb/+test/+examples/example_plot.m
Mon Feb 24 20:42:41 2014 UTC
@@ -0,0 +1,28 @@
+% An example of calculating ellipsoid tube object projection using project
+% function.
+nPoints=5;
+absTol=0.01;
+relTol=0.01;
+approxSchemaDescr=char.empty(1,0);
+approxSchemaName=char.empty(1,0);
+nDims=3;
+nTubes=1;
+lsGoodDirVec=[1;0;1];
+aMat=zeros(nDims,nPoints);
+timeVec=1:nPoints;
+sTime=nPoints;
+approxType=gras.ellapx.enums.EApproxType.Internal;
+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);
+projType = gras.ellapx.enums.EProjType.Static;
+projMat = [1 0; 0 1; 0 0]';
+p = @gras.ellapx.smartdb.test.examples.fGetProjMat;
+[ellTubeProjRel,indProj2OrigVec] = fromMatEllTube.project(projType,...
+ {projMat},p);
+plObj=smartdb.disp.RelationDataPlotter();
+ellTubeProjRel.plot(plObj);
=======================================
--- /dev/null
+++
/branches/issue_133_aatanesyan/products/+gras/+ellapx/+smartdb/+test/+examples/example_plotExt.m
Mon Feb 24 20:42:41 2014 UTC
@@ -0,0 +1,27 @@
+% An example of plotting the projection of the ellipsoid tube external
approximation
+% object using plotExt method.
+nPoints=5;
+absTol=0.01;
+relTol=0.01;
+approxSchemaDescr=char.empty(1,0);
+approxSchemaName=char.empty(1,0);
+nDims=3;
+nTubes=1;
+lsGoodDirVec=[1;0;1];
+aMat=zeros(nDims,nPoints);
+timeVec=1:nPoints;
+sTime=nPoints;
+approxType=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);
+projType = gras.ellapx.enums.EProjType.Static;
+projMat = [1 0; 0 1; 0 0]';
+p = @gras.ellapx.smartdb.test.examples.fGetProjMat;
+[ellTubeProjRel,indProj2OrigVec] = fromMatEllTube.project(projType,...
+ {projMat},p);
+ellTubeProjRel.plotExt();
=======================================
--- /dev/null
+++
/branches/issue_133_aatanesyan/products/+gras/+ellapx/+smartdb/+test/+examples/example_plotInt.m
Mon Feb 24 20:42:41 2014 UTC
@@ -0,0 +1,27 @@
+% An example of plotting the projection of the ellipsoid tube internal
approximation
+% object using plotInt method.
+nPoints=5;
+absTol=0.01;
+relTol=0.01;
+approxSchemaDescr=char.empty(1,0);
+approxSchemaName=char.empty(1,0);
+nDims=3;
+nTubes=1;
+lsGoodDirVec=[1;0;1];
+aMat=zeros(nDims,nPoints);
+timeVec=1:nPoints;
+sTime=nPoints;
+approxType=gras.ellapx.enums.EApproxType.Internal;
+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);
+projType = gras.ellapx.enums.EProjType.Static;
+projMat = [1 0; 0 1; 0 0]';
+p = @gras.ellapx.smartdb.test.examples.fGetProjMat;
+[ellTubeProjRel,indProj2OrigVec] = fromMatEllTube.project(projType,...
+ {projMat},p);
+ellTubeProjRel.plotInt();