2
* File based on algoritmos.cpp and sv.cpp from the TerraView plugin.
3
* C++ source originally created by Marcos Oliveira Prates from the
4
* Department of Statistics, UFMG, Brazil on 06 April 2006
6
* R interface by Michael Höhle initiated on 12 Jan 2009
7
* Note: Some function names are in Portugese
19
friend bool operator<(const SVEvent &a, const SVEvent &b) {
24
//STL is used (check its use)
25
typedef std::list<SVEvent> SVEventLst;
27
//Functions provided in sr-spacetime.cc
28
int CalculaNCj(short **MSpace, const int EvtN, const int EvtJ);
29
int ContaEvt(short **MSpace, const int EvtN, const int EvtJ);
30
int SistemadeVigilancia(SVEventLst &, const double RaioC, const double epslon,
31
std::valarray<double> &R);
32
int CalculaLambda(SVEventLst &ev, const double RaioC, const double epslon,
33
std::valarray<double> &R, unsigned int &numObs);
35
// Hoehle wrapper function to create SVEvent list
36
//void SRspacetime(double *x, double *y, double *t, long *n, double *radius, double *epsilon, double *Rarray);