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;
168 template<
typename algorithmFPType, Method method>
169 class DAAL_EXPORT Parameter {};
175 class DAAL_EXPORT BaseParameter :
public daal::algorithms::Parameter
179 DAAL_UINT64 resultsToCompute;
186 template<
typename algorithmFPType>
187 class DAAL_EXPORT Parameter<algorithmFPType, sumDense> :
public BaseParameter
197 template<
typename algorithmFPType>
198 class DAAL_EXPORT Parameter<algorithmFPType, defaultDense> :
public BaseParameter
202 Parameter(
const services::SharedPtr<low_order_moments::BatchImpl> &momentsForParameter =
203 services::SharedPtr<low_order_moments::Batch<algorithmFPType, low_order_moments::defaultDense> >
204 (
new low_order_moments::Batch<algorithmFPType, low_order_moments::defaultDense>()));
206 services::SharedPtr<low_order_moments::BatchImpl> moments;
213 virtual services::Status check() const DAAL_C11_OVERRIDE;
221 class DAAL_EXPORT Result : public daal::algorithms::Result
224 DECLARE_SERIALIZABLE_CAST(Result);
225 Result(
const Result& o);
228 virtual ~Result() {};
238 template <
typename algorithmFPType>
239 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
249 template <
typename algorithmFPType>
250 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const int method);
259 data_management::NumericTablePtr
get(ResultId id)
const;
266 void set(ResultId
id,
const data_management::NumericTablePtr &value);
276 services::Status check(
const daal::algorithms::Input *in,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
280 template<
typename Archive,
bool onDeserialize>
281 services::Status serialImpl(Archive *arch)
283 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
286 typedef services::SharedPtr<Result> ResultPtr;
293 using interface1::Input;
294 using interface2::Parameter;
295 using interface2::BaseParameter;
296 using interface2::Result;
297 using interface2::ResultPtr;
daal::algorithms::normalization::zscore::interface2::BaseParameter
Class that specifies the base parameters of the algorithm in the batch computing mode.
Definition: zscore_types.h:175
daal
Definition: algorithm_base_common.h:31
daal::algorithms::normalization::zscore::interface2::Parameter< algorithmFPType, defaultDense >::moments
services::SharedPtr< low_order_moments::BatchImpl > moments
Definition: zscore_types.h:206
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::interface2::Parameter
Class that specifies the parameters of the algorithm in the batch computing mode. ...
Definition: zscore_types.h:169
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:221
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::ResultId
ResultId
Definition: zscore_types.h:86
daal::algorithms::normalization::zscore::mean
Definition: zscore_types.h:103
daal::algorithms::normalization::zscore::normalizedData
Definition: zscore_types.h:88
daal::algorithms::normalization::zscore::interface2::BaseParameter::resultsToCompute
DAAL_UINT64 resultsToCompute
Definition: zscore_types.h:179