Пример #1
0
 public static extern ErrorType normalized_function_set_normalizer(SvmKernelType kernelType,
                                                                   MatrixElementType type,
                                                                   int templateRows,
                                                                   int templateColumns,
                                                                   SvmFunctionType function_type,
                                                                   IntPtr function,
                                                                   NormalizerType normalizer_type,
                                                                   IntPtr normalizer);
Пример #2
0
        internal static NativeMethods.NormalizerType ToNativeNormalizerType(this NormalizerType normalizerType)
        {
            switch (normalizerType)
            {
            case NormalizerType.Vector:
                return(NativeMethods.NormalizerType.Vector);

            case NormalizerType.VectorPca:
                return(NativeMethods.NormalizerType.VectorPca);

            default:
                throw new ArgumentOutOfRangeException(nameof(normalizerType), normalizerType, null);
            }
        }
Пример #3
0
        public static Normalizer CreateFeatureNormalize(NormalizerType type, int featureSize)
        {
            Normalizer norm = null;

            switch (type)
            {
            case NormalizerType.NONE:
                norm = new Normalizer(featureSize);
                break;

            case NormalizerType.MIN_MAX:
                norm = new MinMaxNormalizer(featureSize);
                break;
            }
            return(norm);
        }
Пример #4
0
 protected Normalizer(NormalizerType normalizerType, bool isEnabledDispose = true)
     : base(isEnabledDispose)
 {
     this.NormalizerType = normalizerType;
 }