cov.c

filter: Statementstmt 100% 3 / 3 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 5 / 5 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« Brownian.xs ↑ Summary fft.c »
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
BranchTrueFalseTotal
if (i == 0) return 1; 2 127 129
12 127 else return (pow(i-1,2*H)-2*pow(i,2*H)+pow(i+1,2*H))/2;
13 }
« Brownian.xs ↑ Summary fft.c »