Class Marks Example

group ClassMarks

Refer riscv_class_marks_example_f32.c


Demonstrates the use the Maximum, Minimum, Mean, Standard Deviation, Variance and Matrix functions to calculate statistical values of marks obtained in a class.

Variables Description:

  • testMarks_f32 points to the marks scored by 20 students in 4 subjects

  • max_marks Maximum of all marks

  • min_marks Minimum of all marks

  • mean Mean of all marks

  • var Variance of the marks

  • std Standard deviation of the marks

  • numStudents Total number of students in the class

NMSIS DSP Software Library Functions Used:

  • riscv_mat_init_f32()

  • riscv_mat_mult_f32()

  • riscv_max_f32()

  • riscv_min_f32()

  • riscv_mean_f32()

  • riscv_std_f32()

  • riscv_var_f32()


This example also demonstrates the usage of static initialization.