24 #ifndef __OUTLIERDETECTION_UNIVARIATE_TYPES_H__
25 #define __OUTLIERDETECTION_UNIVARIATE_TYPES_H__
27 #include "algorithms/algorithm.h"
28 #include "data_management/data/homogen_numeric_table.h"
43 namespace univariate_outlier_detection
64 lastInputId = threshold
74 lastResultId = weights
95 virtual void operator()(data_management::NumericTable *data,
96 data_management::NumericTable *location,
97 data_management::NumericTable *scatter,
98 data_management::NumericTable *threshold) = 0;
99 virtual ~InitIface() {}
106 struct DAAL_EXPORT DefaultInit :
public InitIface
115 virtual void operator()(data_management::NumericTable *data,
116 data_management::NumericTable *location,
117 data_management::NumericTable *scatter,
118 data_management::NumericTable *threshold) {}
128 struct DAAL_EXPORT Parameter :
public daal::algorithms::Parameter
131 services::SharedPtr<InitIface> initializationProcedure;
138 virtual services::Status check() const DAAL_C11_OVERRIDE {
return services::Status();}
146 class DAAL_EXPORT Input :
public daal::algorithms::Input
150 Input(
const Input& other);
159 data_management::NumericTablePtr
get(InputId id)
const;
166 void set(InputId
id,
const data_management::NumericTablePtr &ptr);
175 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
182 class DAAL_EXPORT Result :
public daal::algorithms::Result
185 DECLARE_SERIALIZABLE_CAST(Result);
188 virtual ~Result() {};
198 template <
typename algorithmFPType>
199 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
206 data_management::NumericTablePtr
get(ResultId id)
const;
213 void set(ResultId
id,
const data_management::NumericTablePtr &ptr);
223 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
227 template<
typename Archive,
bool onDeserialize>
228 services::Status serialImpl(Archive *arch)
230 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
233 typedef services::SharedPtr<Result> ResultPtr;
237 using interface1::InitIface;
238 using interface1::DefaultInit;
239 using interface1::Parameter;
240 using interface1::Input;
241 using interface1::Result;
242 using interface1::ResultPtr;
daal::algorithms::univariate_outlier_detection::interface1::Input
Input objects for the univariate outlier detection algorithm
Definition: outlier_detection_univariate_types.h:146
daal::algorithms::univariate_outlier_detection::interface1::Parameter::initializationProcedure
services::SharedPtr< InitIface > initializationProcedure
Definition: outlier_detection_univariate_types.h:131
daal::algorithms::univariate_outlier_detection::ResultId
ResultId
Definition: outlier_detection_univariate_types.h:71
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:115
daal::algorithms::univariate_outlier_detection::Method
Method
Definition: outlier_detection_univariate_types.h:49
daal::algorithms::univariate_outlier_detection::location
Definition: outlier_detection_univariate_types.h:61
daal::algorithms::univariate_outlier_detection::weights
Definition: outlier_detection_univariate_types.h:73
daal::algorithms::univariate_outlier_detection::interface1::DefaultInit
Class that specifies the default method for initialization.
Definition: outlier_detection_univariate_types.h:106
daal::algorithms::univariate_outlier_detection::interface1::Parameter::check
virtual services::Status check() const DAAL_C11_OVERRIDE
Definition: outlier_detection_univariate_types.h:138
daal::algorithms::univariate_outlier_detection::threshold
Definition: outlier_detection_univariate_types.h:63
daal::algorithms::univariate_outlier_detection::defaultDense
Definition: outlier_detection_univariate_types.h:51
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::interface1::Parameter
Parameters of the univariate outlier detection algorithm.
Definition: outlier_detection_univariate_types.h:128
daal::algorithms::univariate_outlier_detection::interface1::InitIface
Abstract class that provides a functor for the initial procedure.
Definition: outlier_detection_univariate_types.h:86
daal::algorithms::univariate_outlier_detection::data
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:182
daal::algorithms::univariate_outlier_detection::InputId
InputId
Definition: outlier_detection_univariate_types.h:58
daal::algorithms::univariate_outlier_detection::scatter
Definition: outlier_detection_univariate_types.h:62