C++ API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

algorithm_quality_metric_batch.h
1 /* file: algorithm_quality_metric_batch.h */
2 /*******************************************************************************
3 * Copyright 2014-2020 Intel Corporation
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *******************************************************************************/
17 
18 /*
19 //++
20 // Interface for the quality metrics in the batch processing mode.
21 //--
22 */
23 
24 #ifndef __ALGORITHM_QUALITY_METRIC_BATCH_H__
25 #define __ALGORITHM_QUALITY_METRIC_BATCH_H__
26 
27 #include "algorithms/analysis.h"
28 
29 namespace daal
30 {
31 namespace algorithms
32 {
36 namespace quality_metric
37 {
38 
42 namespace interface1
43 {
55 class DAAL_EXPORT Batch : public Analysis<batch>
56 {
57 public:
58  Batch() : Analysis<batch>() {}
59  virtual ~Batch() {}
60 
65  virtual void setInput(const algorithms::Input *input) = 0;
66 
71  algorithms::ResultPtr getResult() const
72  {
73  return getResultImpl();
74  }
75 
76 protected:
77  virtual algorithms::ResultPtr getResultImpl() const = 0;
78 };
80 } // namespace interface1
81 using interface1::Batch;
82 
83 } // namespace quality_metric
84 } // namespace algorithms
85 } // namespace daal
86 #endif
daal::algorithms::quality_metric::interface1::Batch
Provides methods to compute quality metrics of an algorithm in the batch processing mode...
Definition: algorithm_quality_metric_batch.h:55
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:70
daal::algorithms::quality_metric::interface1::Batch::getResult
algorithms::ResultPtr getResult() const
Definition: algorithm_quality_metric_batch.h:71

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