adaptiveQ
Copyright (C) 2009-2015 Peter Rakyta, Ph.D.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Returns a class for controlling the 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
object = adaptiveQ(Opt, interpq, varargin)
Parameters | |
---|---|
Opt | An instance of the structure Opt. |
interpq | List of transverse momentum points at which fhandle is calculated via interpolation. |
varargin |
Optional parameters given by a sequence ...'name', value,... . Possible parameters are:
|
- The number of elements in qvec in the first iteration.
- The list of transverse momentums where the function fhandle is desired to be calculated.
- The interpolated values of fhandle over the elements of interpq.
- The dynamically created vector of the transverse momentums.
- The calculated function values of fhandle calculated over the elements of qvec.
- Maximum number of the iterations.
- Logical value. If true, the iteration continues with the loaded data, or false (default) otherwise.
- The filename to export the calculated data.
adaptiveQ::runAdaptiveIterations
Runs the adaptive iterations to obtain the elemets of qvec where the function fhandle changes the most.
object.runAdaptiveIterations( fhandle )
adaptiveQ::initialize
Initializes y=fhandle( qvec ) for the first iteration.
object.initialize( fhandle )
Parameters | |
---|---|
fhandle | The function handle to be calculated over the transvese momentum points: y = fhandle( qvec ), where y is an MxN matrix, and qvec is a vector of transverse momentums containing of M elemets. |
adaptiveQ::Write
Sets the value of an attribute in the object.
object.Write(MemberName, input)
Parameters | |
---|---|
MemberName | The name of the attribute to be set. |
input | The value to be set. |
adaptiveQ::Read
Query for the value of an attribute in the object.
ret = object.Read(MemberName)
Parameters | |
---|---|
MemberName | The name of the attribute. |
Return | |
---|---|
ret | The value of the attribute. |
adaptiveQ::Clear
Clears the value of an attribute in the object.
object.Clear(MemberName)
Parameters | |
---|---|
MemberName | The name of the attribute. |
adaptiveQ::defNewq
Defines the new transverse momentums to performs the next iteration.
newq = object.defNewq(unaccurateq)
Parameters | |
---|---|
unaccurateq | The list of transverse moments at which the interpolated function fhandle is unaccurate. |
Return | |
---|---|
newq | Returns with the list of new transverse moments at which the function fhandle should be calculated to improve the accuracy of the interpolation. |
adaptiveQ::getUnaccurateq
Determine the transverse momentum points at which the interpolated function fhandle is unaccurate.
unaccurateq = object.getUnaccurateq()
Return | |
---|---|
unaccurateq | Returns with the list of unaccurate transverse moments at which the interpolated function fhandle is unaccurate. |
adaptiveQ::joinq
Joins the new transverse moment points with the old ones
object.joinq(newq, newy)
Parameters | |
---|---|
newq | The new transverse momentum points. |
newy | The values of the function fhandle calculated at points newq. |
adaptiveQ::InputParsing
Parses the optional parameters for the class constructor.
object.InputParsing(varargin)
Parameters | |
---|---|
varargin |
Optional parameters given by a sequence ...'name', value,... . Possible parameters are:
|
- Log in to post comments