CMSIS-DSP  
CMSIS DSP Software Library
svm_functions.h File Reference

Data Structures

struct  arm_svm_linear_instance_f32
 Instance structure for linear SVM prediction function. More...
 
struct  arm_svm_polynomial_instance_f32
 Instance structure for polynomial SVM prediction function. More...
 
struct  arm_svm_rbf_instance_f32
 Instance structure for rbf SVM prediction function. More...
 
struct  arm_svm_sigmoid_instance_f32
 Instance structure for sigmoid SVM prediction function. More...
 

Macros

#define STEP(x)   (x) <= 0 ? 0 : 1
 

Functions

__STATIC_INLINE float32_t arm_exponent_f32 (float32_t x, int32_t nb)
 Integer exponentiation. More...
 
void arm_svm_linear_init_f32 (arm_svm_linear_instance_f32 *S, uint32_t nbOfSupportVectors, uint32_t vectorDimension, float32_t intercept, const float32_t *dualCoefficients, const float32_t *supportVectors, const int32_t *classes)
 SVM linear instance init function. More...
 
void arm_svm_linear_predict_f32 (const arm_svm_linear_instance_f32 *S, const float32_t *in, int32_t *pResult)
 SVM linear prediction. More...
 
void arm_svm_polynomial_init_f32 (arm_svm_polynomial_instance_f32 *S, uint32_t nbOfSupportVectors, uint32_t vectorDimension, float32_t intercept, const float32_t *dualCoefficients, const float32_t *supportVectors, const int32_t *classes, int32_t degree, float32_t coef0, float32_t gamma)
 SVM polynomial instance init function. More...
 
void arm_svm_polynomial_predict_f32 (const arm_svm_polynomial_instance_f32 *S, const float32_t *in, int32_t *pResult)
 SVM polynomial prediction. More...
 
void arm_svm_rbf_init_f32 (arm_svm_rbf_instance_f32 *S, uint32_t nbOfSupportVectors, uint32_t vectorDimension, float32_t intercept, const float32_t *dualCoefficients, const float32_t *supportVectors, const int32_t *classes, float32_t gamma)
 SVM radial basis function instance init function. More...
 
void arm_svm_rbf_predict_f32 (const arm_svm_rbf_instance_f32 *S, const float32_t *in, int32_t *pResult)
 SVM rbf prediction. More...
 
void arm_svm_sigmoid_init_f32 (arm_svm_sigmoid_instance_f32 *S, uint32_t nbOfSupportVectors, uint32_t vectorDimension, float32_t intercept, const float32_t *dualCoefficients, const float32_t *supportVectors, const int32_t *classes, float32_t coef0, float32_t gamma)
 SVM sigmoid instance init function. More...
 
void arm_svm_sigmoid_predict_f32 (const arm_svm_sigmoid_instance_f32 *S, const float32_t *in, int32_t *pResult)
 SVM sigmoid prediction. More...
 

Macro Definition Documentation

◆ STEP

#define STEP (   x)    (x) <= 0 ? 0 : 1

Function Documentation

◆ arm_exponent_f32()

__STATIC_INLINE float32_t arm_exponent_f32 ( float32_t  x,
int32_t  nb 
)
Parameters
[in]xvalue
[in]nbinteger exponent >= 1
Returns
x^nb