25 #ifndef __MINMAX_BATCH_H__
26 #define __MINMAX_BATCH_H__
28 #include "algorithms/algorithm.h"
29 #include "data_management/data/numeric_table.h"
30 #include "services/daal_defines.h"
31 #include "algorithms/normalization/minmax_types.h"
37 namespace normalization
57 template<
typename algorithmFPType, Method method, CpuType cpu>
58 class BatchContainer :
public daal::algorithms::AnalysisContainerIface<batch>
66 BatchContainer(daal::services::Environment::env *daalEnv);
68 virtual ~BatchContainer();
75 virtual services::Status compute() DAAL_C11_OVERRIDE;
91 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
92 class DAAL_EXPORT Batch :
public daal::algorithms::Analysis<batch>
95 typedef algorithms::normalization::minmax::Input InputType;
96 typedef algorithms::normalization::minmax::Parameter<algorithmFPType> ParameterType;
97 typedef algorithms::normalization::minmax::Result ResultType;
100 Parameter<algorithmFPType> parameter;
113 Batch(
const Batch<algorithmFPType, method> &other) : input(other.input), parameter(other.parameter)
124 virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int)method; }
130 ResultPtr getResult()
141 services::Status setResult(
const ResultPtr &result)
143 DAAL_CHECK(result, services::ErrorNullResult)
145 _res = _result.get();
146 return services::Status();
154 services::SharedPtr<Batch<algorithmFPType, method> > clone()
const
156 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
160 virtual Batch<algorithmFPType, method> *cloneImpl() const DAAL_C11_OVERRIDE
162 return new Batch<algorithmFPType, method>(*this);
165 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
167 services::Status s = _result->allocate<algorithmFPType>(&input, method);
168 _res = _result.get();
174 Analysis<batch>::_ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
177 _result.reset(
new ResultType());
185 using interface1::BatchContainer;
186 using interface1::Batch;
daal::batch
Definition: daal_defines.h:112
daal::algorithms::normalization::minmax::interface1::Batch::parameter
Parameter< algorithmFPType > parameter
Definition: minmax.h:100
daal::algorithms::normalization::minmax::interface1::Batch::input
InputType input
Definition: minmax.h:99
daal::algorithms::normalization::minmax::interface1::BatchContainer::BatchContainer
BatchContainer(daal::services::Environment::env *daalEnv)
daal::algorithms::normalization::minmax::interface1::Batch::Batch
Batch()
Definition: minmax.h:103
daal::algorithms::normalization::minmax::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: minmax.h:124
daal::services::ErrorNullResult
Definition: error_indexes.h:98
daal::algorithms::AnalysisContainerIface
Abstract interface class that provides virtual methods to access and run implementations of the analy...
Definition: analysis.h:55
daal::algorithms::normalization::minmax::interface1::Batch
Normalizes datasets in the batch processing mode.
Definition: minmax.h:92
daal::algorithms::normalization::minmax::interface1::Batch::clone
services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: minmax.h:154
daal::algorithms::normalization::minmax::interface1::BatchContainer::compute
virtual services::Status compute() DAAL_C11_OVERRIDE
daal::algorithms::normalization::minmax::interface1::Batch::getResult
ResultPtr getResult()
Definition: minmax.h:130
daal::algorithms::normalization::minmax::interface1::Batch::Batch
Batch(const Batch< algorithmFPType, method > &other)
Definition: minmax.h:113
daal::algorithms::normalization::minmax::interface1::Parameter
Class that specifies the parameters of the algorithm in the batch computing mode. ...
Definition: minmax_types.h:125
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:70
daal::algorithms::normalization::minmax::interface1::BatchContainer
Provides methods to run implementations of the min-max normalization algorithm. It is associated with...
Definition: minmax.h:58
daal::algorithms::normalization::minmax::interface1::Batch::setResult
services::Status setResult(const ResultPtr &result)
Definition: minmax.h:141