22 #ifndef __OUTLIERDETECTION_UNIVARIATE_TYPES_H__
23 #define __OUTLIERDETECTION_UNIVARIATE_TYPES_H__
25 #include "algorithms/algorithm.h"
26 #include "data_management/data/homogen_numeric_table.h"
41 namespace univariate_outlier_detection
62 lastInputId = threshold
72 lastResultId = weights
93 virtual void operator()(data_management::NumericTable *data,
94 data_management::NumericTable *location,
95 data_management::NumericTable *scatter,
96 data_management::NumericTable *threshold) = 0;
97 virtual ~InitIface() {}
104 struct DAAL_EXPORT DefaultInit :
public InitIface
113 virtual void operator()(data_management::NumericTable *data,
114 data_management::NumericTable *location,
115 data_management::NumericTable *scatter,
116 data_management::NumericTable *threshold) {}
126 struct DAAL_EXPORT Parameter :
public daal::algorithms::Parameter
129 services::SharedPtr<InitIface> initializationProcedure;
136 virtual services::Status check() const DAAL_C11_OVERRIDE {
return services::Status();}
144 class DAAL_EXPORT Input :
public daal::algorithms::Input
148 Input(
const Input& other);
157 data_management::NumericTablePtr
get(InputId id)
const;
164 void set(InputId
id,
const data_management::NumericTablePtr &ptr);
173 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
180 class DAAL_EXPORT Result :
public daal::algorithms::Result
183 DECLARE_SERIALIZABLE_CAST(Result);
186 virtual ~Result() {};
196 template <
typename algorithmFPType>
197 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
204 data_management::NumericTablePtr
get(ResultId id)
const;
211 void set(ResultId
id,
const data_management::NumericTablePtr &ptr);
221 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
225 template<
typename Archive,
bool onDeserialize>
226 services::Status serialImpl(Archive *arch)
228 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
231 typedef services::SharedPtr<Result> ResultPtr;
235 using interface1::InitIface;
236 using interface1::DefaultInit;
237 using interface1::Parameter;
238 using interface1::Input;
239 using interface1::Result;
240 using interface1::ResultPtr;
daal::algorithms::univariate_outlier_detection::threshold
Definition: outlier_detection_univariate_types.h:61
daal::algorithms::univariate_outlier_detection::interface1::Parameter::initializationProcedure
services::SharedPtr< InitIface > initializationProcedure
Definition: outlier_detection_univariate_types.h:129
daal
Definition: algorithm_base_common.h:31
daal::algorithms::univariate_outlier_detection::interface1::Parameter
Parameters of the univariate outlier detection algorithm.
Definition: outlier_detection_univariate_types.h:126
daal::algorithms::univariate_outlier_detection::data
Definition: outlier_detection_univariate_types.h:58
daal::algorithms::univariate_outlier_detection::interface1::Parameter::check
virtual services::Status check() const DAAL_C11_OVERRIDE
Definition: outlier_detection_univariate_types.h:136
daal::algorithms::univariate_outlier_detection::interface1::InitIface
Abstract class that provides a functor for the initial procedure.
Definition: outlier_detection_univariate_types.h:84
daal::algorithms::univariate_outlier_detection::defaultDense
Definition: outlier_detection_univariate_types.h:49
daal::algorithms::univariate_outlier_detection::location
Definition: outlier_detection_univariate_types.h:59
daal::algorithms::univariate_outlier_detection::interface1::DefaultInit
Class that specifies the default method for initialization.
Definition: outlier_detection_univariate_types.h:104
daal::algorithms::univariate_outlier_detection::interface1::InitIface::operator()
virtual void operator()(data_management::NumericTable *data, data_management::NumericTable *location, data_management::NumericTable *scatter, data_management::NumericTable *threshold)=0
daal::algorithms::univariate_outlier_detection::ResultId
ResultId
Definition: outlier_detection_univariate_types.h:69
daal::algorithms::univariate_outlier_detection::interface1::DefaultInit::operator()
virtual void operator()(data_management::NumericTable *data, data_management::NumericTable *location, data_management::NumericTable *scatter, data_management::NumericTable *threshold)
Definition: outlier_detection_univariate_types.h:113
daal::algorithms::univariate_outlier_detection::InputId
InputId
Definition: outlier_detection_univariate_types.h:56
daal::algorithms::univariate_outlier_detection::weights
Definition: outlier_detection_univariate_types.h:71
daal::algorithms::univariate_outlier_detection::scatter
Definition: outlier_detection_univariate_types.h:60
daal::algorithms::univariate_outlier_detection::interface1::Result
Results obtained with the compute() method of the univariate outlier detection algorithm in the batch...
Definition: outlier_detection_univariate_types.h:180
daal::algorithms::univariate_outlier_detection::Method
Method
Definition: outlier_detection_univariate_types.h:47