public class DotProductEuclidean extends Object implements DotProduct, Serializable
Constructor and Description |
---|
DotProductEuclidean() |
Modifier and Type | Method and Description |
---|---|
double |
dotProduct(weka.core.Instances dataSet,
weka.core.Instance inst1,
weka.core.Instance inst2)
Calculate dot product between instances (vecttors)
|
double |
norm(weka.core.Instances dataSet,
weka.core.Instance vec)
Calculates the dot-product-induced norm of the vector
|
public double dotProduct(weka.core.Instances dataSet, weka.core.Instance inst1, weka.core.Instance inst2) throws Exception
DotProduct
dotProduct
in interface DotProduct
dataSet
- -- datasetinst1
- -- Instance 1inst2
- -- Instance 2Exception
public double norm(weka.core.Instances dataSet, weka.core.Instance vec) throws Exception
DotProduct
norm
in interface DotProduct
Exception
Copyright © 2018. All Rights Reserved.