C++ API Reference for Intel® Data Analytics Acceleration Library 2018 Update 3

pca_quality_metric_set_batch.h
1 /* file: pca_quality_metric_set_batch.h */
2 /*******************************************************************************
3 * Copyright 2014-2018 Intel Corporation.
4 *
5 * This software and the related documents are Intel copyrighted materials, and
6 * your use of them is governed by the express license under which they were
7 * provided to you (License). Unless the License provides otherwise, you may not
8 * use, modify, copy, publish, distribute, disclose or transmit this software or
9 * the related documents without Intel's prior written permission.
10 *
11 * This software and the related documents are provided as is, with no express
12 * or implied warranties, other than those that are expressly stated in the
13 * License.
14 *******************************************************************************/
15 
16 /*
17 //++
18 // Interface for the pca quality metric batch.
19 //--
20 */
21 
22 #ifndef __PCA_QUALITY_METRIC_SET_BATCH_H__
23 #define __PCA_QUALITY_METRIC_SET_BATCH_H__
24 
25 #include "algorithms/algorithm.h"
26 #include "algorithms/algorithm_quality_metric_set_batch.h"
27 #include "algorithms/pca/pca_quality_metric_set_types.h"
28 
29 namespace daal
30 {
31 namespace algorithms
32 {
33 namespace pca
34 {
38 namespace quality_metric_set
39 {
40 
41 namespace interface1
42 {
58 class DAAL_EXPORT Batch : public algorithms::quality_metric_set::Batch
59 {
60 public:
61  Parameter parameter;
69  Batch(size_t nComponents = 0, size_t nFeatures = 0, bool useDefaultMetrics = true):
70  algorithms::quality_metric_set::Batch(useDefaultMetrics), parameter(nComponents, nFeatures)
71  {
72  _inputData = InputDataCollectionPtr(new InputDataCollection());
73  if (_useDefaultMetrics)
74  {
75  initializeQualityMetrics();
76  }
77  _resultCollection = ResultCollectionPtr(new ResultCollection());
78  }
79 
80  virtual ~Batch() {}
81 
86  ResultCollectionPtr getResultCollection()
87  {
88  return services::staticPointerCast<ResultCollection,
89  algorithms::quality_metric_set::ResultCollection>(_resultCollection);
90  }
91 
96  InputDataCollectionPtr getInputDataCollection()
97  {
98  return services::staticPointerCast<InputDataCollection,
99  algorithms::quality_metric_set::InputDataCollection>(_inputData);
100  }
101 
102 protected:
103  virtual void initializeQualityMetrics();
104 };
106 } // namespace interface1
107 using interface1::Batch;
108 
109 }
110 }
111 }
112 }
113 #endif
daal::algorithms::pca::quality_metric_set::interface1::Batch::Batch
Batch(size_t nComponents=0, size_t nFeatures=0, bool useDefaultMetrics=true)
Definition: pca_quality_metric_set_batch.h:69
daal
Definition: algorithm_base_common.h:31
daal::algorithms::pca::quality_metric_set::interface1::Batch::getInputDataCollection
InputDataCollectionPtr getInputDataCollection()
Definition: pca_quality_metric_set_batch.h:96
daal::algorithms::pca::quality_metric_set::interface1::Batch
Class that represents a quality metric set of the pca algorithm.
Definition: pca_quality_metric_set_batch.h:58
daal::algorithms::pca::quality_metric_set::interface1::InputDataCollection
Class that implements functionality of the collection of input objects of the quality metrics algorit...
Definition: pca_quality_metric_set_types.h:109
daal::algorithms::pca::quality_metric_set::interface1::Batch::parameter
Parameter parameter
Definition: pca_quality_metric_set_batch.h:61
daal::algorithms::pca::quality_metric_set::interface1::Parameter
Parameters for the quality metrics set compute() method.
Definition: pca_quality_metric_set_types.h:66
daal::algorithms::pca::quality_metric_set::interface1::Batch::getResultCollection
ResultCollectionPtr getResultCollection()
Definition: pca_quality_metric_set_batch.h:86
daal::services::interface1::staticPointerCast
SharedPtr< T > staticPointerCast(const SharedPtr< U > &r)
Definition: daal_shared_ptr.h:422
daal::algorithms::pca::quality_metric_set::interface1::ResultCollection
Class that implements functionality of the collection of result objects of the quality metrics algori...
Definition: pca_quality_metric_set_types.h:89

For more complete information about compiler optimizations, see our Optimization Notice.