CreateReduction

API definition

IReduction *CreateReduction(std::string typeName, const ReductionConfig &config);

Function

Creates a specific dimension reduction algorithm.

Input

std::string typeName: dimension reduction algorithm parameter, which can be NN or PCAR.

Reduction &config: dimension reduction parameter.

Output

N/A

Return value

IReduction *CreateReduction: created dimension reduction instance.

Restrictions

Currently, only NN and PCAR are supported for dimension reduction. If other parameters are used, an exception is thrown.

After using the instance, delete the pointer to destroy the corresponding space.