| 1 | /* Copyright Ton Dieker */ | ||||||||||
| 2 | /* Centre of Mathematics and Computer Science (CWI) Amsterdam */ | ||||||||||
| 3 | /* April 2002 */ | ||||||||||
| 4 | |||||||||||
| 5 | /* ton@cwi.nl */ | ||||||||||
| 6 | |||||||||||
| 7 | |||||||||||
| 8 | #include <math.h> | ||||||||||
| 9 | |||||||||||
| 10 | 129 | extern double covariance(long i, double H) { | |||||||||
| 11 | 129 | ▶ | if (i == 0) return 1; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 12 | 127 | else return (pow(i-1,2*H)-2*pow(i,2*H)+pow(i+1,2*H))/2; | |||||||||
| 13 | } | ||||||||||