Aggregation.Cosine Similarity As Double Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0
Overload List
| Cosine | Creates a descriptor that computes double-valued cosine similarities for selected column pairs. |
| Cosine | Creates a descriptor that computes cosine similarity and returns a Double result. |
CosineSimilarityAsDouble<C>(ColumnSelector, ColumnSelector)
Creates a descriptor that computes double-valued cosine similarities for selected column pairs.
public static Aggregation<C, string> CosineSimilarityAsDouble<C>(
ColumnSelector left,
ColumnSelector right
)
Parameters
- left ColumnSelector
- The selector that identifies left input columns.
- right ColumnSelector
- The selector that identifies right input columns.
Type Parameters
- C
- The type of the data frame column key.
Return Value
Aggregation<C, String>A double-valued cosine-similarity aggregation descriptor.
Remarks
Selector-based binary descriptors expand cartesian.
Exceptions
| Argument | left or right is null. |
CosineSimilarityAsDouble<C>(C, C)
Creates a descriptor that computes cosine similarity and returns a Double result.
public static Aggregation<C, string> CosineSimilarityAsDouble<C>(
C leftKey,
C rightKey
)
Parameters
- leftKey C
- The key of the left input column.
- rightKey C
- The key of the right input column.
Type Parameters
- C
- The type of the data frame column key.
Return Value
Aggregation<C, String>A double-valued cosine-similarity aggregation descriptor.
Exceptions
| Argument | leftKey or rightKey is null. |