Eötvös Quantum Utilities
v4.9.146
Providing the Horsepowers in the Quantum Realm
|
A class providing adaptive distribution of the transverse momentum points. More...
Public Member Functions | |
function | adaptiveQ (Opt, interpq, varargin) |
Constructor of the class. More... | |
function | Clear (MemberName) |
Clears the value of an attribute in the interface. More... | |
function | display (message, nosilent) |
Displays output messages on the screen. More... | |
function | getOpt () |
Retrives the structure containing the calculation parameters. More... | |
function | initialize (fhandle) |
Initializes y = fhandle( qvec ) for the first iteration. More... | |
function | Read (MemberName) |
Query for the value of an attribute in the interface. More... | |
function | runAdaptiveIterations (fhandle) |
Runs the adaptive iterations to obtain the elemets of qvec where the function fhandle changes the most. More... | |
function | Write (MemberName, input) |
Sets the value of an attribute in the interface. More... | |
Static Public Member Functions | |
static function | BadInputType (variable, type) |
Throws a "bad input type" warning, with using the default value. More... | |
static function | BadInputTypeNoDefault (variable, type) |
Throws a "bad input type" warning without setting it to default. More... | |
static function | ExceedIteration () |
Throws an "iteration exceeded" warning. More... | |
Protected Member Functions | |
function | defNewq (unaccurateq) |
Defines the new transverse momentums to performs the next iteration. More... | |
function | getUnaccurateq () |
Determine the transverse momentum points at which the interpolated function fhandle is unaccurate. More... | |
function | joinq (newq, newy) |
Joins the new transverse moment points with the old ones. More... | |
Protected Attributes | |
Property | interp_method |
Method of the interpolation (see http://www.mathworks.com/help/matlab/ref/interp1.html ) More... | |
Property | interpq |
The list of transverse momentums where the function fhandle is desired to be calculated. More... | |
Property | interpy |
The interpolated values of fhandle over the elements of interpq. More... | |
Property | maxiter |
Maximum of the iterations. More... | |
Property | Opt |
An instance of structure Opt. More... | |
Property | outFileName |
The filename to export the calculated data. More... | |
Property | qvec |
The dynamically created vector of the transverse momentums. More... | |
Property | resume |
Logical value. If true, the iteration cintinues with the loaded data, or false (default) otherwise. More... | |
Property | start_qnum |
The number of elements in qvec in the first iteration. More... | |
Property | y |
The function values of fhandle calculated over the elements of qvec. More... | |
Private Member Functions | |
function | InputParsing (varargin) |
Parses the optional parameters for the class constructor. More... | |
A class providing adaptive distribution of the transverse momentum points.
A minimal list of transverse momentums (qvec) and the corresponding function values (y) of fhandle are dynamicaly created in order to obtain the values of fhandle over the elements of interpq via interpolation. (Typically qvec contains significantly less elements than interpq.)
EQuUs v4.6 or later
Definition at line 27 of file adaptiveQ.m.
|
staticinherited |
Throws a "bad input type" warning, with using the default value.
variable | A string conatining the name of the variable. |
type | A string describing the desired type. |
|
staticinherited |
Throws a "bad input type" warning without setting it to default.
variable | A string conatining the name of the variable. |
type | A string describing the desired type. |
function adaptiveQ::Clear | ( | MemberName | ) |
Clears the value of an attribute in the interface.
MemberName | The name of the attribute to be cleared. |
|
protected |
Defines the new transverse momentums to performs the next iteration.
unaccurateq | The list of transverse moments at which the interpolated function fhandle is unaccurate. |
|
inherited |
Displays output messages on the screen.
message | String containing the message to be displayed |
nosilent | Set true to override the silent option given in Opt.Silent. |
|
staticinherited |
Throws an "iteration exceeded" warning.
|
inherited |
Retrives the structure containing the calculation parameters.
|
protected |
Determine the transverse momentum points at which the interpolated function fhandle is unaccurate.
function adaptiveQ::initialize | ( | fhandle | ) |
|
private |
Parses the optional parameters for the class constructor.
varargin | Cell array of optional parameters (https://www.mathworks.com/help/matlab/ref/varargin.html): |
'resume' | Logical value. If true, the iteration continues with the loaded data, or false (default) otherwise. |
'outFileName' | The filename to save the calculated data. If it is empty (default) no data are exported. |
'interp_method' | The interpolation method to be used to calculate interpy. The default method is spline. |
|
protected |
Joins the new transverse moment points with the old ones.
newq | The new transverse momentum points. |
newy | The values of the function fhandle calculated at points newq. |
function adaptiveQ::Read | ( | MemberName | ) |
Query for the value of an attribute in the interface.
MemberName | The name of the attribute to be set. |
function adaptiveQ::runAdaptiveIterations | ( | fhandle | ) |
Runs the adaptive iterations to obtain the elemets of qvec where the function fhandle changes the most.
function adaptiveQ::Write | ( | MemberName | , |
input | |||
) |
Sets the value of an attribute in the interface.
MemberName | The name of the attribute to be set. |
input | The value to be set. |
|
protected |
Method of the interpolation (see http://www.mathworks.com/help/matlab/ref/interp1.html )
Definition at line 58 of file adaptiveQ.m.
|
protected |
The list of transverse momentums where the function fhandle is desired to be calculated.
Definition at line 37 of file adaptiveQ.m.
|
protected |
The interpolated values of fhandle over the elements of interpq.
Definition at line 40 of file adaptiveQ.m.
|
protected |
Maximum of the iterations.
Definition at line 49 of file adaptiveQ.m.
|
protectedinherited |
An instance of structure Opt.
Definition at line 31 of file Messages.m.
|
protected |
The filename to export the calculated data.
Definition at line 55 of file adaptiveQ.m.
|
protected |
The dynamically created vector of the transverse momentums.
Definition at line 43 of file adaptiveQ.m.
|
protected |
Logical value. If true, the iteration cintinues with the loaded data, or false (default) otherwise.
Definition at line 52 of file adaptiveQ.m.
|
protected |
The number of elements in qvec in the first iteration.
Definition at line 34 of file adaptiveQ.m.
|
protected |
The function values of fhandle calculated over the elements of qvec.
Definition at line 46 of file adaptiveQ.m.