![]() |
KerMor
0.9
Model order reduction for nonlinear dynamical systems and nonlinear approximation
|
KERNELLS Least-Squares kernel regression ("Rigde Regression") Since the systems can be considerably large, the pcg solver is used instead of plain inversion. More...
KERNELLS Least-Squares kernel regression ("Rigde Regression") Since the systems can be considerably large, the pcg solver is used instead of plain inversion.
Definition at line 19 of file KernelLS.m.
Public Member Functions | |
KernelLS () | |
function copy = | clone () |
function [
a , sf ] = | regress (fx, ainit) |
function | init (kernels.KernelExpansion kexp) |
% IKernelCoeffComp interface members Sets the kernel matrix. More... | |
function [
ai , svidx , sf ] = | computeKernelCoefficients (yi, initialai) |
Kernel coefficient computation. More... | |
![]() | |
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... | |
![]() | |
DPCMObject () | |
Creates a new DPCM object. More... | |
DPCMObject () | |
![]() | |
function copy = | clone (copy) |
The interface method with returns a copy of the current class instance. More... | |
virtual function | init (data.FileMatrix K) |
Initialization template method. More... | |
Public Attributes | |
K | |
The kernel matrix to use for LS regression. More... | |
double | lambda = 1 |
The regularization term weight. More... | |
CGMaxIt = "[]" | |
Maximum iteration count for the conjugate gradient method. More... | |
CGTol = 1e-6 | |
Tolerance for cg method. More... | |
MaxStraightInvDim = 2000 | |
Maximum dimension of function for which direct inversion is performed instead of pcg. More... | |
![]() | |
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... | |
![]() | |
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... | |
![]() | |
logical | MultiTargetComputation = false |
A flag that indicates to users if the coefficient computation method is capable of using a matrix of column fxi vectors or only single vectors. More... | |
Additional Inherited Members | |
![]() | |
function | checkType (obj, type) |
Object typechecker. More... | |
![]() | |
function | registerProps (varargin) |
Call this method at any class that defines DPCM observed properties. More... | |
function | registerProps (varargin) |
![]() | |
static function obj = | loadobj (obj, from) |
Re-register any registered change listeners! More... | |
static function obj = | loadobj (obj, from) |
general.regression.KernelLS.KernelLS | ( | ) |
Definition at line 119 of file KernelLS.m.
References KerMorObject.KerMorObject(), and DPCMObject.registerProps().
function copy = general.regression.KernelLS.clone | ( | ) |
Definition at line 125 of file KernelLS.m.
References CGMaxIt, CGTol, K, lambda, and MaxStraightInvDim.
|
virtual |
Kernel coefficient computation.
Here the concrete class performs the approximation calculation for given function evaluation points \(y_i = f(x_i)\) at the centers \(x_i\) also used to compute the kernel matrix passed to the IKernelCoeffComp.init method.
yi | The function values \(f(x_i)\) as column vector. If MultiTargetComputation is true, this can be a matrix of column vectors. |
initialai | The values to use as initial coefficients. It is up to the implementing classes to use those if passed; however, a call with empty argument must be possible, too. |
ci | The coefficients \(c_{k,i}\) of \(f_k(x)\) as ROW vector. |
svidx | The used support vector indices \(i\) of \(x_i\). Always required. (Set to 1:n if no sparsity is given by the coeffcomp method) |
Implements IKernelCoeffComp.
Definition at line 169 of file KernelLS.m.
References regress().
function general.regression.KernelLS.init | ( | kernels.KernelExpansion | kexp | ) |
% IKernelCoeffComp interface members Sets the kernel matrix.
kexp | The kernel expansion |
Definition at line 155 of file KernelLS.m.
References kernels.KernelExpansion.getKernelMatrix(), and K.
function [a , sf ] = general.regression.KernelLS.regress | ( | fx, | |
ainit | |||
) |
Definition at line 136 of file KernelLS.m.
References CGMaxIt, CGTol, K, lambda, MaxStraightInvDim, StopFlag.SUCCESS, and t.
Referenced by computeKernelCoefficients().
general.regression.KernelLS.CGMaxIt = "[]" |
Maximum iteration count for the conjugate gradient method.
SetObservable
set to true. Definition at line 68 of file KernelLS.m.
general.regression.KernelLS.CGTol = 1e-6 |
Tolerance for cg method.
SetObservable
set to true. Definition at line 84 of file KernelLS.m.
general.regression.KernelLS.K |
The kernel matrix to use for LS regression.
% Getter & setter
SetObservable
set to true. Definition at line 40 of file KernelLS.m.
general.regression.KernelLS.lambda = 1 |
The regularization term weight.
Default: 1
SetObservable
set to true. Definition at line 53 of file KernelLS.m.
general.regression.KernelLS.MaxStraightInvDim = 2000 |
Maximum dimension of function for which direct inversion is performed instead of pcg.
Default: 2000
SetObservable
set to true. Definition at line 100 of file KernelLS.m.