This class defines a Generalized Proximity Matrix. More...
#include <GeneralizedProximityMatrix.h>
Public Member Functions | |
GeneralizedProximityMatrix () | |
Default constructor. More... | |
virtual | ~GeneralizedProximityMatrix () |
Virtual destructor. More... | |
Private Attributes | |
std::string | m_attributeName |
Attribute used to identify the attr from dataset associated to this gmp. More... | |
std::string | m_dataSetName |
Attribute used to identify the dataset associated to this gpm. More... | |
std::auto_ptr < te::graph::AbstractGraph > | m_graph |
Graph that represents the gpm. More... | |
Methods | |
void | setDataSetName (const std::string &dataSetName) |
std::string | getDataSetName () |
void | setAttributeName (const std::string &attrName) |
std::string | getAttributeName () |
void | setGraph (te::graph::AbstractGraph *graph) |
te::graph::AbstractGraph * | getGraph () |
void | toDataSource (te::da::DataSourcePtr ds, std::string dataSetName) |
Function used to export the all vertex attributes from gpm graph to a datasource. More... | |
std::auto_ptr < te::da::DataSetType > | createDataSetType (std::string dataSetName) |
std::auto_ptr< te::mem::DataSet > | createDataSet (te::da::DataSetType *dsType) |
std::map< int, std::string > | getGPMPropertyMap () |
This class defines a Generalized Proximity Matrix.
Definition at line 56 of file GeneralizedProximityMatrix.h.
te::sa::GeneralizedProximityMatrix::GeneralizedProximityMatrix | ( | ) |
Default constructor.
Definition at line 39 of file GeneralizedProximityMatrix.cpp.
|
virtual |
Virtual destructor.
Definition at line 45 of file GeneralizedProximityMatrix.cpp.
|
protected |
Definition at line 135 of file GeneralizedProximityMatrix.cpp.
References te::dt::AbstractData::clone(), te::graph::Vertex::getAttributes(), te::graph::Vertex::getId(), te::mem::DataSetItem::setInt32(), and te::mem::DataSetItem::setValue().
|
protected |
Definition at line 103 of file GeneralizedProximityMatrix.cpp.
References te::da::PrimaryKey::add(), te::dt::Property::clone(), te::dt::Property::getName(), te::dt::INT32_TYPE, te::dt::Property::setId(), te::dt::Property::setParent(), TE_SA_GEOMETRY_ATTR_NAME, and TE_SA_GPM_ATTR_PK_NAME.
std::string te::sa::GeneralizedProximityMatrix::getAttributeName | ( | ) |
Definition at line 64 of file GeneralizedProximityMatrix.cpp.
Referenced by te::sa::SpatialWeightsExchanger::associateGeometry(), te::sa::SpatialWeightsExchanger::exportToGAL(), and te::sa::SpatialWeightsExchanger::exportToGWT().
std::string te::sa::GeneralizedProximityMatrix::getDataSetName | ( | ) |
Definition at line 54 of file GeneralizedProximityMatrix.cpp.
Referenced by te::sa::SpatialWeightsExchanger::associateGeometry(), te::sa::SpatialWeightsExchanger::exportToGAL(), and te::sa::SpatialWeightsExchanger::exportToGWT().
|
protected |
Definition at line 181 of file GeneralizedProximityMatrix.cpp.
References te::dt::Property::getName(), and TE_SA_GEOMETRY_ATTR_NAME.
te::graph::AbstractGraph * te::sa::GeneralizedProximityMatrix::getGraph | ( | ) |
Definition at line 74 of file GeneralizedProximityMatrix.cpp.
Referenced by te::sa::SpatialWeightsExchanger::associateGeometry(), te::sa::AssociateGPMVertexAttribute(), te::sa::BoxMap(), te::sa::GPMWeightsNoWeightsStrategy::calculate(), te::sa::GPMWeightsInverseDistanceStrategy::calculate(), te::sa::GPMWeightsSquaredInverseDistanceStrategy::calculate(), te::sa::GPMConstructorAbstractStrategy::createDistanceAttribute(), te::sa::GPMWeightsAbstractStrategy::createWeightAttribute(), te::sa::SpatialWeightsExchanger::exportToGAL(), te::sa::SpatialWeightsExchanger::exportToGWT(), te::sa::FirstMoment(), te::sa::GlobalMoranSignificance(), te::sa::GStatistics(), te::sa::SpatialWeightsExchanger::importFromGAL(), te::sa::SpatialWeightsExchanger::importFromGWT(), te::sa::LISAMap(), te::sa::LisaStatisticalSignificance(), te::sa::LocalMean(), te::sa::MoranIndex(), te::sa::MoranMap(), te::sa::SecondMoment(), te::sa::Sum(), and te::sa::ZAndWZ().
void te::sa::GeneralizedProximityMatrix::setAttributeName | ( | const std::string & | attrName | ) |
Definition at line 59 of file GeneralizedProximityMatrix.cpp.
Referenced by te::sa::SpatialWeightsExchanger::importFromGAL(), and te::sa::SpatialWeightsExchanger::importFromGWT().
void te::sa::GeneralizedProximityMatrix::setDataSetName | ( | const std::string & | dataSetName | ) |
Definition at line 49 of file GeneralizedProximityMatrix.cpp.
Referenced by te::sa::SpatialWeightsExchanger::importFromGAL(), and te::sa::SpatialWeightsExchanger::importFromGWT().
void te::sa::GeneralizedProximityMatrix::setGraph | ( | te::graph::AbstractGraph * | graph | ) |
Definition at line 69 of file GeneralizedProximityMatrix.cpp.
Referenced by te::sa::SpatialWeightsExchanger::importFromGAL(), and te::sa::SpatialWeightsExchanger::importFromGWT().
void te::sa::GeneralizedProximityMatrix::toDataSource | ( | te::da::DataSourcePtr | ds, |
std::string | dataSetName | ||
) |
Function used to export the all vertex attributes from gpm graph to a datasource.
ds | Pointer to the output datasource |
dataSetName | The name of the new dataset that will be created into the datasource |
Definition at line 79 of file GeneralizedProximityMatrix.cpp.
|
private |
Attribute used to identify the attr from dataset associated to this gmp.
Definition at line 106 of file GeneralizedProximityMatrix.h.
|
private |
Attribute used to identify the dataset associated to this gpm.
Definition at line 105 of file GeneralizedProximityMatrix.h.
|
private |
Graph that represents the gpm.
Definition at line 108 of file GeneralizedProximityMatrix.h.