VTK
|
compute dot-product similarity metrics. More...
#include <vtkDotProductSimilarity.h>
Inherits vtkTableAlgorithm.
Public Types | |
typedef vtkTableAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkDotProductSimilarity * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkIdType | GetVectorDimension () |
virtual void | SetVectorDimension (vtkIdType) |
virtual int | GetUpperDiagonal () |
virtual void | SetUpperDiagonal (int) |
virtual int | GetDiagonal () |
virtual void | SetDiagonal (int) |
virtual int | GetLowerDiagonal () |
virtual void | SetLowerDiagonal (int) |
virtual int | GetFirstSecond () |
virtual void | SetFirstSecond (int) |
virtual int | GetSecondFirst () |
virtual void | SetSecondFirst (int) |
virtual double | GetMinimumThreshold () |
virtual void | SetMinimumThreshold (double) |
virtual vtkIdType | GetMinimumCount () |
virtual void | SetMinimumCount (vtkIdType) |
virtual vtkIdType | GetMaximumCount () |
virtual void | SetMaximumCount (vtkIdType) |
Static Public Member Functions | |
static vtkDotProductSimilarity * | New () |
static int | IsTypeOf (const char *type) |
static vtkDotProductSimilarity * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkDotProductSimilarity () | |
~vtkDotProductSimilarity () | |
int | FillInputPortInformation (int, vtkInformation *) |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
compute dot-product similarity metrics.
Treats matrices as collections of vectors and computes dot-product similarity metrics between vectors.
The results are returned as an edge-table that lists the index of each vector and their computed similarity. The output edge-table is typically used with vtkTableToGraph to create a similarity graph.
This filter can be used with one or two input matrices. If you provide a single matrix as input, every vector in the matrix is compared with every other vector. If you provide two matrices, every vector in the first matrix is compared with every vector in the second matrix.
Note that this filter only computes the dot-product between each pair of vectors; if you want to compute the cosine of the angles between vectors, you will need to normalize the inputs yourself.
Inputs: Input port 0: (required) A vtkDenseArray<double> with two dimensions (a matrix). Input port 1: (optional) A vtkDenseArray<double> with two dimensions (a matrix).
Outputs: Output port 0: A vtkTable containing "source", "target", and "similarity" columns.
Definition at line 69 of file vtkDotProductSimilarity.h.
typedef vtkTableAlgorithm vtkDotProductSimilarity::Superclass |
Definition at line 73 of file vtkDotProductSimilarity.h.
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkDotProductSimilarity* vtkDotProductSimilarity::NewInstance | ( | ) | const |
void vtkDotProductSimilarity::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
Controls whether to compute similarities for row-vectors or column-vectors. 0 = rows, 1 = columns.
|
virtual |
Controls whether to compute similarities for row-vectors or column-vectors. 0 = rows, 1 = columns.
|
virtual |
When computing similarities for a single input matrix, controls whether the results will include the upper diagonal of the similarity matrix. Default: true.
|
virtual |
When computing similarities for a single input matrix, controls whether the results will include the upper diagonal of the similarity matrix. Default: true.
|
virtual |
When computing similarities for a single input matrix, controls whether the results will include the diagonal of the similarity matrix. Default: false.
|
virtual |
When computing similarities for a single input matrix, controls whether the results will include the diagonal of the similarity matrix. Default: false.
|
virtual |
When computing similarities for a single input matrix, controls whether the results will include the lower diagonal of the similarity matrix. Default: false.
|
virtual |
When computing similarities for a single input matrix, controls whether the results will include the lower diagonal of the similarity matrix. Default: false.
|
virtual |
When computing similarities for two input matrices, controls whether the results will include comparisons from the first matrix to the second matrix.
|
virtual |
When computing similarities for two input matrices, controls whether the results will include comparisons from the first matrix to the second matrix.
|
virtual |
When computing similarities for two input matrices, controls whether the results will include comparisons from the second matrix to the first matrix.
|
virtual |
When computing similarities for two input matrices, controls whether the results will include comparisons from the second matrix to the first matrix.
|
virtual |
Specifies a minimum threshold that a similarity must exceed to be included in the output.
|
virtual |
Specifies a minimum threshold that a similarity must exceed to be included in the output.
|
virtual |
Specifies a minimum number of edges to include for each vector.
|
virtual |
Specifies a minimum number of edges to include for each vector.
|
virtual |
Specifies a maximum number of edges to include for each vector.
|
virtual |
Specifies a maximum number of edges to include for each vector.
|
protected |
|
protected |