Implements a single instance of a weight for search-algorithms for quasi-Monte Carlo point sets as, e.g., those implemented in LatNet Builder. More...
Public Member Functions | |
| T | getIndex () |
| Returns the current 'index'. | |
| void | setIndex (T ind) |
| Sets the index of the weight to 'ind'. | |
| double | getWeight () |
| Returns the current value of the weight. | |
| void | setWeight (double w) |
| Sets the value of the weight to 'w'. | |
Package Functions | |
| SingletonWeight (T ind, double w) | |
| Constructs a weight with given 'index' and 'weight'. | |
Implements a single instance of a weight for search-algorithms for quasi-Monte Carlo point sets as, e.g., those implemented in LatNet Builder.
The template parameter 'T' indicates the data type of the underlying index. Common choices are integers (e.g. the order for OrderDependentWeights) or
CoordinateSet (e.g. the projection for ProjectionDependentWeights), etc.
| <T> | indicates the data type of the index of the weight (e.g. CoordinateSet, Integer,...). |
Definition at line 19 of file SingletonWeight.java.
|
package |
Constructs a weight with given 'index' and 'weight'.
| ind | the desired index. |
| w | the desired value for the weight. |
Definition at line 30 of file SingletonWeight.java.
| T umontreal.ssj.latnetbuilder.weights.SingletonWeight< T >.getIndex | ( | ) |
Returns the current 'index'.
Definition at line 40 of file SingletonWeight.java.
| double umontreal.ssj.latnetbuilder.weights.SingletonWeight< T >.getWeight | ( | ) |
Returns the current value of the weight.
Definition at line 58 of file SingletonWeight.java.
| void umontreal.ssj.latnetbuilder.weights.SingletonWeight< T >.setIndex | ( | T | ind | ) |
Sets the index of the weight to 'ind'.
| ind | the desired value for the 'index'. |
Definition at line 49 of file SingletonWeight.java.
| void umontreal.ssj.latnetbuilder.weights.SingletonWeight< T >.setWeight | ( | double | w | ) |
Sets the value of the weight to 'w'.
| w | desired value for the weight |
Definition at line 67 of file SingletonWeight.java.