24 #ifndef __ZSCORE_TYPES_H__
25 #define __ZSCORE_TYPES_H__
27 #include "algorithms/algorithm.h"
28 #include "data_management/data/numeric_table.h"
29 #include "data_management/data/homogen_numeric_table.h"
30 #include "algorithms/moments/low_order_moments_batch.h"
31 #include "services/daal_defines.h"
46 namespace normalization
93 lastResultId = variances
102 enum ResultToComputeId
104 none = 0x00000000ULL,
105 mean = 0x00000001ULL,
106 variance = 0x00000002ULL
120 class DAAL_EXPORT Input :
public daal::algorithms::Input
127 Input(
const Input& other);
136 data_management::NumericTablePtr
get(InputId id)
const;
143 void set(InputId
id,
const data_management::NumericTablePtr &ptr);
152 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
171 class DAAL_EXPORT Result :
public daal::algorithms::Result
174 DECLARE_SERIALIZABLE_CAST(Result);
175 Result(
const Result& o);
178 virtual ~Result() {};
188 template <
typename algorithmFPType>
189 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
199 template <
typename algorithmFPType>
200 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const int method);
209 data_management::NumericTablePtr
get(ResultId id)
const;
216 void set(ResultId
id,
const data_management::NumericTablePtr &value);
226 services::Status check(
const daal::algorithms::Input *in,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
230 template<
typename Archive,
bool onDeserialize>
231 services::Status serialImpl(Archive *arch)
233 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
236 typedef services::SharedPtr<Result> ResultPtr;
253 template<
typename algorithmFPType, Method method>
254 class DAAL_EXPORT Parameter {};
260 class DAAL_EXPORT BaseParameter :
public daal::algorithms::Parameter
263 BaseParameter(
const bool doScale =
true);
264 DAAL_UINT64 resultsToCompute;
272 template<
typename algorithmFPType>
273 class DAAL_EXPORT Parameter<algorithmFPType, sumDense> :
public BaseParameter
276 Parameter(
const bool doScale =
true);
283 template<
typename algorithmFPType>
284 class DAAL_EXPORT Parameter<algorithmFPType, defaultDense> :
public BaseParameter
288 Parameter(
const services::SharedPtr<low_order_moments::BatchImpl> &momentsForParameter =
289 services::SharedPtr<low_order_moments::Batch<algorithmFPType, low_order_moments::defaultDense> >
290 (
new low_order_moments::Batch<algorithmFPType, low_order_moments::defaultDense>()),
const bool doScale =
true);
292 services::SharedPtr<low_order_moments::BatchImpl> moments;
299 virtual services::Status check() const DAAL_C11_OVERRIDE;
303 using interface1::Input;
304 using interface3::Parameter;
305 using interface3::BaseParameter;
306 using interface2::Result;
307 using interface2::ResultPtr;
daal::algorithms::normalization::zscore::mean
Definition: zscore_types.h:105
daal::algorithms::normalization::zscore::interface3::Parameter
Class that specifies the parameters of the algorithm in the batch computing mode. ...
Definition: zscore_types.h:254
daal::algorithms::normalization::zscore::means
Definition: zscore_types.h:91
daal::algorithms::normalization::zscore::InputId
InputId
Definition: zscore_types.h:76
daal::algorithms::normalization::zscore::interface3::BaseParameter::resultsToCompute
DAAL_UINT64 resultsToCompute
Definition: zscore_types.h:264
daal::algorithms::normalization::zscore::interface3::Parameter< algorithmFPType, defaultDense >::moments
services::SharedPtr< low_order_moments::BatchImpl > moments
Definition: zscore_types.h:292
daal::algorithms::normalization::zscore::interface3::BaseParameter
Class that specifies the base parameters of the algorithm in the batch computing mode.
Definition: zscore_types.h:260
daal::algorithms::normalization::zscore::data
Definition: zscore_types.h:78
daal::algorithms::normalization::zscore::variance
Definition: zscore_types.h:106
daal::algorithms::normalization::zscore::normalizedData
Definition: zscore_types.h:90
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:171
daal::algorithms::normalization::zscore::interface3::BaseParameter::doScale
bool doScale
Definition: zscore_types.h:265
daal::algorithms::normalization::zscore::defaultDense
Definition: zscore_types.h:66
daal::algorithms::normalization::zscore::Method
Method
Definition: zscore_types.h:64
daal::algorithms::normalization::zscore::sumDense
Definition: zscore_types.h:67
daal::algorithms::normalization::zscore::ResultId
ResultId
Definition: zscore_types.h:88
daal::algorithms::normalization::zscore::variances
Definition: zscore_types.h:92
daal::algorithms::math::abs::value
Definition: abs_types.h:88
daal::algorithms::normalization::zscore::interface1::Input
Input objects for the z-score normalization algorithm
Definition: zscore_types.h:120
daal::algorithms::normalization::zscore::ResultToComputeId
ResultToComputeId
Definition: zscore_types.h:102