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
sampling.GridSampler Class Reference

GridSampler: Samples the models params on a grid, using the ModelParam.Desired field. More...

Detailed Description

GridSampler: Samples the models params on a grid, using the ModelParam.Desired field.

Author
Daniel Wirtz
Date
2010-04-01
Change in 0.7:
(Daniel Wirtz, 2013-09-05) Moved the Spacing property to data.ModelParam
Change in 0.5:
(Daniel Wirtz, 2011-11-09)
  • Fixed logspace grid sampling when any of the range values was zero.
  • New default value for Spacing is lin.
Change in 0.5:
(Daniel Wirtz, 2011-10-19) Added a linear or logarithmic spacing method.

This class is part of the framework

KerMor - Model Order Reduction using Kernels

Definition at line 18 of file GridSampler.m.

Public Member Functions

function
samples = 
performSampling (params)
 Uses the given model and generates a training set by creating a regular grid in joint time/parameter space. More...
 
- Public Member Functions inherited from sampling.BaseSampler
function
samples = 
generateSamples (models.BaseFullModel model)
 
virtual function
samples = 
performSampling ()
 Template method for actual sampling. More...
 
- Public Member Functions inherited from KerMorObject
 KerMorObject ()
 Constructs a new KerMor object. More...
 
function  display ()
 disp(object2str(this)); More...
 
function bool = eq (B)
 Checks equality of two KerMor objects. More...
 
function bool = ne (B)
 Checks if two KerMorObjects are different. More...
 
function cn = getClassName ()
 Returns the simple class name of this object without packages. More...
 
- Public Member Functions inherited from DPCMObject
 DPCMObject ()
 Creates a new DPCM object. More...
 
 DPCMObject ()
 

Static Protected Member Functions

static function obj = loadobj (obj)
 Introduced as the "Spacing" property has moved to data.ModelParam. More...
 
- Static Protected Member Functions inherited from sampling.BaseSampler
static function obj = loadobj (obj, from)
 
- Static Protected Member Functions inherited from DPCMObject
static function obj = loadobj (obj, from)
 Re-register any registered change listeners! More...
 
static function obj = loadobj (obj, from)
 

Additional Inherited Members

- Static Public Member Functions inherited from sampling.BaseSampler
static function res = test_SubsetSampling ()
 setup parameter domain etc domain are all points in unit square with norm > 0.7 More...
 
- Public Attributes inherited from sampling.BaseSampler
sampling.Domain Domain = "[]"
 A domain from which the produced/generated samples may come from. Use in subclasses at the sampling.BaseSampler.performSampling method. More...
 
- Public Attributes inherited from DPCMObject
 WorkspaceVariableName = ""
 The workspace variable name of this class. Optional. More...
 
 ID = "[]"
 An ID that allows to uniquely identify this DPCMObject (at least within the current MatLab session/context). More...
 
 PropertiesChanged = "[]"
 The Dictionary containing all the property settings as key/value pairs. 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...
 
- Protected Member Functions inherited from KerMorObject
function  checkType (obj, type)
 Object typechecker. More...
 
- Protected Member Functions inherited from DPCMObject
function  registerProps (varargin)
 Call this method at any class that defines DPCM observed properties. More...
 
function  registerProps (varargin)
 

Member Function Documentation

function obj = sampling.GridSampler.loadobj (   obj)
staticprotected

Introduced as the "Spacing" property has moved to data.ModelParam.

Definition at line 133 of file GridSampler.m.

function samples = sampling.GridSampler.performSampling (   params)

Uses the given model and generates a training set by creating a regular grid in joint time/parameter space.

Definition at line 47 of file GridSampler.m.

References Utils.createCombinations(), and sampling.Domain.filter().

Here is the call graph for this function:


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