1.11.1
CCC
 
Loading...
Searching...
No Matches
gstlrn::VarioOrder Class Reference

#include <VarioOrder.hpp>

Public Member Functions

 VarioOrder (Id flag_dist=0, Id size_aux=0)
 
 VarioOrder (const VarioOrder &r)=default
 
VarioOrderoperator= (const VarioOrder &r)=default
 
virtual ~VarioOrder ()=default
 
Id final ()
 
void clear ()
 
void printout (Id idir_target, Id ipas_target, Id verbose)
 
void getBounds (Id idir, Id ilag, Id *ifirst, Id *ilast) const
 
void getIndices (Id ipair, Id *iech, Id *jech, double *dist) const
 
void getAuxiliary (Id ipair, char *aux_iech, char *aux_jech) const
 
Id add (Id iech, Id jech, void *aux_iech, void *aux_jech, Id ilag, Id idir, double dist)
 
bool empty () const
 

Constructor & Destructor Documentation

◆ VarioOrder() [1/2]

gstlrn::VarioOrder::VarioOrder ( Id  flag_dist = 0,
Id  size_aux = 0 
)

◆ VarioOrder() [2/2]

gstlrn::VarioOrder::VarioOrder ( const VarioOrder r)
default

◆ ~VarioOrder()

virtual gstlrn::VarioOrder::~VarioOrder ( )
virtualdefault

Member Function Documentation

◆ add()

Id gstlrn::VarioOrder::add ( Id  iech,
Id  jech,
void *  aux_iech,
void *  aux_jech,
Id  ilag,
Id  idir,
double  dist 
)

Add a record to the Variogram Order structure

Returns
Error return code
Parameters
[in]iechRank of the first sample
[in]jechRank of the second sample
[in]aux_iechAuxiliary array for sample 'iech' (or NULL)
[in]aux_jechAuxiliary array for sample 'jech' (or NULL)
[in]ilagRank of the lag
[in]idirRank of the direction (or 0)
[in]distCalculated distance (only stored if flag_dist == 1)

◆ clear()

void gstlrn::VarioOrder::clear ( )

◆ empty()

bool gstlrn::VarioOrder::empty ( ) const
inline

◆ final()

Id gstlrn::VarioOrder::final ( )

◆ getAuxiliary()

void gstlrn::VarioOrder::getAuxiliary ( Id  ipair,
char *  aux_iech,
char *  aux_jech 
) const

Returns the two auxiliary arrays for a given (ordered) pair

Parameters
[in]ipairRank of the sorted pair
[out]aux_iechArray to auxiliary information for sample 'iech'
[out]aux_jechArray to auxiliary information for sample 'jech'

◆ getBounds()

void gstlrn::VarioOrder::getBounds ( Id  idir,
Id  ilag,
Id ifirst,
Id ilast 
) const

Returns the first and last indices matching a target lag

Parameters
[in]idirRank of the target direction
[in]ilagRank of the target lag
[out]ifirstRank of the first sample of the lag (included)
[out]ilastRank of the last sample of the lag (excluded)

◆ getIndices()

void gstlrn::VarioOrder::getIndices ( Id  ipair,
Id iech,
Id jech,
double *  dist 
) const

Returns the two samples for a given (ordered) pair

Parameters
[in]ipairRank of the sorted pair
[out]iechRank of the first sample
[out]jechRank of the second sample
[out]distCalculated distance or TEST (if flag_dist == 0)

◆ operator=()

VarioOrder & gstlrn::VarioOrder::operator= ( const VarioOrder r)
default

◆ printout()

void gstlrn::VarioOrder::printout ( Id  idir_target,
Id  ipas_target,
Id  verbose 
)

Print the VarioOrder structure

Parameters
[in]idir_targetRank of the target direction (starting from 0) or -1
[in]ipas_targetRank of the target lag (starting from 0) or -1
[in]verbose1 for a complete printout

The documentation for this class was generated from the following files: