#include <math.h>
#include <stdio.h>
#include "arm_math.h"
#define NB_SUPPORT_VECTORS 11
#define VECTOR_DIMENSION 2
const float32_t dualCoefficients[NB_SUPPORT_VECTORS]={-0.01628988f, -0.0971605f,
-0.02707579f, 0.0249406f, 0.00223095f, 0.04117345f,
0.0262687f, 0.00800358f, 0.00581823f, 0.02346904f, 0.00862162f};
const float32_t supportVectors[NB_SUPPORT_VECTORS*VECTOR_DIMENSION]={ 1.2510991f, 0.47782799f,
-0.32711859f, -1.49880648f, -0.08905047f, 1.31907242f,
1.14059333f, 2.63443767f, -2.62561524f, 1.02120701f,
-1.2361353f, -2.53145187f,
2.28308122f, -1.58185875f, 2.73955981f, 0.35759327f,
0.56662986f, 2.79702016f,
-2.51380816f, 1.29295364f, -0.56658669f, -2.81944734f};
const int32_t classes[2]={0,1};
int32_t main(void)
{
int32_t result;
NB_SUPPORT_VECTORS,
VECTOR_DIMENSION,
-1.661719f,
dualCoefficients,
supportVectors,
classes,
3,
1.100000f,
0.500000f
);
in[0] = 0.4f;
in[1] = 0.1f;
#if defined(SEMIHOSTING)
printf("Result = %d\n", result);
#endif
in[0] = 3.0f;
in[1] = 0.0f;
#if defined(SEMIHOSTING)
printf("Result = %d\n", result);
#endif
#if !defined(SEMIHOSTING)
while (1);
#endif
}