48 #ifndef __ZSCORE_TYPES_H__
49 #define __ZSCORE_TYPES_H__
51 #include "algorithms/algorithm.h"
52 #include "data_management/data/numeric_table.h"
53 #include "data_management/data/homogen_numeric_table.h"
54 #include "algorithms/moments/low_order_moments_batch.h"
55 #include "services/daal_defines.h"
70 namespace normalization
117 lastResultId = variances
126 enum ResultToComputeId
128 none = 0x00000000ULL,
129 mean = 0x00000001ULL,
130 variance = 0x00000002ULL
144 class DAAL_EXPORT Input :
public daal::algorithms::Input
151 Input(
const Input& other);
160 data_management::NumericTablePtr
get(InputId id)
const;
167 void set(InputId
id,
const data_management::NumericTablePtr &ptr);
176 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
194 template<
typename algorithmFPType, Method method>
195 class DAAL_EXPORT Parameter {};
201 class DAAL_EXPORT BaseParameter :
public daal::algorithms::Parameter
205 DAAL_UINT64 resultsToCompute;
212 template<
typename algorithmFPType>
213 class DAAL_EXPORT Parameter<algorithmFPType, sumDense> :
public BaseParameter
223 template<
typename algorithmFPType>
224 class DAAL_EXPORT Parameter<algorithmFPType, defaultDense> :
public BaseParameter
228 Parameter(
const services::SharedPtr<low_order_moments::BatchImpl> &momentsForParameter =
229 services::SharedPtr<low_order_moments::Batch<algorithmFPType, low_order_moments::defaultDense> >
230 (
new low_order_moments::Batch<algorithmFPType, low_order_moments::defaultDense>()));
232 services::SharedPtr<low_order_moments::BatchImpl> moments;
239 virtual services::Status check() const DAAL_C11_OVERRIDE;
247 class DAAL_EXPORT Result : public daal::algorithms::Result
250 DECLARE_SERIALIZABLE_CAST(Result);
253 virtual ~Result() {};
263 template <
typename algorithmFPType>
264 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
274 template <
typename algorithmFPType>
275 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const int method);
284 data_management::NumericTablePtr
get(ResultId id)
const;
291 void set(ResultId
id,
const data_management::NumericTablePtr &value);
301 services::Status check(
const daal::algorithms::Input *in,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
305 template<
typename Archive,
bool onDeserialize>
306 services::Status serialImpl(Archive *arch)
308 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
311 typedef services::SharedPtr<Result> ResultPtr;
318 using interface1::Input;
319 using interface2::Parameter;
320 using interface2::BaseParameter;
321 using interface2::Result;
322 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:201
daal
Definition: algorithm_base_common.h:57
daal::algorithms::normalization::zscore::interface2::Parameter< algorithmFPType, defaultDense >::moments
services::SharedPtr< low_order_moments::BatchImpl > moments
Definition: zscore_types.h:232
daal::algorithms::normalization::zscore::defaultDense
Definition: zscore_types.h:90
daal::algorithms::normalization::zscore::Method
Method
Definition: zscore_types.h:88
daal::algorithms::normalization::zscore::sumDense
Definition: zscore_types.h:91
daal::algorithms::normalization::zscore::variances
Definition: zscore_types.h:116
daal::algorithms::normalization::zscore::data
Definition: zscore_types.h:102
daal::algorithms::normalization::zscore::variance
Definition: zscore_types.h:130
daal::algorithms::normalization::zscore::interface2::Parameter
Class that specifies the parameters of the algorithm in the batch computing mode. ...
Definition: zscore_types.h:195
daal::algorithms::normalization::zscore::InputId
InputId
Definition: zscore_types.h:100
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:247
daal::algorithms::normalization::zscore::means
Definition: zscore_types.h:115
daal::algorithms::normalization::zscore::ResultToComputeId
ResultToComputeId
Definition: zscore_types.h:126
daal::algorithms::math::abs::value
Definition: abs_types.h:112
daal::algorithms::normalization::zscore::ResultId
ResultId
Definition: zscore_types.h:112
daal::algorithms::normalization::zscore::mean
Definition: zscore_types.h:129
daal::algorithms::normalization::zscore::normalizedData
Definition: zscore_types.h:114
daal::algorithms::normalization::zscore::interface2::BaseParameter::resultsToCompute
DAAL_UINT64 resultsToCompute
Definition: zscore_types.h:205