https://github.com/cran/RandomFields
Raw File
Tip revision: 4bc32bd061c76a02949270617ad5126c6ac8d065 authored by Martin Schlather on 22 September 2006, 00:00:00 UTC
version 1.3.29
Tip revision: 4bc32bd
RFother.cc
/* 
 Authors
 Martin Schlather, schlath@hsu-hh.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);
 {
    register long i,endfor;
    endfor = key->totalpoints;
    for (i=0;i<endfor;i++) { res[i]=0.0; }
  }
}

 
back to top