@Alias(value="rbf") public class RadialBasisFunctionKernelFunction extends AbstractVectorDoubleSimilarityFunction
Modifier and Type | Class and Description |
---|---|
static class |
RadialBasisFunctionKernelFunction.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private double |
gamma
Scaling factor gamma. (= - 1/(2sigma^2))
|
Constructor and Description |
---|
RadialBasisFunctionKernelFunction(double sigma)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
doubleSimilarity(NumberVector<?> o1,
NumberVector<?> o2)
Computes the similarity between two given Objects according to this
similarity function.
|
getDistanceFactory, getInputTypeRestriction, similarity
instantiate, isSymmetric
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
instantiate, isSymmetric
public RadialBasisFunctionKernelFunction(double sigma)
sigma
- Scaling parameter sigmapublic double doubleSimilarity(NumberVector<?> o1, NumberVector<?> o2)
PrimitiveDoubleSimilarityFunction
o1
- first Objecto2
- second Object