daily pastebin goal
71%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void kDensity (int *m, int *n, double *g, double *x, double *y, double *bw) {
  2.   double a;
  3.   for(int i=0; i<*m; i++) {
  4.     a = 0.0;
  5.     for(int j=0; j<*n; j++) {
  6.       a += dnorm((x[j]-g[i]) / *bw, 0, 1, 0);
  7.     }
  8.     y[i] = a/(*n * *bw);
  9.   }
  10. }
RAW Paste Data
Top