This class defines a class to calculates a weight for a GPM using Inverse Distance strategy. More...
#include <GPMWeightsSquaredInverseDistanceStrategy.h>
 
  
 | Public Member Functions | |
| GPMWeightsSquaredInverseDistanceStrategy (bool normalize, double a=1.0, double factor=1.0) | |
| Default constructor.  More... | |
| virtual | ~GPMWeightsSquaredInverseDistanceStrategy () | 
| Virtual destructor.  More... | |
| Methods | |
| Methods used by the GPM constructor | |
| virtual void | calculate (GeneralizedProximityMatrix *gpm) | 
| Protected Attributes | |
| double | m_a | 
| double | m_factor | 
| GeneralizedProximityMatrix * | m_gpm | 
| GPM Pointer.  More... | |
| bool | m_normalize | 
| GPMWeightsStrategyType | m_type | 
| Weight Type.  More... | |
| Methods | |
| GPMWeightsStrategyType | getWeightsType () | 
| int | createWeightAttribute (GeneralizedProximityMatrix *gpm) | 
| Added to the edge a new attribute for weight information and return the attr index.  More... | |
| bool | getDistanceAttributeIndex (te::graph::GraphMetadata *gm, int &index) | 
| Function used to get the distance attribute index.  More... | |
| double | getDistanceAttributeValue (te::graph::Edge *e, const int index) | 
| Function used to get the distance value from a edge element.  More... | |
This class defines a class to calculates a weight for a GPM using Inverse Distance strategy.
Formula: w = (a*1/(dist_centroids)2 + b*1/(dist_to_net)2 + c*1/(dist_net_connection)2)*factor
These values can be normalized or not.
Definition at line 57 of file GPMWeightsSquaredInverseDistanceStrategy.h.
| te::sa::GPMWeightsSquaredInverseDistanceStrategy::GPMWeightsSquaredInverseDistanceStrategy | ( | bool | normalize, | 
| double | a = 1.0, | ||
| double | factor = 1.0 | ||
| ) | 
Default constructor.
| 
 | virtual | 
Virtual destructor.
| 
 | virtual | 
Implements te::sa::GPMWeightsAbstractStrategy.
| 
 | protectedinherited | 
Added to the edge a new attribute for weight information and return the attr index.
| 
 | protectedinherited | 
Function used to get the distance attribute index.
| 
 | protectedinherited | 
Function used to get the distance value from a edge element.
| 
 | inherited | 
| 
 | protected | 
Definition at line 83 of file GPMWeightsSquaredInverseDistanceStrategy.h.
| 
 | protected | 
Definition at line 85 of file GPMWeightsSquaredInverseDistanceStrategy.h.
| 
 | protectedinherited | 
GPM Pointer.
Definition at line 97 of file GPMWeightsAbstractStrategy.h.
| 
 | protected | 
Definition at line 81 of file GPMWeightsSquaredInverseDistanceStrategy.h.
| 
 | protectedinherited | 
Weight Type.
Definition at line 95 of file GPMWeightsAbstractStrategy.h.