You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
416 B
C
19 lines
416 B
C
#include "genlib.h"
|
|
#include "log.h"
|
|
#include <math.h>
|
|
#include <stdio.h>
|
|
|
|
/*gamma covariance function*/
|
|
double gammf(double h, double alpha) {
|
|
log_info("RESULT = in progress, h = %f, alpha = %f", h, alpha);
|
|
|
|
float delta;
|
|
double z;
|
|
|
|
delta = pow(20., 1. / alpha) - 1.;
|
|
z = 1. / (double)(pow(1. + h * delta, alpha));
|
|
|
|
log_info("RESULT = success, delta = %f, z = %f", delta, z);
|
|
return z;
|
|
}
|