public class SigmoidKernelFunction extends AbstractVectorDoubleSimilarityFunction
Modifier and Type | Class and Description |
---|---|
static class |
SigmoidKernelFunction.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private double |
c
Scaling factor c, bias theta
|
private double |
theta
Scaling factor c, bias theta
|
Constructor and Description |
---|
SigmoidKernelFunction(double c,
double theta)
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
private final double c
private final double theta
public SigmoidKernelFunction(double c, double theta)
c
- Scaling factor c.theta
- Bias parameter theta.public double doubleSimilarity(NumberVector<?> o1, NumberVector<?> o2)
PrimitiveDoubleSimilarityFunction
o1
- first Objecto2
- second Object