#include "arm_math.h"
#if defined(SEMIHOSTING)
#include <stdio.h>
#endif
#define USE_STATIC_INIT
#define TEST_LENGTH_SAMPLES (20*4)
const float32_t testMarks_f32[TEST_LENGTH_SAMPLES] =
{
42.000000, 37.000000, 81.000000, 28.000000,
83.000000, 72.000000, 36.000000, 38.000000,
32.000000, 51.000000, 63.000000, 64.000000,
97.000000, 82.000000, 95.000000, 90.000000,
66.000000, 51.000000, 54.000000, 42.000000,
67.000000, 56.000000, 45.000000, 57.000000,
67.000000, 69.000000, 35.000000, 52.000000,
29.000000, 81.000000, 58.000000, 47.000000,
38.000000, 76.000000, 100.000000, 29.000000,
33.000000, 47.000000, 29.000000, 50.000000,
34.000000, 41.000000, 61.000000, 46.000000,
52.000000, 50.000000, 48.000000, 36.000000,
47.000000, 55.000000, 44.000000, 40.000000,
100.000000, 94.000000, 84.000000, 37.000000,
32.000000, 71.000000, 47.000000, 77.000000,
31.000000, 50.000000, 49.000000, 35.000000,
63.000000, 67.000000, 40.000000, 31.000000,
29.000000, 68.000000, 61.000000, 38.000000,
31.000000, 28.000000, 28.000000, 76.000000,
55.000000, 33.000000, 29.000000, 39.000000
};
{
1.000, 1.000, 1.000, 1.000
};
static float32_t testOutput[TEST_LENGTH_SAMPLES];
#define NUMSTUDENTS 20
#define NUMSUBJECTS 4
uint32_t numStudents = 20;
uint32_t numSubjects = 4;
float32_t max_marks, min_marks, mean, std, var;
uint32_t student_num;
int32_t main()
{
#ifndef USE_STATIC_INIT
#else
#endif
arm_max_f32(testOutput, numStudents, &max_marks, &student_num);
arm_min_f32(testOutput, numStudents, &min_marks, &student_num);
#if defined(SEMIHOSTING)
printf("mean = %f, std = %f\n",(double)mean,(double)std);
#endif
#if !defined(SEMIHOSTING)
while (1);
#endif
}