KerMor
0.9
Model order reduction for nonlinear dynamical systems and nonlinear approximation
|
Data class that contains a model's large data, purely in system memory. More...
Data class that contains a model's large data, purely in system memory.
ProjTrainData
to TrainingData
, as this property name describes the usage more precisely.This class is part of the framework
Homepage
http://www.morepas.org/software/index.htmlDocumentation
http://www.morepas.org/software/kermor/index.htmlLicense
KerMor license conditions 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 l = | getTotalLength () |
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... | |
data.MemoryTrajectoryData.MemoryTrajectoryData | ( | ) |
Definition at line 105 of file MemoryTrajectoryData.m.
References clearTrajectories().
|
virtual |
Adds a trajectory to the ModelData instance.
x | The state variable vector \(\vx(t)\) |
mu | The currently used parameter \(\vmu\). Set to \([]\) if not used. |
inputidx | The index \(i\) of the currently used input function \(u_i(t)\). Set to \([]\) if not used. |
ctime | The computation time |
Implements data.ATrajectoryData.
Definition at line 178 of file MemoryTrajectoryData.m.
References Utils.getHash(), InputIndices, Parameters, size(), and TrajectoryData.
|
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().
|
virtual |
Reimplemented from data.ATrajectoryData.
Definition at line 272 of file MemoryTrajectoryData.m.
References getTrajectoryDoFs(), handle.reshape, and TrajectoryData.
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.
|
virtual |
% data.ABlockedData implementations
Reimplemented from data.ATrajectoryData.
Definition at line 267 of file MemoryTrajectoryData.m.
|
virtual |
Gets the total number of trajectories.
Implements data.ATrajectoryData.
Definition at line 145 of file MemoryTrajectoryData.m.
References size(), and TrajectoryData.
|
virtual |
Length of the stored trajectories.
Implements data.ATrajectoryData.
Definition at line 150 of file MemoryTrajectoryData.m.
References l, size(), and TrajectoryData.
|
virtual |
Gets a system's trajectory for the given \(\mu\) and inputindex. Returns [] if no trajectory is found in the Data's Snapshots.
mu | The currently used parameter \(\vmu\). Set to \([]\) if not used. |
inputidx | The 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.
|
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().
|
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.
|
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().
|
static |
Definition at line 279 of file MemoryTrajectoryData.m.
data.MemoryTrajectoryData.InputIndices |
The input indices associated with the trajectories. Each column index corresponds to the trajectory number dimension.
Empty if none are used.
SetAccess = Private, GetAccess = Public
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.
SetAccess = Private, GetAccess = Public
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.
SetAccess = Private, GetAccess = Public
Definition at line 48 of file MemoryTrajectoryData.m.
Referenced by addTrajectory(), clearTrajectories(), getBlock(), getBoundingBox(), getNumTrajectories(), getTotalLength(), getTrajectory(), getTrajectoryDoFs(), getTrajectoryNr(), and size().