1.2.3
CCC
 
spatial.cpp File Reference
#include "geoslib_old_f.h"
#include "Basic/Utilities.hpp"
#include "Db/Db.hpp"

Functions

int cgi (Db *db, int iatt, VectorDouble &center, VectorDouble &mvalue, MatrixRectangular &mvector, double *inertia, double *wztot)
 
int spatial (Db *db, double *totab, double *parea, double *eqarea)
 

Function Documentation

int cgi ( Db db,
int  iatt,
VectorDouble center,
VectorDouble mvalue,
MatrixRectangular mvector,
double *  inertia,
double *  wztot 
)

Calculate the Center of Gravity

Returns
Error returned code
Parameters
[in]dbDb structure
[in]iattRank of the optional attribute
[out]centerArray for the center of gravity
[out]mvalueArray of eigen values (normalized)
[out]mvectorArray of eigen vectors
[out]inertiaValue of the inertia
[out]wztotSum of weights
Remarks
'mvalue' must be dimensioned to ndim
'mvector' must be dimensioned to ndim * ndim
int spatial ( Db db,
double *  totab,
double *  parea,
double *  eqarea 
)

Calculate several Spatial indices

Returns
Error returned code
Parameters
[in]dbDb structure
[out]totabTotal Abundance
[out]pareaPositive area
[out]eqareaEquivalent area
Remarks
This functions have been developped in the scope of the UE
program Fisboat, DG-Fish, STREP #502572