https://github.com/cran/RandomFields
Tip revision: fe22a81d919a54b5245a7b688434663a5674ceb5 authored by Martin Schlather on 24 October 2010, 00:00:00 UTC
version 1.3.44
version 1.3.44
Tip revision: fe22a81
RFother.cc
/*
Authors
Martin Schlather, martin.schlather@math.uni-goettingen.de
all around the nugget effect -- needs special treatment
Copyright (C) 2001 -- 2006 Martin Schlather,
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <math.h>
#include <stdio.h>
#include <assert.h>
#include "RFsimu.h"
int init_special(key_type *key, int m){
return ERRORNOTPROGRAMMED;
// calls key->initother
// do_special calls key->other
/*
if (m==0) KEY[*keyNr].cov->other(key,res );
else {
KEY[*keyNr].cov->other(key,part_result );
for (i=0, i<KEY[*keyNr].totalpoints; i++) res[i] += part_result[i];
}
*/
}
void do_special(key_type *key, int m, double *res ) {
assert(false);
{
long i,endfor;
endfor = key->totalpoints;
for (i=0;i<endfor;i++) { res[i]=0.0; }
}
}