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
data.MemoryTrajectoryData Class Reference

Data class that contains a model's large data, purely in system memory. More...

Detailed Description

Data class that contains a model's large data, purely in system memory.

Author
Daniel Wirtz
Date
2011-08-03
New in 0.5:
(Daniel Wirtz, 2011-08-03) Added this class (new organization for model data).
Change in 0.3:
(Syed Ammar, 2011-05-10) Implemented setters for the properties
Change in 0.3:
(Daniel Wirtz, 2011-04-01)
  • Changed the old ProjTrainData to TrainingData, as this property name describes the usage more precisely.
Change in 0.1:
(Daniel Wirtz, undated) More common projection via matrices \(V,W\) instead of \(V,V^t\).

This class is part of the framework

KerMor - Model Order Reduction using Kernels

Definition at line 18 of file MemoryTrajectoryData.m.

Public Member Functions

 MemoryTrajectoryData ()
 
function [ colvec< double > x ,
double
ctime ] = 
getTrajectory (colvec< double > mu,integer inputidx)
 Gets a system's trajectory for the given \(\mu\) and inputindex. Returns [] if no trajectory is found in the Data's Snapshots. More...
 
function n = getNumTrajectories ()
 Gets the total number of trajectories. More...
 
function lgetTotalLength ()
 Length of the stored trajectories. More...
 
function [ colvec< double > x ,
colvec
< double > mu ,
integer
inputidx , double ctime ] = 
getTrajectoryNr (nr)
 Gets the trajectory with the number nr. More...
 
function  addTrajectory (colvec< double > x,colvec< double > mu,integer inputidx,double ctime)
 Adds a trajectory to the ModelData instance. More...
 
function  clearTrajectories ()
 Clears all stored trajectory data. More...
 
function [ colvec< double > x ,
X ] = 
getBoundingBox ()
 Gets the bounding box of the state space of all trajectories. More...
 
function [ d ,
mud ] = 
getTrajectoryDoFs ()
 Returns the degrees of freedom for the trajectories and parameter size. More...
 
function [ n ,
m ] = 
size (dim)
 % data.ABlockedData implementations More...
 
function n = getNumBlocks ()
 % data.ABlockedData implementations More...
 
function B = getBlock (unused1)
 
- Public Member Functions inherited from data.ATrajectoryData
function  transferFrom (data.ATrajectoryData source)
 Transfers the data from one ATrajectoryData instance to another. More...
 
function [ double t , dia ,
m ,
M ] = 
computeManifoldDiameters ()
 
- Public Member Functions inherited from data.ABlockedData
function [ matrix< double > U ,
matrix
< double > S , matrix< double > V ] = 
getSVD (integer k,matrix< double > Vexclude,colvec< integer > targetdims)
 Computes an SVD on this blockwise matrix \(A = USV^T\). More...
 
function prod = mtimes ()
 Need left-sided matrix multiplication if RHS singular vectors V should be returned. More...
 
function A = toMemoryMatrix ()
 Converts this FileMatrix to a full double matrix. More...
 

Static Public Member Functions

static function res = test_MemoryTrajectoryData ()
 
- Static Public Member Functions inherited from data.ABlockedData
static function res = test_BlockSVD_vs_SVD ()
 

Public Attributes

 TrajectoryData
 The trajectories in a dim x timelength x trajectorynumber array. More...
 
 Parameters
 The parameters associated with the trajectories. Each column index corresponds to the trajectory number dimension. More...
 
 InputIndices
 The input indices associated with the trajectories. Each column index corresponds to the trajectory number dimension. More...
 
- Public Attributes inherited from data.ABlockedData
double MinRelSingularValueSize = 1e-20
 The minimum relative value of singular values that triggers selection of the compared to the largest one. More...
 
- Public Attributes inherited from handle
 addlistener
 Creates a listener for the specified event and assigns a callback function to execute when the event occurs. More...
 
 notify
 Broadcast a notice that a specific event is occurring on a specified handle object or array of handle objects. More...
 
 delete
 Handle object destructor method that is called when the object's lifecycle ends. More...
 
 disp
 Handle object disp method which is called by the display method. See the MATLAB disp function. More...
 
 display
 Handle object display method called when MATLAB software interprets an expression returning a handle object that is not terminated by a semicolon. See the MATLAB display function. More...
 
 findobj
 Finds objects matching the specified conditions from the input array of handle objects. More...
 
 findprop
 Returns a meta.property objects associated with the specified property name. More...
 
 fields
 Returns a cell array of string containing the names of public properties. More...
 
 fieldnames
 Returns a cell array of string containing the names of public properties. See the MATLAB fieldnames function. More...
 
 isvalid
 Returns a logical array in which elements are true if the corresponding elements in the input array are valid handles. This method is Sealed so you cannot override it in a handle subclass. More...
 
 eq
 Relational functions example. See details for more information. More...
 
 transpose
 Transposes the elements of the handle object array. More...
 
 permute
 Rearranges the dimensions of the handle object array. See the MATLAB permute function. More...
 
 reshape
 hanges the dimensions of the handle object array to the specified dimensions. See the MATLAB reshape function. More...
 
 sort
 ort the handle objects in any array in ascending or descending order. More...
 

Constructor & Destructor Documentation

data.MemoryTrajectoryData.MemoryTrajectoryData ( )

Definition at line 105 of file MemoryTrajectoryData.m.

References clearTrajectories().

Here is the call graph for this function:

Member Function Documentation

function data.MemoryTrajectoryData.addTrajectory ( colvec< double x,
colvec< double mu,
integer  inputidx,
double  ctime 
)
virtual

Adds a trajectory to the ModelData instance.

Parameters
xThe state variable vector \(\vx(t)\)
muThe currently used parameter \(\vmu\). Set to \([]\) if not used.
inputidxThe index \(i\) of the currently used input function \(u_i(t)\). Set to \([]\) if not used.
ctimeThe computation time

Implements data.ATrajectoryData.

Definition at line 178 of file MemoryTrajectoryData.m.

References Utils.getHash(), InputIndices, Parameters, size(), and TrajectoryData.

Here is the call graph for this function:

function data.MemoryTrajectoryData.clearTrajectories ( )
virtual

Clears all stored trajectory data.

Implements data.ATrajectoryData.

Definition at line 225 of file MemoryTrajectoryData.m.

References InputIndices, Parameters, and TrajectoryData.

Referenced by MemoryTrajectoryData().

Here is the caller graph for this function:

function B = data.MemoryTrajectoryData.getBlock (   unused1)
virtual

Reimplemented from data.ATrajectoryData.

Definition at line 272 of file MemoryTrajectoryData.m.

References getTrajectoryDoFs(), handle.reshape, and TrajectoryData.

Here is the call graph for this function:

function [colvec<double>x , X ] = data.MemoryTrajectoryData.getBoundingBox ( )
virtual

Gets the bounding box of the state space of all trajectories.

Implements data.ATrajectoryData.

Definition at line 234 of file MemoryTrajectoryData.m.

References Utils.getBoundingBox(), TrajectoryData, and X.

Here is the call graph for this function:

function n = data.MemoryTrajectoryData.getNumBlocks ( )
virtual

% data.ABlockedData implementations

Reimplemented from data.ATrajectoryData.

Definition at line 267 of file MemoryTrajectoryData.m.

function n = data.MemoryTrajectoryData.getNumTrajectories ( )
virtual

Gets the total number of trajectories.

Implements data.ATrajectoryData.

Definition at line 145 of file MemoryTrajectoryData.m.

References size(), and TrajectoryData.

Here is the call graph for this function:

function l = data.MemoryTrajectoryData.getTotalLength ( )
virtual

Length of the stored trajectories.

Implements data.ATrajectoryData.

Definition at line 150 of file MemoryTrajectoryData.m.

References l, size(), and TrajectoryData.

Here is the call graph for this function:

function [ colvec< double > x , double ctime ] = data.MemoryTrajectoryData.getTrajectory ( colvec< double mu,
integer  inputidx 
)
virtual

Gets a system's trajectory for the given \(\mu\) and inputindex. Returns [] if no trajectory is found in the Data's Snapshots.

See Also
ModelData/getSampleIndex
Parameters
muThe currently used parameter \(\vmu\). Set to \([]\) if not used.
inputidxThe index \(i\) of the currently used input function \(u_i(t)\). Set to \([]\) if not used.

Implements data.ATrajectoryData.

Definition at line 114 of file MemoryTrajectoryData.m.

References Utils.getHash(), and TrajectoryData.

Here is the call graph for this function:

function [d , mud ] = data.MemoryTrajectoryData.getTrajectoryDoFs ( )
virtual

Returns the degrees of freedom for the trajectories and parameter size.

Implements data.ATrajectoryData.

Definition at line 239 of file MemoryTrajectoryData.m.

References Parameters, size(), and TrajectoryData.

Referenced by getBlock().

Here is the call graph for this function:

Here is the caller graph for this function:

function [ colvec< double > x , colvec< double > mu , integer inputidx , double ctime ] = data.MemoryTrajectoryData.getTrajectoryNr (   nr)
virtual

Gets the trajectory with the number nr.

Implements data.ATrajectoryData.

Definition at line 155 of file MemoryTrajectoryData.m.

References InputIndices, Parameters, size(), and TrajectoryData.

Here is the call graph for this function:

function [ n , m ] = data.MemoryTrajectoryData.size (   dim)
virtual

% data.ABlockedData implementations

Reimplemented from data.ATrajectoryData.

Definition at line 245 of file MemoryTrajectoryData.m.

References TrajectoryData.

Referenced by addTrajectory(), getNumTrajectories(), getTotalLength(), getTrajectoryDoFs(), and getTrajectoryNr().

Here is the caller graph for this function:

static function res = data.MemoryTrajectoryData.test_MemoryTrajectoryData ( )
static

Definition at line 279 of file MemoryTrajectoryData.m.

Member Data Documentation

data.MemoryTrajectoryData.InputIndices

The input indices associated with the trajectories. Each column index corresponds to the trajectory number dimension.

Empty if none are used.

Note
This property has non-standard access specifiers: SetAccess = Private, GetAccess = Public
Matlab documentation of property attributes.

Definition at line 75 of file MemoryTrajectoryData.m.

Referenced by addTrajectory(), clearTrajectories(), and getTrajectoryNr().

data.MemoryTrajectoryData.Parameters

The parameters associated with the trajectories. Each column index corresponds to the trajectory number dimension.

Empty if none are used.

Note
This property has non-standard access specifiers: SetAccess = Private, GetAccess = Public
Matlab documentation of property attributes.

Definition at line 61 of file MemoryTrajectoryData.m.

Referenced by addTrajectory(), clearTrajectories(), getTrajectoryDoFs(), and getTrajectoryNr().

data.MemoryTrajectoryData.TrajectoryData

The trajectories in a dim x timelength x trajectorynumber array.

Get access allowed for efficient full trajectory data access.

Note
This property has non-standard access specifiers: SetAccess = Private, GetAccess = Public
Matlab documentation of property attributes.

Definition at line 48 of file MemoryTrajectoryData.m.

Referenced by addTrajectory(), clearTrajectories(), getBlock(), getBoundingBox(), getNumTrajectories(), getTotalLength(), getTrajectory(), getTrajectoryDoFs(), getTrajectoryNr(), and size().


The documentation for this class was generated from the following file: