Graph Operator classes. Used to compute OPF. May use Knn, LSH, etc.
More...
#include <GraphAdjacency.hpp>
|
virtual | ~GraphAdjacency () |
| Virutal destructor. More...
|
|
template<class D > |
void | Initialize (const Feature< D > &feature, const Sample &sample, float scl_min, float scl_max) |
| Initializes the object. More...
|
|
virtual size_t | Scales () const =0 |
| Returns the number of different scales. More...
|
|
virtual double | Sigma (size_t scl) const =0 |
| Returns sigma value, that is, the variance of the gaussian of the nodes PDF. More...
|
|
virtual size_t | Arcs (size_t src, size_t scl) const =0 |
| Returns the number of adjacents to src with scale scl. More...
|
|
virtual size_t | Arc (size_t src, size_t adj) const =0 |
| Returns the 'adj'-th adjacent index from src. More...
|
|
virtual double | ArcWeight (size_t src, size_t adj) const =0 |
| Returns the weight of arc from src to its 'arc'-th adjacent. More...
|
|
virtual bool | ValidNeighbor (size_t src, size_t scl, double distance) const =0 |
| Verifies if distance lays inside src region of influence. More...
|
|
|
static size_t | MaxSamples () |
| Returns the maximum number of samples of the derived class. More...
|
|
template<class DERIVED>
class Bial::GraphAdjacency< DERIVED >
Graph Operator classes. Used to compute OPF. May use Knn, LSH, etc.
Definition at line 22 of file GraphAdjacency.hpp.
Virutal destructor.
- Date
- 2014/Oct/23
- Parameters
-
- Returns
- none.
- Warning
- none.
Definition at line 44 of file GraphAdjacency.hpp.
Returns the 'adj'-th adjacent index from src.
- Date
- 2014/Nov/26
- Parameters
-
src | sample index. |
adj | Number of adjacent element. |
- Returns
- The 'adj'-th adjacent index from src.
- Warning
- none.
Implemented in Bial::LSHGraphAdjacency, and Bial::KnnGraphAdjacency.
Returns the number of adjacents to src with scale scl.
- Date
- 2014/Nov/26
- Parameters
-
src | sample index. |
scl | Number of scale element. |
- Returns
- Number of arcs within the given scale to the source element.
- Warning
- none.
Implemented in Bial::LSHGraphAdjacency, and Bial::KnnGraphAdjacency.
Returns the weight of arc from src to its 'arc'-th adjacent.
- Date
- 2014/Nov/26
- Parameters
-
src | sample index. |
adj | Number of adjacent element. |
- Returns
- Weight of arc from src to its 'arc'-th adjacent.
- Warning
- none.
Implemented in Bial::LSHGraphAdjacency, and Bial::KnnGraphAdjacency.
template<class DERIVED>
template<class D >
Initializes the object.
- Date
- 2012/Oct/09
- Parameters
-
feature | feature vector containing only the subsamples. |
sample | sample vector. |
scl_min,scl_max | minimum and maximum scale fractions utilized for clustering. (0.0 - 1.0) |
- Returns
- none.
- Warning
- none.
Definition at line 57 of file GraphAdjacency.hpp.
Returns the maximum number of samples of the derived class.
- Date
- 2014/Nov/14
- Parameters
-
- Returns
- Maximum number of samples.
- Warning
- none.
Definition at line 33 of file GraphAdjacency.hpp.
Returns sigma value, that is, the variance of the gaussian of the nodes PDF.
- Date
- 2014/Nov/26
- Parameters
-
scl | Number of scale element. |
- Returns
- Sigma value.
- Warning
- none.
Implemented in Bial::LSHGraphAdjacency, and Bial::KnnGraphAdjacency.
template<class DERIVED>
virtual bool Bial::GraphAdjacency< DERIVED >::ValidNeighbor |
( |
size_t |
src, |
|
|
size_t |
scl, |
|
|
double |
distance |
|
) |
| const |
|
pure virtual |
Verifies if distance lays inside src region of influence.
- Date
- 2014/Nov/26
- Parameters
-
src | sample index. |
scl | Number of scale element. |
weight | Weight to be checked. |
- Returns
- True if distance lays inside src region of influence.
- Warning
- none.
Implemented in Bial::LSHGraphAdjacency, and Bial::KnnGraphAdjacency.
The documentation for this class was generated from the following file: