Add logs
parent
e52630f86d
commit
1e9aefebf0
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,9 +1,11 @@
|
|||||||
#include "genlib.h"
|
#include "genlib.h"
|
||||||
|
#include "log.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
/*exponential covariance function*/
|
/*exponential covariance function*/
|
||||||
double exponential(double h)
|
double exponential(double h) {
|
||||||
{
|
log_info("RESULT = in progress, h = %f", h);
|
||||||
|
|
||||||
return (exp(-3. * (double)h));
|
return (exp(-3. * (double)h));
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,18 @@
|
|||||||
#include "genlib.h"
|
#include "genlib.h"
|
||||||
|
#include "log.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
/*gamma covariance function*/
|
/*gamma covariance function*/
|
||||||
double gammf(double h, double alpha)
|
double gammf(double h, double alpha) {
|
||||||
{
|
log_info("RESULT = in progress, h = %f, alpha = %f", h, alpha);
|
||||||
|
|
||||||
float delta;
|
float delta;
|
||||||
double z;
|
double z;
|
||||||
|
|
||||||
delta = pow(20., 1. / alpha) - 1.;
|
delta = pow(20., 1. / alpha) - 1.;
|
||||||
z = 1. / (double)(pow(1. + h * delta, alpha));
|
z = 1. / (double)(pow(1. + h * delta, alpha));
|
||||||
return (z);
|
|
||||||
|
log_info("RESULT = success, delta = %f, z = %f", delta, z);
|
||||||
|
return z;
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
#include "genlib.h"
|
#include "genlib.h"
|
||||||
|
#include "log.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
/*gaussian covariance function*/
|
/*gaussian covariance function*/
|
||||||
double gaussian(double h)
|
double gaussian(double h) {
|
||||||
{
|
log_info("RESULT = in progress, h = %f", h);
|
||||||
return (exp(-3. * (double)(h * h)));
|
return (exp(-3. * (double)(h * h)));
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
#include "genlib.h"
|
#include "genlib.h"
|
||||||
|
#include "log.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
/*power covariance function*/
|
/*power covariance function*/
|
||||||
double power(double h, double alpha)
|
double power(double h, double alpha) {
|
||||||
{
|
log_info("RESULT = in progress, h = %f, alpha = %f", h, alpha);
|
||||||
return (pow(h, alpha));
|
return pow(h, alpha);
|
||||||
}
|
}
|
||||||
|
@ -1,16 +1,19 @@
|
|||||||
#include "genlib.h"
|
#include "genlib.h"
|
||||||
|
#include "log.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
/*spherical covariance function*/
|
/*spherical covariance function*/
|
||||||
double spherical(double h)
|
double spherical(double h) {
|
||||||
{
|
|
||||||
double z;
|
double z;
|
||||||
|
log_info("RESULT = in progress, h = %f", h);
|
||||||
|
|
||||||
if (h >= 1.) {
|
if (h >= 1.) {
|
||||||
z = 0.;
|
z = 0.;
|
||||||
} else {
|
} else {
|
||||||
z = 1. - 1.5 * (double)h + 0.5 * (double)(h * h * h);
|
z = 1. - 1.5 * (double)h + 0.5 * (double)(h * h * h);
|
||||||
}
|
}
|
||||||
return (z);
|
log_info("RESULT = success, z = %f", z);
|
||||||
|
|
||||||
|
return z;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue