svm_defines.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /******************************************************************************
  2. * @file svm_defines.h
  3. * @brief Public header file for NMSIS DSP Library
  4. * @version V1.10.0
  5. * @date 08 July 2021
  6. *
  7. * Target Processor: RISC-V Cores
  8. ******************************************************************************/
  9. /*
  10. * Copyright (c) 2010-2020 Arm Limited or its affiliates. All rights reserved.
  11. * Copyright (c) 2019 Nuclei Limited. All rights reserved.
  12. *
  13. * SPDX-License-Identifier: Apache-2.0
  14. *
  15. * Licensed under the Apache License, Version 2.0 (the License); you may
  16. * not use this file except in compliance with the License.
  17. * You may obtain a copy of the License at
  18. *
  19. * www.apache.org/licenses/LICENSE-2.0
  20. *
  21. * Unless required by applicable law or agreed to in writing, software
  22. * distributed under the License is distributed on an AS IS BASIS, WITHOUT
  23. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  24. * See the License for the specific language governing permissions and
  25. * limitations under the License.
  26. */
  27. #ifndef SVM_DEFINES_H_
  28. #define SVM_DEFINES_H_
  29. /**
  30. * @brief Struct for specifying SVM Kernel
  31. */
  32. typedef enum
  33. {
  34. RISCV_ML_KERNEL_LINEAR = 0,
  35. /**< Linear kernel */
  36. RISCV_ML_KERNEL_POLYNOMIAL = 1,
  37. /**< Polynomial kernel */
  38. RISCV_ML_KERNEL_RBF = 2,
  39. /**< Radial Basis Function kernel */
  40. RISCV_ML_KERNEL_SIGMOID = 3
  41. /**< Sigmoid kernel */
  42. } riscv_ml_kernel_type;
  43. #endif