KerMor  0.9
Model order reduction for nonlinear dynamical systems and nonlinear approximation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ATrajectoryData.m
Go to the documentation of this file.
1 namespace data{
2 
3 
4 /* (Autoinserted by mtoc++)
5  * This source code has been filtered by the mtoc++ executable,
6  * which generates code that can be processed by the doxygen documentation tool.
7  *
8  * On the other hand, it can neither be interpreted by MATLAB, nor can it be compiled with a C++ compiler.
9  * Except for the comments, the function bodies of your M-file functions are untouched.
10  * Consequently, the FILTER_SOURCE_FILES doxygen switch (default in our Doxyfile.template) will produce
11  * attached source files that are highly readable by humans.
12  *
13  * Additionally, links in the doxygen generated documentation to the source code of functions and class members refer to
14  * the correct locations in the source code browser.
15  * However, the line numbers most likely do not correspond to the line numbers in the original MATLAB source files.
16  */
17 
19  :public data.ABlockedData {
48  public:
49 
51  nt = source.getNumTrajectories;
52  this.clearTrajectories;
53  for nr=1:nt
54  [x, mu, inputidx, ctime] = source.getTrajectoryNr(nr);
55  this.addTrajectory(x, mu, inputidx, ctime);
56  end
57  }
68  function [doublet , dia , m , M ] = computeManifoldDiameters() {
69  }
77  function n = getNumBlocks() {
78  n = this.getNumTrajectories;
79  }
87  function B = getBlock(nr) {
88  B = this.getTrajectoryNr(nr);
89  }
90 
91 
92  function [n , m ] = size(dim) {
93  n = [this.getTrajectoryDoFs this.getTotalLength];
94  if nargin == 2
95  if dim > 0 && dim < 3
96  n = n(dim);
97  else
98  n = 0;
99  end
100  elseif nargout == 2
101  m = n(2);
102  n = n(1);
103  end
104  }
105 
106 
107  public: /* ( Abstract ) */
108 
109  virtual function [colvec<double>x , doublectime ] = getTrajectory(colvec<double> mu,integer inputidx) = 0;
120  virtual function n = getNumTrajectories() = 0;
128  virtual function l = getTotalLength() = 0;
136  virtual function [colvec<double>x , colvec<double>mu , integerinputidx , doublectime ] = getTrajectoryNr(nr) = 0;
145  virtual function addTrajectory(colvec<double> x,colvec<double> mu,integer inputidx,double ctime) = 0;
157  virtual function clearTrajectories() = 0;
164  virtual function [colvec<double>x , X ] = getBoundingBox() = 0;
172  virtual function [d , mud ] = getTrajectoryDoFs() = 0;
180 };
181 }
182 
183 
184 
function [ n , m ] = size(dim)
virtual function [ d , mud ] = getTrajectoryDoFs()
Returns the degrees of freedom for the trajectories and parameter size.
virtual function [ colvec< double > x , double ctime ] = getTrajectory(colvec< double > mu,integer inputidx)
Gets the traejctory for the given parameter and input index.
function B = getBlock(nr)
virtual function clearTrajectories()
Clears all stored trajectory data.
ABlockedData: General abstract class that allows computation of and SVD on a large matrix that is sep...
Definition: ABlockedData.m:18
function [ double t , dia , m , M ] = computeManifoldDiameters()
virtual function addTrajectory(colvec< double > x,colvec< double > mu,integer inputidx,double ctime)
Adds a trajectory to the ModelData instance.
An integer value.
function transferFrom(data.ATrajectoryData source)
Transfers the data from one ATrajectoryData instance to another.
virtual function n = getNumTrajectories()
Gets the total number of trajectories.
virtual function [ colvec< double > x , X ] = getBoundingBox()
Gets the bounding box of the state space of all trajectories.
virtual function [ colvec< double > x , colvec< double > mu , integer inputidx , double ctime ] = getTrajectoryNr(nr)
Gets the trajectory with the number nr.
function n = getNumBlocks()
% data.ABlockedData implementations
Data class that contains a model's large data, including subspace matrices, trajectories and approxim...
virtual function l = getTotalLength()
Length of the stored trajectories.