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);
251 Result(
const Result& o);
254 virtual ~Result() {};
264 template <
typename algorithmFPType>
265 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
275 template <
typename algorithmFPType>
276 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const int method);
285 data_management::NumericTablePtr
get(ResultId id)
const;
292 void set(ResultId id,
const data_management::NumericTablePtr &value);
302 services::Status check(
const daal::algorithms::Input *in,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
306 template<
typename Archive,
bool onDeserialize>
307 services::Status serialImpl(Archive *arch)
309 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
312 typedef services::SharedPtr<Result> ResultPtr;
319 using interface1::Input;
320 using interface2::Parameter;
321 using interface2::BaseParameter;
322 using interface2::Result;
323 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::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::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::interface1::Parameter
Base class to represent computation parameters. Algorithm-specific parameters are represented as deri...
Definition: algorithm_types.h:86
daal::algorithms::normalization::zscore::variance
Definition: zscore_types.h:130
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::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::low_order_moments::interface1::Batch
Computes moments of low order in the batch processing mode.
Definition: low_order_moments_batch.h:208
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