23 #ifndef __MINMAX_BATCH_H__
24 #define __MINMAX_BATCH_H__
26 #include "algorithms/algorithm.h"
27 #include "data_management/data/numeric_table.h"
28 #include "services/daal_defines.h"
29 #include "algorithms/normalization/minmax_types.h"
35 namespace normalization
55 template<
typename algorithmFPType, Method method, CpuType cpu>
56 class DAAL_EXPORT BatchContainer :
public daal::algorithms::AnalysisContainerIface<batch>
64 BatchContainer(daal::services::Environment::env *daalEnv);
66 virtual ~BatchContainer();
73 virtual services::Status compute() DAAL_C11_OVERRIDE;
89 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
90 class DAAL_EXPORT Batch :
public daal::algorithms::Analysis<batch>
93 typedef algorithms::normalization::minmax::Input InputType;
94 typedef algorithms::normalization::minmax::Parameter<algorithmFPType> ParameterType;
95 typedef algorithms::normalization::minmax::Result ResultType;
98 Parameter<algorithmFPType> parameter;
111 Batch(
const Batch<algorithmFPType, method> &other) : input(other.input), parameter(other.parameter)
122 virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int)method; }
128 ResultPtr getResult()
139 services::Status setResult(
const ResultPtr &result)
141 DAAL_CHECK(result, services::ErrorNullResult)
143 _res = _result.get();
144 return services::Status();
152 services::SharedPtr<Batch<algorithmFPType, method> > clone()
const
154 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
158 virtual Batch<algorithmFPType, method> *cloneImpl() const DAAL_C11_OVERRIDE
160 return new Batch<algorithmFPType, method>(*this);
163 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
165 services::Status s = _result->allocate<algorithmFPType>(&input, method);
166 _res = _result.get();
172 Analysis<batch>::_ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
175 _result.reset(
new ResultType());
183 using interface1::BatchContainer;
184 using interface1::Batch;
daal
Definition: algorithm_base_common.h:31
daal::algorithms::AnalysisContainerIface
Abstract interface class that provides virtual methods to access and run implementations of the analy...
Definition: analysis.h:53
daal::algorithms::normalization::minmax::interface1::Parameter
Class that specifies the parameters of the algorithm in the batch computing mode. ...
Definition: minmax_types.h:123
daal::algorithms::normalization::minmax::interface1::Batch::parameter
Parameter< algorithmFPType > parameter
Definition: minmax.h:98
daal::batch
Definition: daal_defines.h:110
daal::algorithms::normalization::minmax::interface1::Batch::input
InputType input
Definition: minmax.h:97
daal::algorithms::normalization::minmax::interface1::Batch::setResult
services::Status setResult(const ResultPtr &result)
Definition: minmax.h:139
daal::algorithms::normalization::minmax::interface1::Batch::clone
services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: minmax.h:152
daal::algorithms::normalization::minmax::interface1::BatchContainer
Provides methods to run implementations of the min-max normalization algorithm. It is associated with...
Definition: minmax.h:56
daal::algorithms::normalization::minmax::interface1::Batch::Batch
Batch(const Batch< algorithmFPType, method > &other)
Definition: minmax.h:111
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:68
daal::algorithms::normalization::minmax::interface1::Batch::Batch
Batch()
Definition: minmax.h:101
daal::algorithms::normalization::minmax::interface1::Batch::getResult
ResultPtr getResult()
Definition: minmax.h:128
daal::algorithms::normalization::minmax::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: minmax.h:122
daal::algorithms::normalization::minmax::interface1::Batch
Normalizes datasets in the batch processing mode.
Definition: minmax.h:90
daal::services::ErrorNullResult
Definition: error_indexes.h:96