Loading [MathJax]/extensions/tex2jax.js
1.7.0
Geostatistics & Machine Learning toolbox | https://gstlearn.org
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SpaceRN Class Reference

#include <SpaceRN.hpp>

Inheritance diagram for SpaceRN:
ASpace AStringable ICloneable

Public Member Functions

virtual ~SpaceRN ()
 
ESpaceType getType () const override
 ICloneable interface.
 
void getDistancePointVectInPlace (const SpacePoint &p1, const std::vector< SpacePoint > &p2, VectorDouble &res, const VectorInt &ranks) const override
 
- Public Member Functions inherited from ASpace
virtual ~ASpace ()
 
String toString (const AStringFormat *strfmt=nullptr) const final
 Interface for AStringable.
 
virtual void setOrigin (const VectorDouble &origin)
 Update the origin of the space.
 
virtual unsigned int getNDim (int ispace=-1) const
 Get the number of dimensions.
 
virtual unsigned int getOffset (int ispace=-1) const
 Get the offset index for coordinates.
 
virtual const VectorDoublegetOrigin (int ispace=-1) const
 Return the space origin coordinates.
 
virtual unsigned int getNComponents () const
 Get the number of space components.
 
virtual std::shared_ptr< const ASpacegetComponent (int ispace=-1) const
 Return the space component at index ispace.
 
virtual String toString (const AStringFormat *strfmt, int ispace) const
 Dump a space in a string (given the space index)
 
virtual bool isEqual (const ASpace *space) const
 Return true if the given space is equal to me (same dimension and space definition)
 
virtual VectorDouble getDistances (const SpacePoint &p1, const SpacePoint &p2) const
 Return all the distances (one by space component) between two space points.
 
void move (SpacePoint &p1, const VectorDouble &vec) const
 Not to be overriden.
 
double getDistance (const SpacePoint &p1, const SpacePoint &p2, int ispace=-1) const
 Return the distance between two space points.
 
double getDistance (const SpacePoint &p1, const SpacePoint &p2, const Tensor &tensor, int ispace=-1) const
 Return the distance between two space points with the given tensor.
 
double getFrequentialDistance (const SpacePoint &p1, const SpacePoint &p2, const Tensor &tensor, int ispace=-1) const
 Return the distance in frequential domain between two space points with the given tensor.
 
VectorDouble getIncrement (const SpacePoint &p1, const SpacePoint &p2, int ispace=-1) const
 Return the increment vector between two space points.
 
virtual VectorDouble projCoord (const VectorDouble &coord, int ispace=-1) const
 Project the coordinates in the given space.
 
void setOffset (unsigned int offset)
 Customize the dimension offset index of the current space TODO : to be made private.
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 
- Public Member Functions inherited from ICloneable
 ICloneable ()
 
virtual ~ICloneable ()
 
virtual ICloneableclone () const =0
 

Static Public Member Functions

static ASpaceSharedPtr create (int ndim)
 
- Static Public Member Functions inherited from ASpace
static std::shared_ptr< const ASpacegetDefaultSpaceIfNull (const std::shared_ptr< const ASpace > &space)
 

Constructor & Destructor Documentation

◆ ~SpaceRN()

SpaceRN::~SpaceRN ( )
virtual

Member Function Documentation

◆ create()

ASpaceSharedPtr SpaceRN::create ( int  ndim)
static

◆ getDistancePointVectInPlace()

void SpaceRN::getDistancePointVectInPlace ( const SpacePoint p1,
const std::vector< SpacePoint > &  p2,
VectorDouble res,
const VectorInt ranks 
) const
overridevirtual

Reimplemented from ASpace.

◆ getType()

ESpaceType SpaceRN::getType ( ) const
inlineoverridevirtual

ICloneable interface.

Return the concrete space type

Implements ASpace.


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