48 #ifndef __OUTLIERDETECTION_UNIVARIATE_TYPES_H__ 49 #define __OUTLIERDETECTION_UNIVARIATE_TYPES_H__ 51 #include "algorithms/algorithm.h" 52 #include "data_management/data/homogen_numeric_table.h" 67 namespace univariate_outlier_detection
88 lastInputId = threshold
98 lastResultId = weights
119 virtual void operator()(data_management::NumericTable *data,
120 data_management::NumericTable *location,
121 data_management::NumericTable *scatter,
122 data_management::NumericTable *threshold) = 0;
123 virtual ~InitIface() {}
130 struct DAAL_EXPORT DefaultInit :
public InitIface
139 virtual void operator()(data_management::NumericTable *data,
140 data_management::NumericTable *location,
141 data_management::NumericTable *scatter,
142 data_management::NumericTable *threshold) {}
152 struct DAAL_EXPORT Parameter :
public daal::algorithms::Parameter
155 services::SharedPtr<InitIface> initializationProcedure;
162 virtual services::Status check() const DAAL_C11_OVERRIDE {
return services::Status();}
170 class DAAL_EXPORT Input :
public daal::algorithms::Input
174 Input(
const Input& other);
183 data_management::NumericTablePtr
get(InputId id)
const;
190 void set(InputId id,
const data_management::NumericTablePtr &ptr);
199 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
206 class DAAL_EXPORT Result :
public daal::algorithms::Result
209 DECLARE_SERIALIZABLE_CAST(Result);
212 virtual ~Result() {};
222 template <
typename algorithmFPType>
223 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
230 data_management::NumericTablePtr
get(ResultId id)
const;
237 void set(ResultId id,
const data_management::NumericTablePtr &ptr);
247 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
251 template<
typename Archive,
bool onDeserialize>
252 services::Status serialImpl(Archive *arch)
254 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
257 typedef services::SharedPtr<Result> ResultPtr;
261 using interface1::InitIface;
262 using interface1::DefaultInit;
263 using interface1::Parameter;
264 using interface1::Input;
265 using interface1::Result;
266 using interface1::ResultPtr;
daal::algorithms::univariate_outlier_detection::threshold
Definition: outlier_detection_univariate_types.h:87
daal::algorithms::univariate_outlier_detection::interface1::Parameter::initializationProcedure
services::SharedPtr< InitIface > initializationProcedure
Definition: outlier_detection_univariate_types.h:155
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::interface1::Result
Base class to represent final results of the computation. Algorithm-specific final results are repres...
Definition: algorithm_types.h:331
daal::algorithms::univariate_outlier_detection::interface1::Parameter
Parameters of the univariate outlier detection algorithm.
Definition: outlier_detection_univariate_types.h:152
daal::algorithms::univariate_outlier_detection::data
Definition: outlier_detection_univariate_types.h:84
daal::algorithms::univariate_outlier_detection::interface1::Parameter::check
virtual services::Status check() const DAAL_C11_OVERRIDE
Definition: outlier_detection_univariate_types.h:162
daal::algorithms::univariate_outlier_detection::interface1::InitIface
Abstract class that provides a functor for the initial procedure.
Definition: outlier_detection_univariate_types.h:110
daal::algorithms::univariate_outlier_detection::defaultDense
Definition: outlier_detection_univariate_types.h:75
daal::algorithms::univariate_outlier_detection::location
Definition: outlier_detection_univariate_types.h:85
daal::algorithms::univariate_outlier_detection::interface1::DefaultInit
Class that specifies the default method for initialization.
Definition: outlier_detection_univariate_types.h:130
daal::algorithms::interface1::Parameter
Base class to represent computation parameters. Algorithm-specific parameters are represented as deri...
Definition: algorithm_types.h:86
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:95
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::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:139
daal::data_management::interface1::NumericTable
Class for a data management component responsible for representation of data in the numeric format...
Definition: numeric_table.h:600
daal::algorithms::univariate_outlier_detection::InputId
InputId
Definition: outlier_detection_univariate_types.h:82
daal::algorithms::univariate_outlier_detection::weights
Definition: outlier_detection_univariate_types.h:97
daal::algorithms::univariate_outlier_detection::scatter
Definition: outlier_detection_univariate_types.h:86
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:206
daal::algorithms::univariate_outlier_detection::Method
Method
Definition: outlier_detection_univariate_types.h:73