I see what you mean but since this component is licensed both under GPL and commercial terms, it will be no problem downloading a version for each person that will be using it. Just make sure the .h header file will be in the right folder so that the #include will work.
Have you managed to display the results in tabular format? I have come up with the following piece of code which I believe is an implementation of your algorithm.
#include <stdio.h> #include <codecogs/stats/dists/continuous/normal/pdf.h> // the number of points #define N 4 int main() { double mean; printf("mean = "); scanf("%lf", &mean); double stdev; printf("standard deviation = "); scanf("%lf", &stdev); double x[N]; printf("\nthe given points:\n\n"); for (int i = 0; i < N; i++) { printf("x[%d] = ", i+1); scanf("%lf", &x[i]); } printf("\nfunction values:\n\n"); for (int i = 0; i < N; i++) printf("x = %lf\tf(x)= %lf\n", x[i], Stats::Dists::Continuous::Normal::PDF(x[i])); printf("\n"); return 0; }
Notice that you may change the number of points through the #define at the beginning of the code. Looking forward to your reply.
Login