49 #ifndef __OUTLIER_DETECTION_MULTIVARIATE_H__ 50 #define __OUTLIER_DETECTION_MULTIVARIATE_H__ 52 #include "algorithms/algorithm.h" 53 #include "data_management/data/numeric_table.h" 54 #include "services/daal_defines.h" 55 #include "algorithms/outlier_detection/outlier_detection_multivariate_types.h" 61 namespace multivariate_outlier_detection
80 template<
typename algorithmFPType, Method method, CpuType cpu>
81 class DAAL_EXPORT BatchContainer :
public daal::algorithms::AnalysisContainerIface<batch>
89 BatchContainer(daal::services::Environment::env *daalEnv);
97 virtual services::Status compute() DAAL_C11_OVERRIDE;
118 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
119 class DAAL_EXPORT Batch :
public daal::algorithms::Analysis<batch>
122 typedef algorithms::multivariate_outlier_detection::Input InputType;
123 typedef algorithms::multivariate_outlier_detection::Result ResultType;
137 Batch(
const Batch<algorithmFPType, method> &other) : input(other.input)
146 virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int) method; }
152 ResultPtr getResult()
163 services::Status setResult(
const ResultPtr& result)
165 DAAL_CHECK(result, services::ErrorNullResult)
167 _res = _result.get();
168 return services::Status();
176 services::SharedPtr<Batch<algorithmFPType, method> > clone()
const 178 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
182 virtual Batch<algorithmFPType, method> * cloneImpl()
const DAAL_C11_OVERRIDE
184 return new Batch<algorithmFPType, method>(*this);
187 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
189 services::Status s = _result->allocate<algorithmFPType>(&input, NULL, (int) method);
190 _res = _result.get();
196 Analysis<batch>::_ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
198 _result.reset(
new ResultType());
209 using interface1::BatchContainer;
210 using interface1::Batch;
daal::services::interface1::Environment::_envStruct
The environment structure.
Definition: env_detect.h:95
daal::services::interface1::Status
Class that holds the results of API calls. In case of API routine failure it contains the list of err...
Definition: error_handling.h:491
daal
Definition: algorithm_base_common.h:57
daal::algorithms::AnalysisContainerIface
Abstract interface class that provides virtual methods to access and run implementations of the analy...
Definition: analysis.h:79
daal::algorithms::multivariate_outlier_detection::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: outlier_detection_multivariate.h:146
daal::algorithms::multivariate_outlier_detection::interface1::Batch::Batch
Batch(const Batch< algorithmFPType, method > &other)
Definition: outlier_detection_multivariate.h:137
daal::algorithms::multivariate_outlier_detection::interface1::Batch::Batch
Batch()
Definition: outlier_detection_multivariate.h:126
daal::algorithms::multivariate_outlier_detection::interface1::Batch::setResult
services::Status setResult(const ResultPtr &result)
Definition: outlier_detection_multivariate.h:163
daal::batch
Definition: daal_defines.h:132
daal::services::interface1::SharedPtr
Shared pointer that retains shared ownership of an object through a pointer. Several SharedPtr object...
Definition: daal_shared_ptr.h:187
daal::algorithms::multivariate_outlier_detection::interface1::Batch
Abstract class that specifies interface of the algorithms for computing multivariate outlier detectio...
Definition: outlier_detection_multivariate.h:119
daal::algorithms::multivariate_outlier_detection::interface1::BatchContainer
Provides methods to run implementations of the multivariate outlier detection algorithm. This class is associated with daal::algorithms::multivariate_outlier_detection::Batch class and supports the methods of the multivariate outlier detection in the batch processing mode.
Definition: outlier_detection_multivariate.h:81
daal::services::interface1::SharedPtr::get
T * get() const
Definition: daal_shared_ptr.h:332
daal::algorithms::multivariate_outlier_detection::interface1::Batch::getResult
ResultPtr getResult()
Definition: outlier_detection_multivariate.h:152
daal::algorithms::multivariate_outlier_detection::interface1::Batch::input
InputType input
Definition: outlier_detection_multivariate.h:202
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:94
daal::algorithms::multivariate_outlier_detection::interface1::Batch::clone
services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: outlier_detection_multivariate.h:176
daal::services::ErrorNullResult
Definition: error_indexes.h:122
daal::algorithms::multivariate_outlier_detection::interface1::Result
Results obtained with the compute() method of the multivariate outlier detection algorithm in the bat...
Definition: outlier_detection_multivariate_types.h:248