#include <Perturbation.h>
Inheritance diagram for OSCAR::Perturbation:

Generates patterned perturbations for Vector and RRJointVector, to be used primarily in GenerateOptions and GenerateManifold algorithms. But can also be used for other things that need perturbations too. Four search patterns are available: Simple, Factorial, Simfact, and Exhaustive. See Richard Hooper's for descriptions of these pattern. Simfact, however, is a new one and it is the combination of Simple and Factorial. If you need partial perturbations (i.e. only some elements are perturbed), use RRJointVector and set the elements that you want perturbed to 'Active'. Use of Vector will result in full perturbations.
|
|
|
|
||||||||||||||||
|
Constructor. This is the Constructor for an object of type Perturbation. Use this to construct an Perturbation object with specified parameters, or with the default ones.
|
|
|
Copy constructor.
|
|
|
Virtual Destructor. This is the Destructor for an object of type Perturbation. |
|
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
Get the next output of perturbation process (option) one at a time. This method performs next perturbation and store the result in the parameter.
|
|
|
Get the total number of options that the object will generate. This constant method returns the total number of options that the object will generate. Call this method before calling GetOptions(VectorArray&) to set the size of that VectorArray object.
|
|
|
Get the outputs of perturbation process (options) all at once. This method performs the perturbations and store the results in the parameter.
|
|
|
Get the current search pattern. This constant method returns the current search pattern of the object.
|
|
|
Assignment operator.
|
|
|
|
|
|
Call this method to reset GetNextOption(Vector&). When one wants the Perturbation object to start generating the first option again, call this function
|
|
|
Set base vector from which the partial perturbations occur. This method sets base vector from which the perturbations occur. The perturbations will occur only at the active elements of the parameter.
|
|
|
Set base vector from which the full perturbations occur. This method sets base vector from which the full perturbations occur. The perturbations will occur at all the elements of the parameter. For partial perturbations, use SetInput(const RRJointVector&).
|
|
|
Set different perturbed values for individual elements. This method sets different perturbed values for individual elements of the object.
|
|
|
Set the same perturbed value for all elements. This method sets the perturbed value for all the elements to the value of the parameter.
|
|
|
Set the search pattern. This method sets the search pattern to the value of the parameter. After a call to this method, the user should either use the return value or call GetNoOptions() to set the size of an VectorArray object before calling GetOptions(VectorArray&).
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |