public class RBF extends Object implements Kernel
Constructor and Description |
---|
RBF(double gamma)
A Radial Basis Function (RBF) kernel, exp(-gamma*|u-v|^2).
|
Modifier and Type | Method and Description |
---|---|
com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance |
getProvenance() |
double |
similarity(SparseVector a,
SparseVector b)
Calculates the similarity between two
SparseVector s. |
String |
toString() |
public RBF(double gamma)
gamma
- The length scale of the gaussian.public double similarity(SparseVector a, SparseVector b)
Kernel
SparseVector
s.similarity
in interface Kernel
a
- The first SparseVector.b
- The second SparseVector.public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()
getProvenance
in interface com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.