T
- public class ThreadedSumKernel<T> extends Kernel<T>
Constructor and Description |
---|
ThreadedSumKernel() |
ThreadedSumKernel(java.util.Map<Kernel<T>,java.lang.Double> h)
Sets the weights to h.
|
Modifier and Type | Method and Description |
---|---|
void |
addKernel(Kernel<T> k)
adds a kernel to the sum with weight 1.0
|
void |
addKernel(Kernel<T> k,
double d)
adds a kernel to the sum with weight d
|
double[][] |
getKernelMatrix(java.util.List<TrainingSample<T>> list)
return the Gram Matrix of this kernel computed on given samples
|
double |
getWeight(Kernel<T> k)
gets the weights of kernel k
|
java.util.Map<Kernel<T>,java.lang.Double> |
getWeights()
get the list of kernels and associated weights.
|
void |
removeKernel(Kernel<T> k)
removes kernel k from the sum
|
void |
setWeight(Kernel<T> k,
java.lang.Double d)
Sets the weight of kernel k
|
double |
valueOf(T t1)
kernel similarity to zero
|
double |
valueOf(T t1,
T t2)
compute the kernel similarity between two element of input space
|
getNormalizedKernelMatrix, normalizedValueOf, setName, toString
public void addKernel(Kernel<T> k)
k
- public void addKernel(Kernel<T> k, double d)
k
- d
- public double getWeight(Kernel<T> k)
k
- public void setWeight(Kernel<T> k, java.lang.Double d)
k
- d
- public double valueOf(T t1, T t2)
Kernel
public java.util.Map<Kernel<T>,java.lang.Double> getWeights()
public double[][] getKernelMatrix(java.util.List<TrainingSample<T>> list)
Kernel
getKernelMatrix
in class Kernel<T>
list
- list of samples on which to compute the Gram matrix