1.1.0
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, double *center, double *mvalue, double *mvector, double *inertia, double *wztot)
 
int spatial (Db *db, double *totab, double *parea, double *eqarea)
 

Function Documentation

int cgi ( Db db,
int  iatt,
double *  center,
double *  mvalue,
double *  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
The array mvalue must be dimensionned to ndim
The array mvector must be dimensionned 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