Parameter sampling class with uniformly distributed parameters in the parameter space.
Public Member Functions | |
Uniform (init_numintervals, log_distribution) | |
constructor More... | |
function | init_sample (IDetailedModel dmodel) |
initializes the parameter sampling object More... | |
function levels = | get_refinement_levels () |
returns the number of refinement steps for each sample element More... | |
function size = | size () |
returns the number of parameter vectors in this sampling More... | |
function this = | refine (elems) |
refines the object at the the given elements More... | |
function cogs = | cogs () |
returns the center of gravity of sample cells (in case the sample can be viewed as a grid) More... | |
function skips = | skipped_refinements () |
determines for every sample element how often it was skipped during the last refinement steps. More... | |
function
max_vertex = | elementwise_maximum_of_vertex_values (values) |
returns \(\max_{v \in V(e)} \text{val}_v\) for each sample cell \(e\) (in case the sample can be viewed as a grid with vertices as sample vectors) More... | |
Public Member Functions inherited from ParameterSampling.IRefineable | |
function sample = | get_sample_at_ref_level (ref_level) |
helper function returning the sample at a given refinement level More... | |
Public Member Functions inherited from ParameterSampling.Interface | |
function
please_init = | init_required () |
returns a boolean indicating whether the object is fully functional, or must be initialized by a call to init_sample(). More... | |
Public Attributes | |
sample | |
matrix storing the parameter vectors in the parameter samples as row vectors. More... | |
log_distribution = false | |
boolean value determining whether a logarithmic function shall be applied on the uniform distribution of the parameter samples. More... | |
init_numintervals = 2 | |
vector or scalar determining how many equally distant vectors shall be added to the parameter sample in each direction. More... | |
::cubegrid | pgrid |
underlying grid | |
Public Attributes inherited from ParameterSampling.IRefineable | |
sample_history = {""} | |
cell array of samples that are generated during refinement cycle More... | |
refined_elements = {""} | |
cell array of elements which are refined at each refinement step More... | |
Public Attributes inherited from ParameterSampling.Interface | |
sample | |
matrix storing the parameter vectors in the parameter samples as row vectors. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ParameterSampling.Interface | |
init_done = false | |
boolean indicating whether the object has already been initialized by a call of init_sample(). More... | |
ParameterSampling.Uniform.Uniform | ( | init_numintervals, | |
log_distribution | |||
) |
constructor
init_numintervals | vector or scalar determining how many equally distant vectors shall be added to the parameter sample in each direction. |
log_distribution | boolean indicator determining whether a logarithmic function shall be applied on the uniform distribution of the parameter samples. |
|
virtual |
returns the center of gravity of sample cells (in case the sample can be viewed as a grid)
Usually the center of gravity of grid cells is a new sample vector in case the element is refined.
cogs | a matrix with sample vectors as row vectors |
Implements ParameterSampling.IRefineable.
|
virtual |
returns \(\max_{v \in V(e)} \text{val}_v\) for each sample cell \(e\) (in case the sample can be viewed as a grid with vertices as sample vectors)
values | values |
max_vertex | vector of maxima as described above |
Implements ParameterSampling.IRefineable.
Definition at line 203 of file Uniform.m.
|
virtual |
returns the number of refinement steps for each sample element
level | a vector with number of refinement steps for each sample element |
Implements ParameterSampling.IRefineable.
|
virtual |
initializes the parameter sampling object
dmodel | object specifying how the high dimensional data can be computed. |
Implements ParameterSampling.Interface.
|
virtual |
refines the object at the the given elements
At each refinement, the refined elements and the previous sample is added to the cell arrays sample_history and refined_elements
elems | A vector of element indices to be refined |
this | the updated object |
Implements ParameterSampling.IRefineable.
Definition at line 164 of file Uniform.m.
|
virtual |
returns the number of parameter vectors in this sampling
size | sample size |
Implements ParameterSampling.Interface.
Definition at line 153 of file Uniform.m.
|
virtual |
determines for every sample element how often it was skipped during the last refinement steps.
skips | a vector of the number of skips for each sample element. |
Implements ParameterSampling.IRefineable.
ParameterSampling.Uniform.init_numintervals = 2 |
ParameterSampling.Uniform.log_distribution = false |
ParameterSampling.Uniform.sample |
matrix storing the parameter vectors in the parameter samples as row vectors.
Dependent
set to true. SetAccess = Private, GetAccess = Public