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::unique_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::unique_ptr< te::da::DataSetType > | createDataSetType (std::string dataSetName) |
| std::unique_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.
References ~GeneralizedProximityMatrix().
|
virtualdefault |
Virtual destructor.
Referenced by GeneralizedProximityMatrix().
|
protected |
Definition at line 133 of file GeneralizedProximityMatrix.cpp.
References te::dt::AbstractData::clone(), te::graph::Vertex::getAttributes(), getGPMPropertyMap(), te::graph::Vertex::getId(), m_graph, te::mem::DataSetItem::setInt32(), and te::mem::DataSetItem::setValue().
Referenced by toDataSource().
|
protected |
Definition at line 101 of file GeneralizedProximityMatrix.cpp.
References te::da::PrimaryKey::add(), te::dt::Property::clone(), te::dt::Property::getName(), te::dt::INT32_TYPE, m_graph, te::dt::Property::setId(), te::dt::Property::setParent(), TE_SA_GEOMETRY_ATTR_NAME, and TE_SA_GPM_ATTR_PK_NAME.
Referenced by toDataSource().
| std::string te::sa::GeneralizedProximityMatrix::getAttributeName | ( | ) |
Definition at line 62 of file GeneralizedProximityMatrix.cpp.
References m_attributeName.
Referenced by te::sa::SpatialWeightsExchanger::associateGeometry(), te::sa::GPMConstructorDistanceStrategy::constructStrategy(), te::sa::GPMConstructorAdjacencyStrategy::constructStrategy(), te::sa::GPMConstructorAbstractStrategy::createVertexObjects(), te::sa::SpatialWeightsExchanger::exportToGAL(), and te::sa::SpatialWeightsExchanger::exportToGWT().
| std::string te::sa::GeneralizedProximityMatrix::getDataSetName | ( | ) |
Definition at line 52 of file GeneralizedProximityMatrix.cpp.
References m_dataSetName.
Referenced by te::sa::SpatialWeightsExchanger::associateGeometry(), te::sa::GPMConstructorDistanceStrategy::constructStrategy(), te::sa::GPMConstructorAdjacencyStrategy::constructStrategy(), te::sa::GPMConstructorAbstractStrategy::createVertexObjects(), te::sa::SpatialWeightsExchanger::exportToGAL(), and te::sa::SpatialWeightsExchanger::exportToGWT().
|
protected |
Definition at line 179 of file GeneralizedProximityMatrix.cpp.
References te::dt::Property::getName(), m_graph, and TE_SA_GEOMETRY_ATTR_NAME.
Referenced by createDataSet().
| te::graph::AbstractGraph * te::sa::GeneralizedProximityMatrix::getGraph | ( | ) |
Definition at line 72 of file GeneralizedProximityMatrix.cpp.
References m_graph.
Referenced by te::sa::SpatialWeightsExchanger::associateGeometry(), te::sa::AssociateGPMVertexAttribute(), te::sa::BoxMap(), te::sa::GPMWeightsNoWeightsStrategy::calculate(), te::sa::GPMWeightsSquaredInverseDistanceStrategy::calculate(), te::sa::GPMWeightsInverseDistanceStrategy::calculate(), te::sa::GPMConstructorDistanceStrategy::constructStrategy(), te::sa::GPMConstructorAdjacencyStrategy::constructStrategy(), te::sa::GPMConstructorAbstractStrategy::createDistanceAttribute(), te::sa::GPMConstructorAbstractStrategy::createVertexObjects(), 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 57 of file GeneralizedProximityMatrix.cpp.
References m_attributeName.
Referenced by te::sa::SpatialWeightsExchanger::importFromGAL(), and te::sa::SpatialWeightsExchanger::importFromGWT().
| void te::sa::GeneralizedProximityMatrix::setDataSetName | ( | const std::string & | dataSetName | ) |
Definition at line 47 of file GeneralizedProximityMatrix.cpp.
References m_dataSetName.
Referenced by te::sa::SpatialWeightsExchanger::importFromGAL(), and te::sa::SpatialWeightsExchanger::importFromGWT().
| void te::sa::GeneralizedProximityMatrix::setGraph | ( | te::graph::AbstractGraph * | graph | ) |
Definition at line 67 of file GeneralizedProximityMatrix.cpp.
References m_graph.
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 77 of file GeneralizedProximityMatrix.cpp.
References createDataSet(), createDataSetType(), and m_graph.
|
private |
Attribute used to identify the attr from dataset associated to this gmp.
Definition at line 106 of file GeneralizedProximityMatrix.h.
Referenced by getAttributeName(), and setAttributeName().
|
private |
Attribute used to identify the dataset associated to this gpm.
Definition at line 105 of file GeneralizedProximityMatrix.h.
Referenced by getDataSetName(), and setDataSetName().
|
private |
Graph that represents the gpm.
Definition at line 108 of file GeneralizedProximityMatrix.h.
Referenced by createDataSet(), createDataSetType(), getGPMPropertyMap(), getGraph(), setGraph(), and toDataSource().