queso-0.57.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
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.

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.
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.

70  {
71  queso_require_less( s, m_datasets.size() );
72  queso_assert( m_datasets[s] );
73 
74  return *(m_datasets[s]);
75  }
std::vector< InterpolationSurrogateData< V, M > * > m_datasets
Data structure to hold all data sets.
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.

80  {
81  queso_require_less( s, m_datasets.size() );
82  queso_assert( m_datasets[s] );
83 
84  return *(m_datasets[s]);
85  }
std::vector< InterpolationSurrogateData< V, M > * > m_datasets
Data structure to hold all data sets.
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 Tue Jun 5 2018 19:49:40 for queso-0.57.1 by  doxygen 1.8.5