Sampling technique to generate points at vertices. More...
#include <sampling.h>
Public Member Functions | |
Sampling_Vertices (Pointer< Param > param=NULL, char *param_prefix=NULL) | |
(Default-)Constructor. | |
void | get_points (vector< vector< dvector > > &sample_set, const UserVector< double > &lower, const UserVector< double > &upper, const vector< ivector > &block, const vector< Pointer< set< int > > > &i_quad, const vector< Pointer< set< int > > > &i_nonquadlin) |
void | get_points (vector< vector< dvector > > &sample_set, const UserVector< double > &lower, const UserVector< double > &upper, const SepQcFunc &f) |
int | get_points (vector< dvector > &sample_set, const UserVector< double > &lower, const UserVector< double > &upper, set< int > &i_quad, set< int > &i_nonquadlin) |
Generates points, which lie on the vertices with respect to a set of variable indices. | |
int | get_points (vector< dvector > &sample_set, const UserVector< double > &lower, const UserVector< double > &upper, const SparsityInfo &si) |
int | get_points (vector< dvector > &sample_set, const UserVector< double > &lower, const UserVector< double > &upper) |
Public Attributes | |
int | vertices |
The number of vertices to generate. |
Sampling technique to generate points at vertices.
sample | set vertices2 options integer $ 0$ default 0 level 1 The number of vertices-points to generate. |
Definition at line 129 of file sampling.h.
(Default-)Constructor.
param | Parameters. | |
param_prefix | A prefix for the parameter names. |
void Sampling_Vertices::get_points | ( | vector< vector< dvector > > & | sample_set, | |
const UserVector< double > & | lower, | |||
const UserVector< double > & | upper, | |||
const vector< ivector > & | block, | |||
const vector< Pointer< set< int > > > & | i_quad, | |||
const vector< Pointer< set< int > > > & | i_nonquadlin | |||
) |
void Sampling_Vertices::get_points | ( | vector< vector< dvector > > & | sample_set, | |
const UserVector< double > & | lower, | |||
const UserVector< double > & | upper, | |||
const SepQcFunc & | f | |||
) |
int Sampling_Vertices::get_points | ( | vector< dvector > & | sample_set, | |
const UserVector< double > & | lower, | |||
const UserVector< double > & | upper, | |||
set< int > & | i_quad, | |||
set< int > & | i_nonquadlin | |||
) |
Generates points, which lie on the vertices with respect to a set of variable indices.
Generates points, which values lie on the bounds for the indices, given in i_quad and i_nonquadlin. The other variables are set to the midpoint.
sample_set | The sample set to add the points to. | |
lower | The lower bounds of the variables. | |
upper | The upper bounds of the variables. | |
i_quad | The indices of the quadratic variables. | |
i_nonquadlin | The indices of the nonquadratic/nonlinear variables. |
int Sampling_Vertices::get_points | ( | vector< dvector > & | sample_set, | |
const UserVector< double > & | lower, | |||
const UserVector< double > & | upper, | |||
const SparsityInfo & | si | |||
) |
int Sampling_Vertices::get_points | ( | vector< dvector > & | sample_set, | |
const UserVector< double > & | lower, | |||
const UserVector< double > & | upper | |||
) |
The number of vertices to generate.
Set in constructor according to parameters.
Definition at line 134 of file sampling.h.