Changeset 7228 in ntrip for trunk/BNC/src/bncutils.cpp
- Timestamp:
- Aug 18, 2015, 10:41:32 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncutils.cpp
r7183 r7228 444 444 int r = (int) floor((n - m) / 2); 445 445 for (int k = 0; k <= r; k++) { 446 447 448 446 sum += (pow(-1.0, (double)k) * factorial(2*n - 2*k) 447 / (factorial(k) * factorial(n-k) * factorial(n-m-2*k)) 448 * pow(t, (double)n-m-2*k)); 449 449 } 450 450 double fac = pow(2.0,(double) -n) * pow((1 - t*t), (double)m/2);
Note:
See TracChangeset
for help on using the changeset viewer.