queso-0.53.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
QUESO::InterpolationSurrogateDataSet< V, M > Class Template Reference

Container class for multiple, consistent InterpolationSurrogateData objects. More...

#include <InterpolationSurrogateDataSet.h>

Public Member Functions

 InterpolationSurrogateDataSet (const BoxSubset< V, M > &domain, const std::vector< unsigned int > &n_points, unsigned int n_datasets)
 
 ~InterpolationSurrogateDataSet ()
 
const
InterpolationSurrogateData< V,
M > & 
get_dataset (unsigned int s) const
 
InterpolationSurrogateData< V,
M > & 
get_dataset (unsigned int s)
 
unsigned int size () const
 

Private Member Functions

 InterpolationSurrogateDataSet ()
 

Private Attributes

std::vector
< InterpolationSurrogateData
< V, M > * > 
m_datasets
 Data structure to hold all data sets. More...
 

Detailed Description

template<class V = GslVector, class M = GslMatrix>
class QUESO::InterpolationSurrogateDataSet< V, M >

Container class for multiple, consistent InterpolationSurrogateData objects.

This is mostly a convenience object to build and hold multiple InterpolationSurrogateData objects that will have the domian and n_points in each dimension. This is useful for building the surrogates using the InterpolationSurrogateBuilder.

Definition at line 41 of file InterpolationSurrogateDataSet.h.

Constructor & Destructor Documentation

template<class V , class M >
QUESO::InterpolationSurrogateDataSet< V, M >::InterpolationSurrogateDataSet ( const BoxSubset< V, M > &  domain,
const std::vector< unsigned int > &  n_points,
unsigned int  n_datasets 
)

Definition at line 35 of file InterpolationSurrogateDataSet.C.

References QUESO::InterpolationSurrogateDataSet< V, M >::m_datasets.

38  : m_datasets(n_datasets,NULL)
39  {
40  for( unsigned int s = 0; s < n_datasets; s++ )
41  m_datasets[s] = new InterpolationSurrogateData<V,M>( domain, n_points );
42  }
std::vector< InterpolationSurrogateData< V, M > * > m_datasets
Data structure to hold all data sets.
template<class V , class M >
QUESO::InterpolationSurrogateDataSet< V, M >::~InterpolationSurrogateDataSet ( )

Definition at line 45 of file InterpolationSurrogateDataSet.C.

References it.

46  {
47  for( typename std::vector<InterpolationSurrogateData<V,M>*>::iterator it = m_datasets.begin();
48  it != m_datasets.end(); ++it )
49  delete *it;
50  }
std::vector< InterpolationSurrogateData< V, M > * > m_datasets
Data structure to hold all data sets.
that you receive source code or can get it if you want it
Definition: License.txt:41
template<class V = GslVector, class M = GslMatrix>
QUESO::InterpolationSurrogateDataSet< V, M >::InterpolationSurrogateDataSet ( )
private

Member Function Documentation

template<class V , class M >
const InterpolationSurrogateData< V, M > & QUESO::InterpolationSurrogateDataSet< V, M >::get_dataset ( unsigned int  s) const
inline

Definition at line 69 of file InterpolationSurrogateDataSet.h.

References queso_assert, and queso_require_less.

70  {
71  queso_require_less( s, m_datasets.size() );
73 
74  return *(m_datasets[s]);
75  }
#define queso_assert(asserted)
Definition: asserts.h:146
std::vector< InterpolationSurrogateData< V, M > * > m_datasets
Data structure to hold all data sets.
#define queso_require_less(expr1, expr2)
Definition: asserts.h:133
template<class V , class M >
InterpolationSurrogateData< V, M > & QUESO::InterpolationSurrogateDataSet< V, M >::get_dataset ( unsigned int  s)
inline

Definition at line 79 of file InterpolationSurrogateDataSet.h.

References queso_assert, and queso_require_less.

80  {
81  queso_require_less( s, m_datasets.size() );
83 
84  return *(m_datasets[s]);
85  }
#define queso_assert(asserted)
Definition: asserts.h:146
std::vector< InterpolationSurrogateData< V, M > * > m_datasets
Data structure to hold all data sets.
#define queso_require_less(expr1, expr2)
Definition: asserts.h:133
template<class V = GslVector, class M = GslMatrix>
unsigned int QUESO::InterpolationSurrogateDataSet< V, M >::size ( ) const
inline

Definition at line 55 of file InterpolationSurrogateDataSet.h.

References QUESO::InterpolationSurrogateDataSet< V, M >::m_datasets.

56  { return m_datasets.size(); }
std::vector< InterpolationSurrogateData< V, M > * > m_datasets
Data structure to hold all data sets.

Member Data Documentation

template<class V = GslVector, class M = GslMatrix>
std::vector<InterpolationSurrogateData<V,M>*> QUESO::InterpolationSurrogateDataSet< V, M >::m_datasets
private

The documentation for this class was generated from the following files:

Generated on Thu Jun 11 2015 13:52:36 for queso-0.53.0 by  doxygen 1.8.5