71 lbl = arrayfun(@convert,nrs,
" Unif ",
false);
73 function o = convert(e)
84 t.addRow(
" Location ",
" Min ",
" Max ");
92 #if 0 //mtoc++: 'set.Prototype'
94 if ~isa(value,
" ICloneable ")
95 error(" The prototype must be a
ICloneable descendant. ");
99 error(" The prototype must be a %s descendant. ",...
111 error(
" You must call this clone method passing a cloned subclass instance. ");
124 error(
" No prototype set ");
132 idx = rs.getPart(partNr);
138 ptable.addRow(head,minval,maxval);
210 if nargin < 2 || ~isa(from,
" IClassConfig ")
211 error(
" Must call this loadobj method from subclass with subclass instance ");
214 obj.Prototype= from.Prototype;
215 obj.RequiredPrototypeClass= from.RequiredPrototypeClass;
225 runTest(kernels.config.RBFConfig(
" G ",.4:.01:.6));
226 runTest(kernels.config.GaussConfig(
" G ",1:10));
227 runTest(kernels.config.WendlandConfig(
" G ",1:5,
" S ",(1:5)/2,
" D ",2));
232 fprintf(
" %s: %s ",c.getClassName,c.getConfiguredPropertiesString);
233 nc = c.getNumConfigurations;
236 h = pm.nextPlot(c.getClassName,c.getClassName);
238 set(h,
" XTick ",1:nc,
" XTickLabel ",c.getAxisLabels);
239 disp(c.getAxisLabels);
Collection of generally useful functions.
function double t = getValueRanges()
IClassConfig: Abstract interface for a set of configurations that can be applied to a given algorithm...
ICLONEABLE Interface for cloneable handle classes.
virtual function integer n = getNumConfigurations()
Returns the number of configurations that can be applied.
virtual function char str = getConfiguredPropertiesString()
Returns a string of the changed properties by this IClassConfig instance.
virtual function IClassConfig conf = getSubPart(integer partNr,integer totalParts)
Returns a sub-part of this configuration as a new instance.
function idx = getPartIndices(partNr, totalParts)
static function test_ClassConfigPlots()
Base class for any KerMor class.
function ptype = getProtoClass()
function copy = clone(copy)
The interface method with returns a copy of the current class instance.
PlotManager: Small class that allows the same plots generated by some script to be either organized a...
virtual function collectRanges(ptable, proppath)
function addRange(ptable, proppath, minval, maxval)
KerMorObject()
Constructs a new KerMor object.
virtual function integer str = getConfigurationString(integer nr,logical asCell)
Returns the number of configurations that can be applied.
ICloneable Prototype
The prototype class that is to be used as base class before configuring a new instance.
function cn = getClassName()
Returns the simple class name of this object without packages.
function lbl = getAxisLabels(nrs)
virtual function copy = clone(target)
The interface method with returns a copy of the current class instance.
disp
Handle object disp method which is called by the display method. See the MATLAB disp function...
PrintTable: Class that allows table-like output spaced by tabs for multiple rows. ...
char RequiredPrototypeClass
Determines the class that is allowed to be configured.
static function char str = implode(char|rowvec data,char glue,char format)
Implodes the elements of data using glue.
virtual function ICloneable object = configureInstance(integer nr)
Creates a new instance with given configuration.
A MatLab character array.
function obj = loadobj(from)