29 #include "../../common/StringUtils.h" 30 #include "../../datatype/SimpleData.h" 31 #include "../../graph/core/AbstractGraph.h" 32 #include "../../graph/core/Vertex.h" 33 #include "../../graph/iterator/MemoryIterator.h" 56 while(!it->isVertexIteratorAfterEnd())
65 v = it->getNextVertex();
75 te::sa::KernelMap::iterator it = kMap.begin();
77 while(it != kMap.end())
79 sum += it->second.second;
102 while(!it->isVertexIteratorAfterEnd())
115 v = it->getNextVertex();
118 return mean /= count;
125 for(std::size_t t = 0; t < vec.size(); ++t)
128 return tot / (double)vec.size();
146 while(!it->isVertexIteratorAfterEnd())
154 ssd += pow((attrValue - mean), 2);
159 v = it->getNextVertex();
Functions used in statistics operations.
Utilitary function for spatial analysis module.
This class defines a Generalized Proximity Matrix.
TESAEXPORT double FirstMoment(te::sa::GeneralizedProximityMatrix *gpm, int attrIdx)
Function used to calculate mean (first moment) of a specific attribute from a gpm.
std::map< int, std::pair< te::gm::Geometry *, double > > KernelMap
std::vector< te::dt::AbstractData * > & getAttributes()
It returns the vector of attributes associated with this element.
From the point of view of graph theory, vertices are treated as featureless and indivisible objects...
TESAEXPORT double Sum(te::sa::GeneralizedProximityMatrix *gpm, int attrIdx)
Function used to calculate sum of a specific attribute from a gpm.
Abstract class used to define the main functions of graph struct. All graph implementations must used...
A base class for values that can be retrieved from the data access module.
TESAEXPORT double SecondMoment(te::sa::GeneralizedProximityMatrix *gpm, int attrIdx, double mean)
Function used to calculate variance (second moment) of a specific attribute from a gpm...
TESAEXPORT double GetDataValue(te::dt::AbstractData *ad)
Function used to get the numeric value from a gpm property.
te::graph::AbstractGraph * getGraph()
This class defines the GPM class.