public interface DotProduct extends IInstanceNormCalc
Modifier and Type | Method and Description |
---|---|
double |
dotProduct(weka.core.Instance inst1,
weka.core.Instance inst2)
Calculate dot product between instances (vecttors)
|
double |
norm(weka.core.Instance vec)
Calculates the dot-product-induced norm of the vector
|
weka.core.Instance |
projection(weka.core.Instance inst1,
weka.core.Instance inst2)
Calculates the projection of instance 1 (inst1) on instance 2 (inst2).
|
normalize
double dotProduct(weka.core.Instance inst1, weka.core.Instance inst2) throws Exception
inst1
- -- Instance 1inst2
- -- Instance 2Exception
- -- when instances or dataset are incompatible with each otherdouble norm(weka.core.Instance vec) throws Exception
norm
in interface IInstanceNormCalc
vec
- Exception
- -- when instances or dataset are incompatible with each otherweka.core.Instance projection(weka.core.Instance inst1, weka.core.Instance inst2) throws Exception
inst1
- -- Instance 1inst2
- -- Instance 2Exception
- -- when instances or dataset are incompatible with each otherCopyright © 2020. All rights reserved.