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.WeightedRandomSampler Class Reference

WeightedRandomSampler: Computes random samples using the Desired fields of the parameters. More...

Detailed Description

WeightedRandomSampler: Computes random samples using the Desired fields of the parameters.

Documentation Update:
Author
Daniel Wirtz
Date
2010-10-11
New in 0.5:
(Daniel Wirtz, 2011-10-11) Renamed the former RandomSampler to this class as it is not truly random.
Change in 0.3:
(Syed Ammar, 2011-05-10) Implemented property setter
New in 0.3:
(Daniel Wirtz, 2011-04-21) Integrated this class to the property default value changed supervision system Property classes and levels. This class now inherits from KerMorObject and has an extended constructor registering any user-relevant properties using KerMorObject.registerProps.

Definition at line 18 of file WeightedRandomSampler.m.

Public Member Functions

function
samples = 
performSampling (params)
 Randomly generates input samples by choosing params and time parameter by chance. More...
 
- Public Member Functions inherited from sampling.RandomSampler
 RandomSampler ()
 
function matrix
< double > samples = 
performSampling (params)
 Randomly generates input samples by choosing params and time parameter by chance. 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 ()
 

Additional Inherited Members

- Static Public Member Functions inherited from sampling.RandomSampler
static function res = test_DomainSampling ()
 setup parameter domain etc domain are all points in unit square with norm > 0.7 More...
 
- 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.RandomSampler
 Samples = 30
 The number of samples to take. More...
 
integer Seed = "[]"
 The seed for the random number generator. 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)
 
- Static Protected Member Functions inherited from sampling.RandomSampler
static function obj = loadobj (obj)
 
- 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)
 

Member Function Documentation

function samples = sampling.WeightedRandomSampler.performSampling (   params)

Randomly generates input samples by choosing params and time parameter by chance.

Note: Read test_model.m notices on sampling settings.

Definition at line 44 of file WeightedRandomSampler.m.

References Utils.createCombinations(), sampling.RandomSampler.Samples, and handle.sort.

Here is the call graph for this function:


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