22 #ifndef __ZSCORE_TYPES_H__
23 #define __ZSCORE_TYPES_H__
25 #include "algorithms/algorithm.h"
26 #include "data_management/data/numeric_table.h"
27 #include "data_management/data/homogen_numeric_table.h"
28 #include "algorithms/moments/low_order_moments_batch.h"
29 #include "services/daal_defines.h"
44 namespace normalization
91 lastResultId = variances
100 enum ResultToComputeId
102 none = 0x00000000ULL,
103 mean = 0x00000001ULL,
104 variance = 0x00000002ULL
118 class DAAL_EXPORT Input :
public daal::algorithms::Input
125 Input(
const Input& other);
134 data_management::NumericTablePtr
get(InputId id)
const;
141 void set(InputId
id,
const data_management::NumericTablePtr &ptr);
150 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
169 class DAAL_EXPORT Result :
public daal::algorithms::Result
172 DECLARE_SERIALIZABLE_CAST(Result);
173 Result(
const Result& o);
176 virtual ~Result() {};
186 template <
typename algorithmFPType>
187 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
197 template <
typename algorithmFPType>
198 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const int method);
207 data_management::NumericTablePtr
get(ResultId id)
const;
214 void set(ResultId
id,
const data_management::NumericTablePtr &value);
224 services::Status check(
const daal::algorithms::Input *in,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
228 template<
typename Archive,
bool onDeserialize>
229 services::Status serialImpl(Archive *arch)
231 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
234 typedef services::SharedPtr<Result> ResultPtr;
251 template<
typename algorithmFPType, Method method>
252 class DAAL_EXPORT Parameter {};
258 class DAAL_EXPORT BaseParameter :
public daal::algorithms::Parameter
261 BaseParameter(
const bool doScale =
true);
262 DAAL_UINT64 resultsToCompute;
270 template<
typename algorithmFPType>
271 class DAAL_EXPORT Parameter<algorithmFPType, sumDense> :
public BaseParameter
274 Parameter(
const bool doScale =
true);
281 template<
typename algorithmFPType>
282 class DAAL_EXPORT Parameter<algorithmFPType, defaultDense> :
public BaseParameter
286 Parameter(
const services::SharedPtr<low_order_moments::BatchImpl> &momentsForParameter =
287 services::SharedPtr<low_order_moments::Batch<algorithmFPType, low_order_moments::defaultDense> >
288 (
new low_order_moments::Batch<algorithmFPType, low_order_moments::defaultDense>()),
const bool doScale =
true);
290 services::SharedPtr<low_order_moments::BatchImpl> moments;
297 virtual services::Status check() const DAAL_C11_OVERRIDE;
301 using interface1::Input;
302 using interface3::Parameter;
303 using interface3::BaseParameter;
304 using interface2::Result;
305 using interface2::ResultPtr;
daal
Definition: algorithm_base_common.h:31
daal::algorithms::normalization::zscore::interface3::Parameter< algorithmFPType, defaultDense >::moments
services::SharedPtr< low_order_moments::BatchImpl > moments
Definition: zscore_types.h:290
daal::algorithms::normalization::zscore::defaultDense
Definition: zscore_types.h:64
daal::algorithms::normalization::zscore::Method
Method
Definition: zscore_types.h:62
daal::algorithms::normalization::zscore::sumDense
Definition: zscore_types.h:65
daal::algorithms::normalization::zscore::variances
Definition: zscore_types.h:90
daal::algorithms::normalization::zscore::data
Definition: zscore_types.h:76
daal::algorithms::normalization::zscore::variance
Definition: zscore_types.h:104
daal::algorithms::normalization::zscore::InputId
InputId
Definition: zscore_types.h:74
daal::algorithms::normalization::zscore::interface2::Result
Provides methods to access final results obtained with the compute() method of the z-score normalizat...
Definition: zscore_types.h:169
daal::algorithms::normalization::zscore::means
Definition: zscore_types.h:89
daal::algorithms::normalization::zscore::ResultToComputeId
ResultToComputeId
Definition: zscore_types.h:100
daal::algorithms::math::abs::value
Definition: abs_types.h:86
daal::algorithms::normalization::zscore::interface3::Parameter
Class that specifies the parameters of the algorithm in the batch computing mode. ...
Definition: zscore_types.h:252
daal::algorithms::normalization::zscore::interface3::BaseParameter
Class that specifies the base parameters of the algorithm in the batch computing mode.
Definition: zscore_types.h:258
daal::algorithms::normalization::zscore::ResultId
ResultId
Definition: zscore_types.h:86
daal::algorithms::normalization::zscore::mean
Definition: zscore_types.h:103
daal::algorithms::normalization::zscore::interface3::BaseParameter::resultsToCompute
DAAL_UINT64 resultsToCompute
Definition: zscore_types.h:262
daal::algorithms::normalization::zscore::normalizedData
Definition: zscore_types.h:88
daal::algorithms::normalization::zscore::interface3::BaseParameter::doScale
bool doScale
Definition: zscore_types.h:263