48 #ifndef __QUANTILES_BATCH_H__ 49 #define __QUANTILES_BATCH_H__ 51 #include "algorithms/algorithm.h" 52 #include "data_management/data/numeric_table.h" 53 #include "services/daal_defines.h" 54 #include "algorithms/quantiles/quantiles_types.h" 79 template<
typename algorithmFPType, Method method, CpuType cpu>
80 class DAAL_EXPORT BatchContainer :
public daal::algorithms::AnalysisContainerIface<batch>
88 BatchContainer(daal::services::Environment::env *daalEnv);
90 virtual ~BatchContainer();
94 virtual services::Status compute() DAAL_C11_OVERRIDE;
110 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
111 class DAAL_EXPORT Batch :
public daal::algorithms::Analysis<batch>
114 typedef algorithms::quantiles::Input InputType;
115 typedef algorithms::quantiles::Parameter ParameterType;
116 typedef algorithms::quantiles::Result ResultType;
119 ParameterType parameter;
133 Batch(
const Batch<algorithmFPType, method> &other) : input(other.input), parameter(other.parameter)
144 virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int)method; }
150 ResultPtr getResult()
159 services::Status setResult(
const ResultPtr &result)
161 DAAL_CHECK(result, services::ErrorNullResult)
162 if(!result)
return services::Status(services::ErrorNullResult);
164 _res = _result.get();
165 return services::Status();
173 services::SharedPtr<Batch<algorithmFPType, method> > clone()
const 175 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
179 virtual Batch<algorithmFPType, method> * cloneImpl()
const DAAL_C11_OVERRIDE
181 return new Batch<algorithmFPType, method>(*this);
184 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
186 services::Status s = _result->allocate<algorithmFPType>(&input, ¶meter, method);
187 _res = _result.get();
193 Analysis<batch>::_ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
196 _result.reset(
new ResultType());
203 using interface1::BatchContainer;
204 using interface1::Batch;
daal::algorithms::quantiles::interface1::Batch::clone
services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: quantiles_batch.h:173
daal::services::interface1::Environment::_envStruct
The environment structure.
Definition: env_detect.h:95
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::AnalysisContainerIface
Abstract interface class that provides virtual methods to access and run implementations of the analy...
Definition: analysis.h:79
daal::algorithms::quantiles::interface1::Batch::setResult
services::Status setResult(const ResultPtr &result)
Definition: quantiles_batch.h:159
daal::algorithms::quantiles::interface1::Result
Provides methods to access final results obtained with the compute() method of the quantiles algorith...
Definition: quantiles_types.h:151
daal::algorithms::quantiles::interface1::Batch::input
InputType input
Definition: quantiles_batch.h:118
daal::algorithms::quantiles::interface1::Batch::parameter
ParameterType parameter
Definition: quantiles_batch.h:119
daal::batch
Definition: daal_defines.h:132
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::services::interface1::SharedPtr::get
T * get() const
Definition: daal_shared_ptr.h:332
daal::algorithms::quantiles::interface1::Batch
Computes values of quantiles in the batch processing mode.
Definition: quantiles_batch.h:111
daal::algorithms::quantiles::interface1::BatchContainer
Provides methods to run implementations of the quantiles algorithm. It is associated with the daal::a...
Definition: quantiles_batch.h:80
daal::algorithms::quantiles::interface1::Batch::getResult
ResultPtr getResult()
Definition: quantiles_batch.h:150
daal::algorithms::quantiles::interface1::Batch::Batch
Batch(const Batch< algorithmFPType, method > &other)
Definition: quantiles_batch.h:133
daal::algorithms::quantiles::interface1::Batch::Batch
Batch()
Definition: quantiles_batch.h:122
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:94
daal::algorithms::quantiles::interface1::Parameter
Parameters of the quantiles algorithm.
Definition: quantiles_types.h:106
daal::services::ErrorNullResult
Definition: error_indexes.h:122
daal::algorithms::quantiles::quantiles
Definition: quantiles_types.h:93
daal::algorithms::quantiles::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: quantiles_batch.h:144